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... 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! 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); ?> 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.. 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); 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?? 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). 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
Archived
This topic is now archived and is closed to further replies.