angelsRock Posted September 15, 2007 Share Posted September 15, 2007 hi.. how do i show the php error in which line in my IE7 ? i had unchecked the "show friendly HTTP error msg" but it just show me the error .. e.g unknown column 'myid'.. never tell me which line... Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/ Share on other sites More sharing options...
rarebit Posted September 15, 2007 Share Posted September 15, 2007 PHP and MySQL are serverside, however, 'unknown column' is a mysql error, check all your column names, your asking for something which isn't there! Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/#findComment-349287 Share on other sites More sharing options...
pocobueno1388 Posted September 15, 2007 Share Posted September 15, 2007 It's because it is a MySQL error, so your not going to get a line number. That is why it is useful to do something like this when performing queries. <?php $query = "SELECT * FROM table"; $result = mysql_query($query)or die("Error:".mysql_error(). "With query" . $query); ?> Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/#findComment-349289 Share on other sites More sharing options...
angelsRock Posted September 15, 2007 Author Share Posted September 15, 2007 ohh..so fast reply.. sorry..!! that is just the example... if i din put the " ; " or some syntax error ..!! it won show the line mistake as well.. Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/#findComment-349291 Share on other sites More sharing options...
rarebit Posted September 15, 2007 Share Posted September 15, 2007 Not that i've tried it but this look's like it'll show more about php error's: http://uk3.php.net/manual/en/function.error-reporting.php error_reporting(E_ALL); Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/#findComment-349296 Share on other sites More sharing options...
angelsRock Posted September 16, 2007 Author Share Posted September 16, 2007 ohh?? i try to put that in my script.. but same ..blank whole page.. i thought the browser should have the function of displaying the error in which line>??? i can display the error line in asp... but why cant in php?? Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/#findComment-349303 Share on other sites More sharing options...
rarebit Posted September 16, 2007 Share Posted September 16, 2007 Don't quote me on this, yet, a lot of error's do show, however syntax errors trip it out, therefore check for syntax errors (in my experience look for lines without ';' endings). Quote Link to comment https://forums.phpfreaks.com/topic/69513-why-browser-never-show-error/#findComment-349313 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.