Jump to content

Why $emailqury as appose to contactid


deansaddigh

Recommended Posts

/* sql query to find if email address exists for client*/
	$emailquery = "SELECT id FROM clients WHERE email = '$email'";
	$contactid = mysql_query($emailquery);

	/* if there are rows returned for the contact id
	the below code will return true*/

	if(mysql_num_rows($contactid))
		{
			/*Get the results at that array possition and store the returned value in 
			the client_id variable*/
			$client_id = mysql_result($emailquery, 0, 0);

 

In the above code where it says

 

($emailquery, 0, 0);

Shouldnt it be  $contactid ?

Link to comment
https://forums.phpfreaks.com/topic/187262-why-emailqury-as-appose-to-contactid/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.