sax0n
New Member
- Messages
- 11
- Reaction score
- 0
- Points
- 0
Can anyone help me with this?
It outputs this...
Parse error: syntax error, unexpected T_VARIABLE in /home/sax0n/public_html/main.php on line 18
Any help is much appreciated :biggrin: I bet it's something painfully obvious...
PHP:
<html>
<head>
<title> Main </title>
</head>
<body>
<h3> Test </h3>
<?php
$dbhost = 'localhost';
$dbuser = 'sax0n';
$dbpass = 'password';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die
('Error connecting to mysql');
mysql_select_db("sax0n_main") or die;
$username = saxon
$ui_table = mysql_query("SELECT * FROM user_info WHERE username == $username");
mysql_fetch_array($ui_table);
$co_long = $ui_table[co-ords_long];
$co_lat = $ui_table[co-ords_lat];
$player_location = mysql_query("SELECT Name FROM map WHERE co-ords-long == $co_long AND co-ords-lat = $co_lat");
echo $player_location
?>
</body>
</html>
It outputs this...
Parse error: syntax error, unexpected T_VARIABLE in /home/sax0n/public_html/main.php on line 18
Any help is much appreciated :biggrin: I bet it's something painfully obvious...
Last edited: