| Web Hosting Support Manual |
![]() |
|
Account
Overview
HELPFUL TIPS |
MySQL Overview
| MySQL Control Panel Feature
| Examples of SQL Statements
| Quick Actions Perl SQL Insert Example Here we add two records to the database using an INSERT statement. The data to be entered can be gathered from an html form. #
Use the DBI module # Declare local variables my
($databaseName, $databaseUser, $databasePw, $dbh); #
Set the parameter values for the connection #
Connect to the database $dbh
= DBI->connect($databaseName, $databaseUser, #
Create the statement. #
Prepare and execute the SQL query # INSERT does not return records #
Clean up the record set # We could add another record here as well
#
Prepare and execute the SQL query $sth =
|
|
Copyright © 2000-2004 All rights reserved, Web and Print Design trading as www.webandprint.com.au |