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.

Link to comment
Share on other sites

I got to put my daughter to sleep. laterz

 

Ok, that was totally irrelevant and unnecessary.  This is a PHP Help forums, not Twitter, which we all know that CV loves oh so much.  :P

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>';
?> 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.