odd error reporting php.ini

Associate
Joined
4 Mar 2007
Posts
315
Location
United Kingdom
I am not getting complete errors I am just getting snippets of the error like so:

Warning: mysq in /submit.php on line 103

Any clue how I can fix this, I have gone through the ini but I don't see what the problem is :/
 
Are you using a CMS/Framework? Some modify the errors internally, so the .ini doesn't always control the error reporting.

The ini is quite clear on what errors it shows and has loads of dummy config options to choose from. What do you have yours set on?
 
I am using my own framework but I have removed my module that deals with error handling and it's still occurring.

The real problem is trying to figure out what is actually wrong with my sql statement, there is no real issue with the query at all upon using or die(mysql_error()); but it seems if I try and use mysql_result($query, 0, $v); it just trips up. Even though the loop runs the exact number of times in relation to the actual fields I am querying :/

That is truly the only purpose of me wanting to know if I can enable the error logging.

This is basically why I want to enable error logging:

PHP:
    for($i = 0; $i<count($ele);$i++){
    echo mysql_result($query, 0, $ele[$i]); 
    }

the count of ($ele) is 12. As there are 12 headers of the db I am querying. my sql statement is:

$query = mysql_query("SELECT * FROM building_template_b");

I have coded for 12 hours straight for this company app and I am probably overlooking the most stupid error ever :/
 
Last edited:
Back
Top Bottom