deansaddigh Posted January 5, 2010 Share Posted January 5, 2010 /* 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 More sharing options...
rajivgonsalves Posted January 5, 2010 Share Posted January 5, 2010 Yes.... Link to comment https://forums.phpfreaks.com/topic/187262-why-emailqury-as-appose-to-contactid/#findComment-988880 Share on other sites More sharing options...
deansaddigh Posted January 5, 2010 Author Share Posted January 5, 2010 I thought so thank you Link to comment https://forums.phpfreaks.com/topic/187262-why-emailqury-as-appose-to-contactid/#findComment-988884 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.