I am getting the following error message from the code below.

Warning: Undefined index: getdwgnum in d:\apache\htdocs/getdwgnum.php on
line 4


<?php

 $cook = mt_rand (5, 50000) ;
 $cookieinfo = $HTTP_COOKIE_VARS["getdwgnum"];
 if ($cookieinfo > "")
 {
        $str = "where Cook = $cookieinfo";
        $cx=odbc_pconnect("doc","","");
  }
  else
         setcookie ("getdwgnum", $cook,time()+28800);

?>


I want to look for a cookie and if it is not there I want to set one. Any
ideas?

Thanks, Gary



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to