|
Posted by tedpottel@gmail.com on 09/27/07 00:35
My hosting ptovider ugraded to php 5.0 and my form no longer works.
The form calls a hp file that stores all the infomrtion in a datbase.
The verbols are all blank now. This is the php code the form calls
<?php
// CURRTLY ON SERVER ALLTHINGSPHOTO\IMAGES
// connect to databse
if (!($dblink =
mysql_connect("libra.worldispnetwork.com","tedpott_user1","123icecream")))
{
die(" could not connect to mysal");
}
if (!$dbconn = mysql_select_db("tedpott_chamber",$dblink))
{
die(" Could not connect to databse ");
}
// veribols to be stored in databse
$sql="INSERT INTO `tedpott_chamber`.`ratings`
(`first_name`,`last_name`,`email`,`state`,`city`,`commet`)";
$sql=$sql." VALUES ('".$first_name."','".$last_name."','".
$email."','".$state."','".$city."','".$comment."')";
if (!$results=mysql_query($sql,$dblink))
die("<br> could not add your comment");
else
echo "state="+$state
echo "Comment Added, Thank You"
?>
The verbols, $city, $mail are alwyas empty!!!!
Navigation:
[Reply to this message]
|