Jump to content

[SOLVED] supplied argument not valid


localhost1

Recommended Posts

hi everybody

i have a problem in the sql query. my query is this

 

$sSqlQuery="select user_reserve_time_start,user_reserve_time_end,user_reserve_date from voyance_user WHERE user_id= '".$u_id."' and user_reservetype='Domicile Reservation'";
$row=mysql_query($sSqlQuery);
				  while($rest=mysql_fetch_array($row))
				  {
				  	$start_time=$rest['reserve_time_start'];
					$end_time=$rest['reserve_time_end'];
					$reserve_date=$rest['reserve_date'];
					echo $reserve_date;
				  }

 

where is the error in the query.

Link to comment
Share on other sites

just a question this part here

 

WHERE user_id= '".$u_id."'

 

im just thinking that it may be looking for a user id in the database of

"4" for example why are you opening quotes then escaping them

 

only asking because user ids are usually auto numbers an can throw that kind of error when asking for a text field (something containing quotes"")

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.