PHP-MySQL query error
Posted: Wed Jan 23, 2008 1:48 am
i insert info in to database using mysql query. info gets added to database andi can also view itafter da is updated. my problem is i want to check whether mysql_query($query); executes and if it executes it will tell user that dat a is saved and if this query fails to work user should get autoreply. code currently written is as follows but not working and it is giving error.
if (mysql_query($query))
{
echo "Your information has been saved in.";
}
else
{
echo "Your information could not be saved in database because of some error.";
}
pl advice
nilesh
if (mysql_query($query))
{
echo "Your information has been saved in.";
}
else
{
echo "Your information could not be saved in database because of some error.";
}
pl advice
nilesh