PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
aneuryzma
Forum Contributor
Posts: 106 Joined: Sat May 17, 2008 7:03 am
Post
by aneuryzma » Tue May 05, 2009 9:54 am
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
pickle
Briney Mod
Posts: 6445 Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:
Post
by pickle » Tue May 05, 2009 10:22 am
Since the statement is being prepared, I'd imagine those are wildcards that will be substituted for a actual values when they are bound.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.