No signal of success
| From: | Juan M. Fach | Date: | Fri, 28 Jul 2000 17:24:34 +0000 |
| Subject: | No signal of success | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8832@lists.php.net to get a copy of this message | ||
HELP please!
I got the following script, and I don't see any signal that the data have
been entered into the database..!
Who can help me to correct it
<!---Adduser php script begins here--->
<?
/* this script will handle the variables passed from the addnew.htm file */
/* declare some relevant variables */
$hostname = "xxx";
$username ="xxx";
$password = "xxxx";
$dbName = "recds";
/* MySQL table created to store the data */
$userstable = "newpeople";
/* the site administrator's email address */
$adminaddress = "me@midominio.com";
if ($db=mysql_connect($hostname,$username,$password)) {
if (mysql_select_db ($dbName,$db)) {
$myquery="INSERT INTO $userstable VALUES
('$first_name,'$last_name','$country','$mother_tongue','$languages','$lanpai
rs','$gender','$birthday','$occupation','$dbskills','$progskills','$ik_level
','$mngskills','$itskills','$educ_degree1','$edu_desc1','$educ_degree2','$ed
u_desc2','$educ_degree3','$edu_desc3','$work_resume','$ref1_name','$ref1_ema
il','$ref1_phone','$ref2_name','$ref2_email','$ref2_phone','$ref3_name','$re
f3_email','$ref3_phone','$comments')";
if ($result = mysql_query ($myquery))
PRINT "Your information has also been inserted into our database,
for future reference.";
} else
echo mysql_error();
} else
echo mysql_error();
?>
<!---Adduser php script ends here--->