Re: [php-list] Error trap?

2005-06-02 Thread Pete
In message <[EMAIL PROTECTED]>, Javed Ahmed <[EMAIL PROTECTED]> writes >hello, > >How to prevent displaying mysql errors & warnings on the page.This >error arosed due to empty resultset. Well I want to trap the errors & >warnings and prevent it to display on the page. Kindly guide me. > >- >W

Re: [php-list]

2005-06-02 Thread Bob
Sorry to butt in on this thread, but I was using the following: if (isset($_POST['msgid'])) {$msgid = $_POST['msgid'];} else {$msgid = $_GET['msgid'];} as I don't know whether it will be $_POST or $_GET in this instance. It worked but it doesn't look right *grin* So can I use: $msgid = $_REQUEST

Re: [php-list]

2005-06-02 Thread Patrick Bierans
> if (! $_GET['status']) > { echo "none"; > } nope. if (isset($_REQUEST['status'])) Community email addresses: Post message: php-list@yahoogroups.com Subscribe:[EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http:/

Re: [php-list]

2005-06-02 Thread Brian Cummiskey
Lenny Davila wrote: > I thought I was able to check if a query string was present (ex. > index.php?status=out )by using this code: > > > > if (!$status) { > > echo 'none'; > > } if (! $_GET['status']) { echo "none"; } Community email addresses: Post message: php-list@yahoogro

Re: [php-list] undefined variable error

2005-06-02 Thread Bob Sawyer
--- Lenny Davila <[EMAIL PROTECTED]> wrote: > Notice: Undefined variable: status in > /usr/local/apache2/htdocs/cdInventory/test.php on line 79 > How can I check if the query string 'status' exists and if it has a > value? Try $_GET['status'] ... -Bob _

[php-list] undefined variable error

2005-06-02 Thread Lenny Davila
Sorry about the last post with no subject line... I thought I was able to check if a query string was present (ex. index.php?status=out )by using this code: if (!$status) { echo 'none'; } But this produces the error: Notice: Undefined variable: status in /usr/local/apache2/htdocs/cdI

[php-list]

2005-06-02 Thread Lenny Davila
I thought I was able to check if a query string was present (ex. index.php?status=out )by using this code: if (!$status) { echo 'none'; } But this produces the error: Notice: Undefined variable: status in /usr/local/apache2/htdocs/cdInventory/test.php on line 79 How can I check if th

[php-list] Error trap?

2005-06-02 Thread Javed Ahmed
hello, How to prevent displaying mysql errors & warnings on the page.This error arosed due to empty resultset. Well I want to trap the errors & warnings and prevent it to display on the page. Kindly guide me. - Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MyS