Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Try out my first PHP web app! Reply To: Try out my first PHP web app!

#177600
__
Participant

Basically the same, except you need to bind the parameters manually.

// assuming you're already connected with $DB

$DB_getHash = $DB->prepare( 'select hash from users where username=?' );
$DB_getHash->bindParam( 's',$_POST['username'] );
$DB_getHash->execute();
$DB_getHash->bindResult( $queryResult );
$DB_getHash->fetch();

// continue as above