Ok, this is the code at line 33.
$_res = mysql_query($_sql);
so i can do this:
$_res = @ mysql_query($_sql); to kill the warning?
Shoulding i fix it to make it work right :)
Yea, you can add @ in front of most functions to suppress warnings.
Note that warnings are only printed if error_reporting is turned on.
Although, it is better to structure the code so that you do not need to suppress to many warnings.
For example, this won't require any suppressing:
-
$result = mysql_query("SHOW TABLES")
-
or die("Query failed: ". mysql_error());
-
-
if($result) {
-
// Print data
-
echo "<pre>";
-
while($row = mysql_fetch_assoc($result)) {
-
$rowNum++;
-
echo "\n<b>$rowNum</b>";
-
foreach($row as $colName => $colValue) {
-
echo "\n - $colName = $colValue";
-
}
-
}
-
echo "</pre>";
-
-
// Free result
-
mysql_free_result($result);
-
}
-
else {
-
echo "Query failed!";
-
}
-
-
And this is the other error i forgot to post. i cant find it anywhere.
[PHP]faultCode0faultStringWarning:include(templates.cla ss.php) [function.include]: failed to open stream: No such file or directory in /home/vol1000/if_897174/gamehackers.ifastnet.com/htdocs/index.php on line 3faultCode0faultStringWarning:include() [function.include]: Failed opening 'templates.class.php' for inclusion (include_path='.:/usr/share/php:/tmp') in /home/vol1000/if_897174/gamehackers.ifastnet.com/htdocs/index.php on line 3[/PHP]
I looked over my index.php 50 time i never put that code so why does it pop up?
And thanx for the reply i don't want to be rude :P
It's not there?
Is it possible that your server has an old version of the file?
If the include line is not in line 3 of the index.php file, what is?