The code is:
$errors=array();
if(isset($_POST['submit'])){
validate_input();
else {
display_form();
}
}
the error message is Parse error: syntax error, unexpected T_ELSE in /home/content/a/u/n/auntievics/html/checkOut.php on line 38




Posted 31 October 2011 - 07:04 PM
$errors=array();
if(isset($_POST['submit'])){
validate_input();
else {
display_form();
}
}
Posted 31 October 2011 - 07:28 PM
Posted 31 October 2011 - 07:51 PM
$errors=array();
if(isset($_POST['submit'])) {
validate_input();
else {
display_form();
}
}
Posted 31 October 2011 - 08:27 PM
Posted 31 October 2011 - 08:42 PM
// How it should look:
if ( something ) {
// Do something
}
else {
// Do something else
}
// And this is how your's looks:
if ( something ) {
// Do something
else {
// Do something else
}
}
Posted 01 November 2011 - 06:19 AM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
