what is the point of prepare?

From: Date: Mon, 29 Oct 2007 10:06:40 +0000
Subject: what is the point of prepare?
Groups: php.general 
Request: Send a blank email to php-general+get-263773@lists.php.net to get a copy of this message
Hi, Begining using the php5 mysql functions and want to know what is the point of preparing/binding the data before I insert it? $prep = $mysqli->prepare ("INSERT INTO cd (cdid,title,artist) VALUES ('0',?,?)"); $prep->bind_param ('22',$title,$artist); Ta, R.

« previous php.general (#263773) next »