Código:
$result = mysql_query( "SELECT char_id FROM char" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
print "There are $num_rows records.<P>";
print "<table width=200 border=1>\n";
while ($get_info = mysql_fetch_row($result)){
print "<tr>\n";
foreach ($get_info as $field)
print "\t<td><font face=arial size=1/>$field</font></td>\n";
print "</tr>\n";
}
print "</table>\n";
me dice
Código:
SELECT Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char' at line 1
alguna idea de porque? es posible que la variable char, no pueda ser utilizada por alguna cosa?
o que estara pasando, porque e probado con chatlog y otros y si me funciona, pero esto no...