Toon posts:

[HTML]Tabel probleem :s

Pagina: 1
Acties:

Verwijderd

Topicstarter
hoi

ok, hier gaat het mis: http://mm2heaven.saburovo.com/tracks/Tracks.php ik heb een eerste cel met een tabel daarin, dat werkt allemaal prima, maar als ik er nog een cel met eet tabel in bijzet krijg ik dit: http://mm2heaven.saburovo.com/Tracks.php . PLz help

hier is de source: <tr>
<td height="217" bgcolor="#FF9933" style="border: 1 solid #000000; margin-top: 5; margin-bottom: 5" align="center"><div align="center">
<table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5"><div align="center">
<table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5">


<? $connect = mysql_connect("localhost", "", "");
mysql_select_db("", $connect);


$result = mysql_query("SELECT * FROM tracks ORDER BY track_id DESC");

while ($record = mysql_fetch_array($result)) {
$description = $record["description"];
$name = $record["name"];
$size = $record["size"];
$creator = $record["creator"];
$file = $record["file"];
$downloads = $record["downloads"];
$user = $record["user"];
$rating = $record["rating"];
$sizeInmb = round($size/1000000, 2);

$linky ="track.php?file=$file";
$link = "$baselink$linky";

echo" <tr> <td style=\"font-size: 10 pt; border: 1 solid #000000; margin-top: 5; margin-bottom: 5\" align=\"center\" colspan=\"4\" width=\"414\" bgcolor=\"#FF6600\">
<p align=\"center\" style=\"margin-top: 3; margin-bottom: 3\"><font size=\"2\" face=\"Times New Roman\"><a href=\"$link\">$name  </a></font></p></td>
</tr>
<tr>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" bgcolor=\"#FF6600\" width=\"81\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Downloads:</b> </font></p>
</td>
<td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\" align=\"center\" width=\"148\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $downloads   </font></p>
</td>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Size:</b>
</font></p>
</td>
<td style=\"font-size: 10 pt; border-bottom: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" width=\"76\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $sizeInmb mb</font></p>
</td>
</tr>
<tr>
<td style=\"font-size: 10 pt; border: 1 solid #000000\" align=\"center\" bgcolor=\"#FF6600\" width=\"81\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b> By:</b>
</font></p>
</td>
<td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\" align=\"center\" width=\"148\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $creator</font>
</td>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Rating:</b> </font></p>
</td>
<td style=\"font-size: 10 pt; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" align=\"center\" width=\"76\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $rating<b>/10</b></font></p>
</td>
</tr>
<tr>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" align=\"center\" colspan=\"4\" width=\"412\"><font size=\"2\" face=\"Times New Roman\">$description</font></td>
</tr></p><tr><td style=\"font-size: 10 pt; \" colspan=\"4\" ></td></tr>";

}

?> </table>
</div>
</table>
</div>


</td>
</tr>
<tr>
<td width="439" height="6" bgcolor="#FF6600" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-top: 1 solid #000000" align="center">
<b><font face="Times New Roman" size="3">Cities:</font></b>
</td>
</tr>
<tr>
<td height="217" bgcolor="#FF9933" style="border: 1 solid #000000; margin-top: 5; margin-bottom: 5" align="center"><div align="center">
<table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5"><div align="center">
<table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5">


<?

$result = mysql_query("SELECT * FROM tracks WHERE category = 'Mod' ORDER BY track_id DESC") or die(mysql_error());


while ($record = mysql_fetch_array($result)) {
$description = $record["description"];
$name = $record["name"];
$size = $record["size"];
$creator = $record["creator"];
$file = $record["file"];
$downloads = $record["downloads"];
$user = $record["user"];
$rating = $record["rating"];
$sizeInmb = round($size/1000000, 2);

$linky ="track.php?file=$file";
$link = "$baselink$linky";

echo" <tr> <td style=\"font-size: 10 pt; border: 1 solid #000000; margin-top: 5; margin-bottom: 5\" align=\"center\" colspan=\"4\" width=\"414\" bgcolor=\"#FF6600\">
<p align=\"center\" style=\"margin-top: 3; margin-bottom: 3\"><font size=\"2\" face=\"Times New Roman\"><a href=\"$link\">$name  </a></font></p></td>
</tr>
<tr>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" bgcolor=\"#FF6600\" width=\"81\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Downloads:</b> </font></p>
</td>
<td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\" align=\"center\" width=\"148\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $downloads   </font></p>
</td>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Size:</b>
</font></p>
</td>
<td style=\"font-size: 10 pt; border-bottom: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" width=\"76\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $sizeInmb mb</font></p>
</td>
</tr>
<tr>
<td style=\"font-size: 10 pt; border: 1 solid #000000\" align=\"center\" bgcolor=\"#FF6600\" width=\"81\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b> By:</b>
</font></p>
</td>
<td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\" align=\"center\" width=\"148\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $creator</font>
</td>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\">
<p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Rating:</b> </font></p>
</td>
<td style=\"font-size: 10 pt; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" align=\"center\" width=\"76\">
<p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $rating<b>/10</b></font></p>
</td>
</tr>
<tr>
<td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" align=\"center\" colspan=\"4\" width=\"412\"><font size=\"2\" face=\"Times New Roman\">$description</font></td>
</tr></p><tr><td style=\"font-size: 10 pt; \" colspan=\"4\" ></td></tr>";

}

?>
</table>
</div>
</table>
</div>
</td>
</tr>
<tr>
<td width="439" height="1" bgcolor="#FF6600" valign="top" bordercolor="#000000" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000; margin-left: 4; margin-right: 0" align="center"><a href="mailto:krekelmaster@yahoo.com"><font face="Times New Roman" size="3">Submit
a track</font></a></td>
</tr>

Verwijderd

Zet je source ff tussen
code:
1
en

(zonder spatie) das overzichtelijker

  • Thijsmans
  • Registratie: Juli 2001
  • Laatst online: 16:43

Thijsmans

⭐⭐⭐⭐⭐ (5/5)

PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?
<tr> 
    <td height="217" bgcolor="#FF9933" style="border: 1 solid #000000; margin-top: 5; margin-bottom: 5" align="center"><div align="center"> 
        <table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5"><div align="center"> 
        <table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5"> 
      

<? $connect = mysql_connect("localhost", "", ""); 
   mysql_select_db("", $connect); 


$result = mysql_query("SELECT * FROM tracks ORDER BY track_id DESC"); 

     while ($record = mysql_fetch_array($result)) { 
    $description = $record["description"]; 
    $name = $record["name"]; 
    $size = $record["size"]; 
    $creator = $record["creator"]; 
    $file = $record["file"]; 
    $downloads = $record["downloads"]; 
    $user = $record["user"]; 
    $rating = $record["rating"]; 
    $sizeInmb = round($size/1000000, 2); 

$linky ="track.php?file=$file"; 
$link = "$baselink$linky"; 

echo"  <tr> <td style=\"font-size: 10 pt; border: 1 solid #000000; margin-top: 5; margin-bottom: 5\" align=\"center\" colspan=\"4\" width=\"414\" bgcolor=\"#FF6600\"> 
        <p align=\"center\" style=\"margin-top: 3; margin-bottom: 3\"><font size=\"2\" face=\"Times New Roman\"><a href=\"$link\">$name &amp;nbsp;</a></font></p></td> 
                 </tr> 
                <tr> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" bgcolor=\"#FF6600\" width=\"81\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Downloads:</b>&amp;nbsp;</font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\" align=\"center\" width=\"148\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $downloads &amp;nbsp;&amp;nbsp;</font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Size:</b> 
                  </font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-bottom: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" width=\"76\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $sizeInmb mb</font></p> 
                </td> 
                </tr> 
                <tr> 
                <td style=\"font-size: 10 pt; border: 1 solid #000000\"  align=\"center\" bgcolor=\"#FF6600\" width=\"81\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b> By:</b> 
                  </font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\"  align=\"center\" width=\"148\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $creator</font> 
                </td> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Rating:</b>&amp;nbsp;</font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-right: 1 solid #000000; border-bottom: 1 solid #000000\"  align=\"center\" width=\"76\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $rating<b>/10</b></font></p> 
                </td> 
                </tr> 
                <tr> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" align=\"center\" colspan=\"4\" width=\"412\"><font size=\"2\" face=\"Times New Roman\">$description</font></td> 
                </tr></p><tr><td style=\"font-size: 10 pt; \" colspan=\"4\" ></td></tr>"; 

} 

?>  </table> 
       </div> 
</table> 
       </div> 
        
        
    </td> 
    </tr> 
<tr> 
    <td width="439" height="6" bgcolor="#FF6600" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-top: 1 solid #000000" align="center"> 
      <b><font face="Times New Roman" size="3">Cities:</font></b> 
    </td> 
    </tr> 
    <tr> 
    <td height="217" bgcolor="#FF9933" style="border: 1 solid #000000; margin-top: 5; margin-bottom: 5" align="center"><div align="center"> 
        <table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5"><div align="center"> 
        <table border="0" cellspacing="0" valign="center" align="center" style="margin-top: 5; margin-bottom: 5"> 
      

<? 

$result = mysql_query("SELECT * FROM tracks WHERE category = 'Mod' ORDER BY track_id DESC") or die(mysql_error()); 


     while ($record = mysql_fetch_array($result)) { 
    $description = $record["description"]; 
    $name = $record["name"]; 
    $size = $record["size"]; 
    $creator = $record["creator"]; 
    $file = $record["file"]; 
    $downloads = $record["downloads"]; 
    $user = $record["user"]; 
    $rating = $record["rating"]; 
    $sizeInmb = round($size/1000000, 2); 

$linky ="track.php?file=$file"; 
$link = "$baselink$linky"; 

echo"  <tr> <td style=\"font-size: 10 pt; border: 1 solid #000000; margin-top: 5; margin-bottom: 5\" align=\"center\" colspan=\"4\" width=\"414\" bgcolor=\"#FF6600\"> 
        <p align=\"center\" style=\"margin-top: 3; margin-bottom: 3\"><font size=\"2\" face=\"Times New Roman\"><a href=\"$link\">$name &amp;nbsp;</a></font></p></td> 
                 </tr> 
                <tr> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" bgcolor=\"#FF6600\" width=\"81\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Downloads:</b>&amp;nbsp;</font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\" align=\"center\" width=\"148\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $downloads &amp;nbsp;&amp;nbsp;</font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Size:</b> 
                  </font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-bottom: 1 solid #000000; border-right: 1 solid #000000\" align=\"center\" width=\"76\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $sizeInmb mb</font></p> 
                </td> 
                </tr> 
                <tr> 
                <td style=\"font-size: 10 pt; border: 1 solid #000000\"  align=\"center\" bgcolor=\"#FF6600\" width=\"81\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b> By:</b> 
                  </font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-bottom: 1 solid #000000\"  align=\"center\" width=\"148\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $creator</font> 
                </td> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" width=\"99\" align=\"center\" bgcolor=\"#FF6600\"> 
                  <p align=\"right\"><font size=\"2\" face=\"Times New Roman\"><b>Rating:</b>&amp;nbsp;</font></p> 
                </td> 
                <td style=\"font-size: 10 pt; border-right: 1 solid #000000; border-bottom: 1 solid #000000\"  align=\"center\" width=\"76\"> 
                  <p align=\"left\"><font size=\"2\" face=\"Times New Roman\"> $rating<b>/10</b></font></p> 
                </td> 
                </tr> 
                <tr> 
                <td style=\"font-size: 10 pt; border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000\" align=\"center\" colspan=\"4\" width=\"412\"><font size=\"2\" face=\"Times New Roman\">$description</font></td> 
                </tr></p><tr><td style=\"font-size: 10 pt; \" colspan=\"4\" ></td></tr>"; 

} 

?> 
        </table> 
       </div> 
</table> 
       </div> 
    </td> 
    </tr> 
     <tr> 
    <td width="439" height="1" bgcolor="#FF6600" valign="top" bordercolor="#000000" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000; margin-left: 4; margin-right: 0" align="center"><a href="mailto:krekelmaster@yahoo.com"><font face="Times New Roman" size="3">Submit 
      a track</font></a></td> 
    </tr>
?>

Verder zou een dump van je database ook leuk zijn. Niet noodzakelijk, maar wel makkelijker.

Privacy-adepten vinden op AVGtekst.nl de Nederlandse AVG-tekst voorzien van uitspraken en besluiten.


Verwijderd

Topicstarter
wat heb je nu precies verandert?

  • Thijsmans
  • Registratie: Juli 2001
  • Laatst online: 16:43

Thijsmans

⭐⭐⭐⭐⭐ (5/5)

niks, alleen even de code tussen [php ] gezet.

Privacy-adepten vinden op AVGtekst.nl de Nederlandse AVG-tekst voorzien van uitspraken en besluiten.


Verwijderd

Topicstarter
lol ok bedankt maar ik zoek een oplos voor m'n probleem
Pagina: 1