MANIKANT PATIDAR MANIKANT PATIDAR - 6 months ago 10
MySQL Question

What is mistake in above sql?

I am unable to run this sql. This is not give me data.

$sql = "Select * from user where user_id=1'";

mysql_query($sql);

Answer

remove ' after 1, this is silly mistake.

$sql = "Select * from user where user_id=1";

mysql_query($sql);