Forum Moderators: coopster
<%php
$socket = @mysql_connect("mysql","database","****");
if (mysql_select_db ("comments")) {
$sql = "SELECT * FROM register";
$query = mysql_query($sql, $socket);
while($data = mysql_fetch_object($query)) {
echo "<TR><TD> $data->name \n $data->email \n $data->aim \n $data->known</TD></TR>";
}
}
%>
There is no other scripting on the page. The error is on the line with "$socket = @mysql_connect...". Could I have the ASP-style tags wrong?
Anyway, any help I can get would be appreciated.
Could I have the ASP-style tags wrong?
You are absolutely right. Either change it to:
<?php
...
?>
or just:
<%
...
%>
;)