php - Unknown column in where clause -
this script supposed retrieve customerid customer_first_name , customer_last_name has been entered form.
$query = "select customerid customer customer_first_name = `.$db_customer_first_name.` , customer_last_name = `.$db_customer_last_name.`"; $result = mysql_query($query) or die(mysql_error()); echo $result; echo $query;
when script runs error:
unknown column '.christopher.' in 'where clause'
the query never printed on screen.
any appreciated.
your quotes bad use ' instead of tick `
Comments
Post a Comment