MySQL Forums
Forum List  »  PHP

Re: mysql_fetch_array()
Posted by: Peter Brawley
Date: August 29, 2011 09:19AM

$conn = mysql_connect("localhost", "root", "") or die(mysql_error());
...
$chicksName = mysql_real_escape_string( $_POST['customerName'] ); // defend against sql injection

...WHERE chicksName=?... means something only if you are using PREPARE. Did you mean to write ...WHERE chicksName='$chisksname'...? Otherwise what are you trying to accomplish with it?

PB

Options: ReplyQuote


Subject
Written By
Posted
August 29, 2011 09:00AM
Re: mysql_fetch_array()
August 29, 2011 09:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.