Forums

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

Home Forums Back End POST to MySQLi DB using a form Reply To: POST to MySQLi DB using a form

#202667
Anonymous
Inactive

Am I understanding your code correctly that if your value rests in $_POST['teamname'] that PHP will know to get that automatically for :teamname when passed into the execute?

Yes. The colon may be omitted for the input parameters (ie. the array that is passed into $stmt->execute()).