gesf
New member
Hey java_girl.
Let's do it step by step.
First of all, you have an error in your form_validation.php at line 108. You need to finish your SQL query string and add a double quote to close it.
You can also use this sintaxe (i like it, mainly for SQL querys). Example (this really needs to be at left, otherwise it wont work):
Second point. Try to change your if/else statements to something like:
Let's do it step by step.
First of all, you have an error in your form_validation.php at line 108. You need to finish your SQL query string and add a double quote to close it.
You can also use this sintaxe (i like it, mainly for SQL querys). Example (this really needs to be at left, otherwise it wont work):
Code:
<?php
$query = <<<END_QUERY
INSERT INTO baby SET
id = {$id},
lname = '{$last_name}',
fname = '{$first_name}',
age = '{$age}',
nationality = '{$nationality}',
gender = '{$gender}',
EmTel = '{$EmTel}',
TimePick = '{$TimePick }',
TimePut = '{$TimePut }';
END_QUERY;
?>
Second point. Try to change your if/else statements to something like:
Code:
<?php
if(){
// whatever
}
else {
// whatever
}
// Instead of:
if() // whatever
else // whatever