Jump to content

[SOLVED] how to show errors with php that appear on my browser


justAnoob

Recommended Posts

yes i did mention this in another post, but if it is ok i would like to start a new post with it. when my page loads up, it seems to load up just fine. except on the bottom of my browser it says 'done, but with errors'

what kind of errors does that mean? is there any way to display those errors?

I have tried using

error_reporting(E_ALL);

ini_set('display_errors',1);

but nothing shows.

but seriously, it's a javascript error(s).  That's the message IE gives you on the bottom right of the browser window.  If it's an IE specific js error, you can double click on it and hope it's not too vague.  But first you should try running it in a real browser, like FF.  open up the error console and be amazed.

here is the errors that it gives me AC_FL_Runcontent is not defined. it says it is non the lines below...

<?php
$sql = mysql_query("SELECT id, imgpath, item_name, description, in_return, user_id FROM abcxyz ORDER BY id DESC LIMIT 0, 4");
echo "<table border='0' CELLPADDING=5 STYLE='font-size:16px'>";
while ($row = mysql_fetch_array($sql))
{
echo "<tr><td align='center'>";
echo '<a href="viewitem.php?sendto='.$row['id'].'"><img src="' . $row['imgpath'] . '" width="125" border="0" alt=""></a>';
echo "</td><td align='center'>";
echo "".substr($row['item_name'],0,50),"";
echo "</td><td align='center'>";
echo substr($row['description'],0,50).'<a href="viewitem.php?sendto='.$row['id'].'" class="view_item"> ...more</a>';
echo "</td><td align='center'>";
echo substr($row['in_return'],0,50).'<a href="viewitem.php?sendto='.$row['id'].'" class="view_item"> ...</a>';
echo "</td><td align='center'>";
echo "</td></tr>";
echo '<tr><td height="19" colspan="4">';
echo '<hr width="550">';
echo "</td></tr>";
}

echo "</table>";     //this line
?>

<?php 
echo '<div align="center">';  //this line also
$brick = "SELECT * FROM abcxyz";
$poison = mysql_query($brick);
$gas = mysql_num_rows($poison);
echo "© Copyright 2008-09 - Total # of items = " . $gas;
echo '</div>';
?> 

so what is ac_fl_runcontent. can't find anything on google.

 

p.s.- you're a damn liar.  If you had bothered to google it, there's a ton of results about it.  Stop being a lazy bum and put more effort into this.  Why are you even bothering with this programming stuff if you aren't going to make an effort?

crayon,,, i don't know why your so mean dude. i looked on google and couldn't find anything, sorry man. i would say thanks for the info on letting me know what to do, but then you had your little love note p.s. attatchment. sorry if you've had a bad day. and yes,, i did see that FF tells you what file it is.  ,,, oh yeh ,,, ps... no need to use the profanity...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.