Forum Moderators: coopster

Message Too Old, No Replies

Parse error

         

thegrinder

5:56 am on Jun 9, 2010 (gmt 0)

10+ Year Member



Hi,
I just started making tests with a database i put online, and now i want to create an interface in php to make it accessible.

I get this error message when loading my page:

Parse error: syntax error, unexpected T_FUNCTION in /home/content/w/i/z/example/html/mlb/index.php on line 2

Here's my code:



<?php

$db = new mysqli(bojackson.db.5424975.example.com,bojackson,#*$!#*$!XX,"bojackson");

$sql = "SELECT DISTINCT TEAM FROM Bos_Cubs";

$reqID = $db->query($sql);

while ($line=$reqID->fetch_assoc()) {
echo "<tr>\n";
echo " <td>", $line["TEAM"], "</td>\n";
echo "</tr>\n";
}
?>


Any clue at what i'm doing wrong? Been searching on google for an answer and it didn't solve the problem.
I'm with godaddy.
Thanks in advance...

[edited by: dreamcatcher at 6:34 am (utc) on Jun 9, 2010]
[edit reason] Use example.com, thank you [/edit]

thegrinder

7:23 am on Jun 9, 2010 (gmt 0)

10+ Year Member



PROBLEM SOLVED

TY