Simple mysql query not working in php -


suddenly sql query not woking in add table.

it works in other table though. there wrong in code?

$sql="select index,name add limit 0,10"; $result=mysql_query($sql);     while($row=mysql_fetch_assoc($result))     {  echo $row['name']; } 

the index name filled random data.

add reserved word in mysql. have quote it.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -