Jump to content

cargi

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cargi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys just a quicky here i hope. I have two pages one a html form and the other the php file below. I am trying to send the data from the form into my mysql database. I am using the code below, everything seems to work fine, i mean no error messages appear... but it doesnt actually enter the data into the db please help cheers. Cargi www.TheMillionDollarMovieProject.com 'Become a movie producer today!' <? $username="xxxxx"; $password="xxxxxx"; $database="xxxx"; $host="xxxxxxxxxxxxxx"; $first=$_POST['first']; $last=$_POST['last']; $dob=$_POST['dob']; $city=$_POST['city']; $country=$_POST['country']; $email=$_POST['email']; $donation=$_POST['donation']; $proNum=$_POST['proNum']; mysql_connect($host,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO producers VALUES ('','$first','$last','$dob','$city','$country','$email','$donation','$proNum'"; mysql_query($query); mysql_close(); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.