Autor | Zpráva | ||
---|---|---|---|
petrnson Profil * |
#1 · Zasláno: 17. 8. 2007, 18:07:30
Jsem zacatcnik a potřeboval bych vlozit tabulku na web sehnal jsem si kod <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> <head> <meta content="text/html; charset=windows-1250" http-equiv="content-type"> <title>pokus</title> </head> <body> <br><?php @$link = mysql_connect ("mysql.ic.cz", "ic_e_muzic" , "xaver"); $result = mysql_query("SELECT * FROM test"); echo "<table border='1'>"; echo "<tr>"; $i = 0; while ($row = mysql_fetch_assoc($result)) { if ($i == 2) { $i = 0; echo "</tr><tr>"; } echo "<td>". htmlspecialchars($row["jmeno"]) ."</td>"; $i++; } echo "</tr>"; echo "</table>"; ?> </body> </html> a píse to Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/free/ic.cz/e/e-muzic/root/www/pokus.php on line 14 co mám dělat? |
||
nightfish Profil |
#2 · Zasláno: 17. 8. 2007, 18:25:08
|
||
Časová prodleva: 18 let
|
0