IL codice è il seguente
Mi da un errore nella riga 48 :Codice:<?php require '../../script/connect.php'; $query_text = $_REQUEST['query']; print "query". $query_text; $result = mysql_query($query_text); if (!$result) { die("<p> Errore nel eseguire " . $query_text . ": " . mysql_error() . "</p>"); } echo "<p> Results from your query:</p>"; echo"<ul>"; while ($row = mysql_fetch_row($result)) { echo "<li>{$row[0]}</li>"; } echo"</ul>"; $result_rows = false; $location = strpos($query_text, "CREATE"); if ($location === false) { $location = strpos($query_text, "INSERT"); if ($location === false) { $location = strpos($query_text, "UPDATE"); if ($location === false) { $location = strpos($query_text, "DELETE"); if ($location === false) { $location = strpos($query_text, "DROP"); if ($location === false) { $return_rows = true; } } } } } if ($return_rows) { echo "<p> Risultati della query: </p>"; echo "<ul>"; while ($row = mysql_fetch_row($result)) { echo "<li>{$row[0]}</li>"; } echo "</ul>"; } else { if ($result) { echo "<p>La query è avvenuta con successo</p>" echo "<p>{$query_text}</p>"; } } ?>
cosa potrebbe essere?Codice:Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /membri/laemmeallapi/prove/ch04/script/run_query.php on line 48

LinkBack URL
About LinkBacks

