Page 1 of 1

what does ":variable" mean ?

Posted: Tue May 05, 2009 9:54 am
by aneuryzma
What does it mean the ":" in front of phpro_username in the following line ?

Code: Select all

$stmt = $dbh->prepare("INSERT INTO phpro_users (phpro_username, phpro_password ) VALUES (:phpro_username, :phpro_password )");
 
thanks

Re: what does ":variable" mean ?

Posted: Tue May 05, 2009 10:22 am
by pickle
Since the statement is being prepared, I'd imagine those are wildcards that will be substituted for a actual values when they are bound.