Are there different ways to use Prepared Statements in PHP?
I have been using code like this...
...but it seems to me that some seems passionate about PDO? 
Or maybe there are even other ways?
**NOTE: I am not a object-oriented type person because I am a wimp, so I'd sorta like to stay with a Procedural approach unless someone can give me compelling reasons to switch?!
Debbie
I have been using code like this...
PHP Code:
// Prepare statement.
$stmt = mysqli_prepare($dbc, $q);
// Bind variable.
mysqli_stmt_bind_param($stmt, 's', $prettyTitle);
// Execute query.
mysqli_stmt_execute($stmt);
// Store result-set.
mysqli_stmt_store_result($stmt);

Or maybe there are even other ways?
**NOTE: I am not a object-oriented type person because I am a wimp, so I'd sorta like to stay with a Procedural approach unless someone can give me compelling reasons to switch?!
Debbie
Comment