I cant understand why my second query is not working while other similar queries are working fine can anyone please let me know why these to query behaving differently
query 1
function update_record()
{
$sql="insert into datas.market set title='".stripslashes($title)."',info='".stripslashes($description)."',graphics='"$image."',source_link='".$link."'";
mysql_query($sql);
}
query 2
function update_record()
{
$sql="insert into market set title='".stripslashes($title)."',info='".stripslashes($description)."',graphics='"$image."',source_link='".$link."'";
mysql_query($sql);
}
The only difference between the first query and the second query is that you are explicitly specifying the database name {datas} in the first query and your query works.
So you have not selected the database using after connecting.