php form handling ? + mysql.

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 164
Joined: Tue Aug 27, 2002 8:25 pm
Location: Ontario, Canada

Fri Mar 21, 2003 12:50 pm

Try this...

Code: Select all

$verbinding = mysql_connect ("$DB_HOST", "$DB_USER", "$DB_PASSWORD") or die ('I cannot connect to the database.');
$opdracht = "INSERT into $tablename VALUES ( '".$_POST['username']."' , '".$_POST['password']."' )";
mysql_db_Query ("Database", $opdracht, $verbinding);
Terra Design, my business and sole / huge PHP project... a fully dynamic and adaptive site engine.

Post Reply