php form handling ? + mysql.

Codes here !

Moderators: egami, macek, gesf

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

Fri Mar 21, 2003 12:50 pm

Try this...

Code: Select all

<? 
include("inc/dbuser.inc");
$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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests