This is what I have before line 73: <?php require_once('Connections/connTrio.php'); ?> <?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO comments (COMMENT_ID, FIRST_NAME, LAST_NAME, TELEPHONE, EMAIL, SUBMIT_DATE, COMMENTS, ANSWERED) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['COMMENT_ID'], "int"), GetSQLValueString($_POST['FIRST_NAME'], "text"), GetSQLValueString($_POST['LAST_NAME'], "text"), GetSQLValueString($_POST['TELEPHONE'], "text"), GetSQLValueString($_POST['EMAIL'], "text"), GetSQLValueString($_POST['SUBMIT_DATE'], "date"), GetSQLValueString($_POST['COMMENTS'], "text"), GetSQLValueString($_POST['ANSWERED'], "int")); mysql_select_db($database_connTrio, $connTrio); $Result1 = mysql_query($insertSQL, $connTrio) or die(mysql_error()); $insertGoTo = "comments-view.php"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo)); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) { $insertSQL = sprintf("INSERT INTO comments (FIRST_NAME, LAST_NAME, EMAIL, COMMENTS) VALUES (%s, %s, %s, %s)", GetSQLValueString($_POST['FIRST_NAME'], "text"), GetSQLValueString($_POST['LAST_NAME'], "text"), GetSQLValueString($_POST['EMAIL'], "text"), GetSQLValueString($_POST['COMMENTS'], "text")); mysql_select_db($database_connTrio, $connTrio); $Result1 = mysql_query($insertSQL, $connTrio) or die(mysql_error()); $insertGoTo = "comments-view.php"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo)); } ?> --- Craig Gardner <[EMAIL PROTECTED]> wrote: > What do you have before line 73? > > > On Thu, 2004-03-04 at 12:03, Enrique Martinez wrote: > > Hello, I'm getting an error that says: > > > > Parse error, unexpected T_STRING on line 73 > > > > line 73 is: <?xml version="1.0" encoding="iso-8859-1" > > ?> > > > > this is what I have below line 73: > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > > Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > > > I have PHP-4.2.2, Apache 2.0 on RedHat Linux 9.0 > > > > Any idea how can I fix the problem? Thanks in advance. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Search - Find what youre looking for faster > > http://search.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________ Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster http://search.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php