table fields:
ro,rga,ship_name,zip_code, notes,date_in
the ro field is on auto_increment
I am able to insert new data into my database. The problem I am having is the ability to display the 'ro' that was created by the database: Here is my php code:
<title>Item Recieved</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?PHP
if (!$_POST['ship_name'] || !$_POST['ship_method'])
{
echo "You have not entered all required information.<br />"
."Please go back and try again.";
exit;
}
$link = @mysql_connect('localhost','josh','scalp');
if (!$link)
{
echo "Error: Could not connect to Customer Service database. Please try again later.";
exit;
}
mysql_select_db('customer_service',$link);
$date = date ('Y-m-d');
$query = "Insert Into box_info (rga, ship_name, zipcode, ship_method, comments, date_in) Values
('".$_POST['rga']."','".$_POST['ship_name']."', '".$_POST['zip_code']."', '".$_POST['ship_method']."',
'".$_POST['notes']."', '$date')";
$result = mysql_fetch_array($query);
//$row = row_fetch_array($result);
//if($result)
echo $result;
?>
</body>
</html>
Can someone direct me to the right direction?
😕