close
  PHPDiscussion

Help I'm getting"Object not found error"



arunsharmaCSep 19, 2008 9:00am
$con = mysql_connect('localhost','root','');
mysql_select_db('eventshout');
$q ="INSERT INTO 'eventshout'.'e_event'('event_id','event_name','event_category') VALUES ('','$_POST[event_name]','$_POST[event_category]')";
$res = mysql_query($q);
if($res)
{
header('location:showuser.php?id='.mysql_insert_id_($con));
}
else
{
header('location:register.php?err=yes');
}





The above is the insert query - and is the one that's giving me the Object not found error.
The other part is the form


thanjeysSep 22, 2008 7:47pm
$con = mysql_connect('localhost','root','');
mysql_select_db('eventshout');
$q ="INSERT INTO 'eventshout'.'e_event'('event_id','event_name','event_category') VALUES ('','$_POST[event_name]','$_POST[event_category]')";
if(mysql_query($q))
{
header('location:showuser.php?id='.mysql_insert_id_($con));
}
else
{
header('location:register.php?err=yes');
}



// you wil try with tis otherwise chk ur insert query


arunsharmaCSep 22, 2008 8:48pm
thanks thanjeys was able to solve the problem earlier on .:)


Help I'm getting"Object not found error"


You need to Sign-up for StumbleUpon to post to this forum