Quote
I'm stuck on how to insert data into tables using forms. I looked through plenty of the tutorials, but none of them helped me =(. So now i'm wondering how do i do it.
I'm trying to make a link trader with
title, url and description. I got everything working, and i inputted the data from mysqladmin (in cpanel) but now i don't know how to add it using php.
In perl i would do something like this
sub updatedb{
$query = "INSERT INTO NameOfYourTable(Tittle, Url, Description)
VALUES ('$tittle', '$url', '$description');";
$sth = $dbh->prepare($query);
$sth->execute() or webdb3::dberr_trap("Unable to insert into YourTableName");
$sth->finish();
$dbh->disconnect;
}