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
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
> 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:/
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
--- 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
_
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
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
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