ID:               41420
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jcwebb at dicoe dot com
-Status:           Closed
+Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: Win3K
 PHP Version:      5.2.2


Previous Comments:
------------------------------------------------------------------------

[2007-05-17 18:47:45] jcwebb at dicoe dot com

Blank Page can be caused by...
error_reporting  =  E_ALL|E_STRICT
and
display_errors = Off

So, set both options !!

(sorry about wrong place to report)

------------------------------------------------------------------------

[2007-05-17 18:16:23] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.



------------------------------------------------------------------------

[2007-05-17 18:10:08] jcwebb at dicoe dot com

Description:
------------
When i call my page 'index.php' i just get a blank page. View Source
reveals "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>"

- i now what the problem is... there is an error in my code. 
- I have php.ini set with 
error_reporting  =  E_ALL|E_STRICT
and
display_errors = Off

OOPS - my bad - but i found many google's with the same problem - maybe
this can be posted somewhere as the answer!

Reproduce code:
---------------
<?php require_once('../connection.php'); ?>
<?php // this page
$action='new'; $title='Nombre por un CDR upload';
if ( (isset($_POST['Bins'])) OR (isset($_POST['Bmod'])) ):
        $title=fn_form($_POST['title'],'text');
        if ( ($title<>'') AND (substr($title,0,10)<>'Nombre por') ):
                if (isset($_POST['Bins']))
                        $q="INSERT INTO rrdefinitions SET title='$title' ";
                endif;
                if (isset($_POST['Bmod'])):
                        $iddef=$_POST['iddef'];
                        $q="UPDATE rrdefinitions SET title='$title' ";
                endif;
                $r=mysqli_query($DBlink,$q) or die(mysqli_error($DBlink)." 
Q=".$q);
        endif;
        $action='mod';
endif;
// now draw the page... html... headers... echo's... buttons... etc
?>

Expected result:
----------------
To see the page with info from db, and buttons to Add, Edit, Delete
records, etc.

Actual result:
--------------
blank page with no php stuff.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41420&edit=1

Reply via email to