Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeproject1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeproject1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: file_put_contents(sites/nerkn/cache/containers/queryList/select_s_from_pages_where_pageTypeknowlagebase1.file.php): failed to open stream: No such file or directory in /home/erkintek/nerkl/inc/classBasic.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /home/erkintek/nerkl/inc/classBasic.php:247) in /home/erkintek/nerkl/inc/layout.php on line 227
Printing mysql_error

Nerkn

Php developer, drupal, html, css, jquery, ajax, javascript
s:147:"

Printing mysql_error

This is a code snipped to print mysql error. If there is no error mysql_error returns null, thus if evaluates false and there is no output. If there is error previous mysql_query statement, if evaluates true. Since $my_sql_error is populated here, we can use inside of the if. $sSQL is sql query in error. if($my_sql_error = mysql_error()){ echo $sSQL. "
". $my_sql_error; }
This kind of snipped if fits in a print_mysql_funciton may be much more usefull. But it were some kind of logging facility yemede yanında yat.";