<?php
$con = mysql_connect("localhost","ourinter_admin","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("ourinter_database", $con);

$sql="INSERT INTO donation(
firstname,
lastname,
gender,
country,
fulladdress,
phone,
emailaddress,
donate,
total,
creditcard)

VALUES
('$_POST[firstname]',
'$_POST[lastname]',
'$_POST[gender]',
'$_POST[country]',
'$_POST[fulladdress]',
'$_POST[phone]',
'$_POST[emailaddress]',
'$_POST[donate]',
'$_POST[total]',
'$_POST[creditcard]'
)";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "<one record>";


mysql_close($con);
?> 

errrr..... 42?

Would help if you could supply the error

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.