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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -