Jump to content

Unexpected T_STRING


livethedead

Recommended Posts

No clue what's wrong, line 9.

 

<?php
require '/opt/lampp/htdocs/PHP/PHP&MYSQL/scripts/database_connection.php';
// database connection file
$query_text = $_REQUEST['query'];
$result = mysql_query($query_text);

if (!$result) {
	die("Error connecting to database:". $query_text . mysql_error() .);
}

echo "<p>Results from your query:</p>";
echo "<ul>";

while ($row = mysql_fetch_row($result)) {
	echo "<li>({$row[0]}</li>";
}

echo "</ul>";

?>

Link to comment
https://forums.phpfreaks.com/topic/256775-unexpected-t_string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.