Jump to content

NEWBEE no data showing up IN MYSQL, only empty extra rows


mrcoda

Recommended Posts

I'm connecting but the data from the form isnt being entered into the fields.  HELP , i NEED SOMEBODY,

 

 

 

<?php

$name=$_POST["name"];

$company=$_POST["company"];

$email=$_POST["email"];

mysql_connect ("localhost", "rbcreati_richard",  "burb1971") or die ('Error: '  . mysql_error());

mysql_select_db ("rbcreati_clients");

$query = "INSERT INTO quickcontacts VALUES ('','$name','$company','$email')";

mysql_query($query);

?>

 

<?xml version="1.0" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="description" content="RB CREATIONS. WEB DESIGN, GRAPHIC DESIGN , DIGITAL PHOTO EDITING, SEO. Search engine optimisation explained in simple terms for business people, web design explained in simple terms for business people. Websites Built to W3C Standards XHTML STRICT, Fast loading graphics, Bespoke designs. " />

 

<meta name="keywords" content="web design, design web, graphic design, digital photo, creative design, flash, photo editing, flash, seo, xhtml  "  />

<link href="allstyles.css" rel="stylesheet" type="text/css" />

<title>WWW.RBCREATIONS.CO.UK---------web design----graphic design----digital photo optimising and editing-----search engine optimisation SEO----</title>

</head>

 

<body>

 

<div>ggdg

<form action="update_quickcontacts.php" method="post" id="quickcontact" >

<fieldset>

contact name<br /><input id="name" type="text" size="25" maxlength="30" /><br /><br />

company<br /><input id="company" type="text" size="25" maxlength="50" /><br /><br />

email<br /><input id="email" type="text" size="25" maxlength="50" /><br /><br />

<input type="submit" value="up date database" />

</fieldset>

</form>

</div>

 

 

</body>

</html>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.