I'm building a website and I need to use this query... but for some reason
$qls->user_info['id']
, which is a variable, doesn't work well in this instance. I think it is because ofthe 's in the code. Any help would be appreciated.
$sql="SELECT * FROM wegoh_guestlists WHERE event_id='$pid' and user_id= '$qls->user_info['id']' ";
$result=mysql_query($sql);