I'll try that. And yes, I didn't mean to type the () with echo. =P I didn't copy-and-paste from my PHP file. Just a habit from something else I guess.
I used this file named test.php for testing what you said ...
<html>
<head>
<title>DB Testing</title>
</head>
<body>
<?php
$dbcnx = @mysql_connect('localhost'
@mysql_select_db('<databas
$result = @mysql_query('SELECT * FROM <table>') OR die(mysql_error());
?>
</body>
</html>
... and it didn't say anything. Which is good. No errors. Phew. And when I add an echo line ...
<html>
<head>
<title>DB Testing</title>
</head>
<body>
<?php
$dbcnx = @mysql_connect('localhost'
@mysql_select_db('cvcy_sil
$result = @mysql_query('SELECT * FROM SilentPro') OR die(mysql_error());
echo $result;
?>
</body>
</html>
... it says "Resource id #3" ... ??? One of my fields in my <table> is named "id" ... could that have anything to do with it?
Main Topics
Browse All Topics





by: snoyes_jwPosted on 2004-01-06 at 16:06:55ID: 10057483
Just to make sure that the query works, do this:
$result = @mysql_query('SELECT blah blah blah') OR die(mysql_error());
Also, try not using () with echo:
echo '<p>' . $row['<field>'];