cradletoenslave
Programmer
Code:
while (my ($firstname) =
$sth->fetchrow_array())
{
print "$firstname<br>";
}
$sth->finish();
while (my ($email) =
$sth->fetchrow_array())
{
print "$email<br>";
}
$sth->finish();
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
while (my ($firstname) =
$sth->fetchrow_array())
{
print "$firstname<br>";
}
$sth->finish();
while (my ($email) =
$sth->fetchrow_array())
{
print "$email<br>";
}
$sth->finish();
#!/usr/bin/perl -Tw
require "/home/jaredmg/public_html/cgi-bin/formprocessor.cgi";
&ReadParse (*input);
$name= $input{'name'};
$codeemail= $input{'email'};
use DBI;
$dbh = DBI->connect("DBI:mysql:jaredmg_form:localhost","jaredmg_jaredmg","springer");
$dbh->do("insert into form
(firstname, email) values ('$name', '$codeemail')");
my $sth = $dbh->prepare(qq{
select firstname, email from form
});
$sth->execute();
print "content-type: text/html\n\n";
print "<html><body>";
while (my ($firstname) =
$sth->fetchrow_array())
{
print "$firstname<br>";
}
$sth->finish();
while (my ($email) =
$sth->fetchrow_array())
{
print "$email<br>";
}
$sth->finish();
print "</body></html>";
$sth->fetchall_arrayref()