Re: [PHP-DB] Problem with php/mysql and ISS on windows XPprofeesional

2003-06-03 Thread Adam Voigt
If your missing the dollar sign then add it, if your not, then
set error_reporting in your php.ini to E_ALL  ~E_NOTICE.



On Mon, 2003-06-02 at 10:52, Cal Evans wrote:
 Sounds like you left off a $ when using a variable.  I would take a look at
 line 158, find the variable name and make sure it's $name. Disabling the
 error will cause the message to go away but not fix the problem.
 
 humbly,
 =C=
 * Cal Evans
 * http://www.christianperformer.com
 * Stay plugged into your audience
 * The measure of a programmer is not the number of lines of code he writes
 but the number of lines he does not have to write.
 *
 
 - Original Message -
 From: Ahmed Abdelaliem [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 02, 2003 9:50 AM
 Subject: [PHP-DB] Problem with php/mysql and ISS on windows XP profeesional
 
 
  hi
  i use php and mysql on IIS server on windows xp professional
  when i select anything from the database i get this :
  Notice: Use of undefined constant name - assumed 'name' in
  d:\inetpub\wwwroot\EGYCDS\index.php on line 158
  Spy Hunter
 
  while evrything is going fine when i upload it on the web and it returns
  only Spy Hunter
 
  i think  i have to disable this eroor message only
  can any one tell me how i disable that error message
 
  _
  Help STOP SPAM with the new MSN 8 and get 2 months FREE*
  http://join.msn.com/?page=features/junkmail
 
 
  --
  PHP Database Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Problem with php/mysql and ISS on windows XPprofeesional

2003-06-03 Thread Cal Evans
Again, changing the error reporting level will not fix the problem.  Since
he is getting a warning AND his code is acting unexpectedly, he probably
needs to concentrate on fixing the problem. (At least I assume that there is
a problem. It sounds like there is from his description.)

humbly,
=C=

* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measure of a programmer is not the number of lines of code he writes
but the number of lines he does not have to write.
*

- Original Message -
From: Adam Voigt [EMAIL PROTECTED]
To: Ahmed Abdelaliem [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 9:59 AM
Subject: Re: [PHP-DB] Problem with php/mysql and ISS on windows
XPprofeesional


 If your missing the dollar sign then add it, if your not, then
 set error_reporting in your php.ini to E_ALL  ~E_NOTICE.



 On Mon, 2003-06-02 at 10:52, Cal Evans wrote:
  Sounds like you left off a $ when using a variable.  I would take a look
at
  line 158, find the variable name and make sure it's $name. Disabling the
  error will cause the message to go away but not fix the problem.
 
  humbly,
  =C=
  * Cal Evans
  * http://www.christianperformer.com
  * Stay plugged into your audience
  * The measure of a programmer is not the number of lines of code he
writes
  but the number of lines he does not have to write.
  *
 
  - Original Message -
  From: Ahmed Abdelaliem [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 02, 2003 9:50 AM
  Subject: [PHP-DB] Problem with php/mysql and ISS on windows XP
profeesional
 
 
   hi
   i use php and mysql on IIS server on windows xp professional
   when i select anything from the database i get this :
   Notice: Use of undefined constant name - assumed 'name' in
   d:\inetpub\wwwroot\EGYCDS\index.php on line 158
   Spy Hunter
  
   while evrything is going fine when i upload it on the web and it
returns
   only Spy Hunter
  
   i think  i have to disable this eroor message only
   can any one tell me how i disable that error message
  
   _
   Help STOP SPAM with the new MSN 8 and get 2 months FREE*
   http://join.msn.com/?page=features/junkmail
  
  
   --
   PHP Database Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 --
 Adam Voigt ([EMAIL PROTECTED])
 Linux/Unix Network Administrator
 The Cryptocomm Group


 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Problem with php/mysql and ISS on windows XPprofeesional

2003-06-03 Thread Adam Voigt
Put single quote's around name in your record array, example:

Use:

$record['name']

Instead Of:

$record[name]


On Mon, 2003-06-02 at 11:04, Ahmed Abdelaliem wrote:
 here is the code i wrote
 i didn't miss the $ sign
 and it works fine on web
 but returns the error message when i use it on localhost
 
 
 ?
 @ $db = mysql_connect(localhost);
 mysql_select_db(cds);
 $test_tr = mysql_query(select name from newpcgames order by gameid desc 
 LIMIT 0,
 10);
 $test_tr1 = mysql_query(select name from newpcgames order by gameid desc 
 LIMIT 10,
 20);
 
 
 while($record = mysql_fetch_array($test_tr))
   {
 
   $record1= mysql_fetch_array($test_tr1);
 
 echo 
 TR bgColor=#475674
 TD onmouseover=\this.bgColor='00'\ 
 onmouseout=\this.bgColor='475674'\ bgColor=#475674 width=\50%\
 DIV align=leftFONT
 color=#ff size=1strong;
   echo stripslashes($record[name]);
   echo /strong/tdtd  /td;
   echo TD 
 onmouseover=\this.bgColor='00'\ onmouseout=\this.bgColor='475674'\ 
 bgColor=#475674 width=\50%\
 DIV align=leftFONT
 color=#ff size=1strong;
  echo stripslashes($record1[name]);
  echo /strong/td
   /tr ;
   }
 
 
   ?
 
 
 From: Cal Evans [EMAIL PROTECTED]
 To: Ahmed Abdelaliem 
 [EMAIL PROTECTED],[EMAIL PROTECTED]
 Subject: Re: [PHP-DB] Problem with php/mysql and ISS on windows XP 
 profeesional
 Date: Mon, 2 Jun 2003 09:52:21 -0500
 
 Sounds like you left off a $ when using a variable.  I would take a look at
 line 158, find the variable name and make sure it's $name. Disabling the
 error will cause the message to go away but not fix the problem.
 
 humbly,
 =C=
 * Cal Evans
 * http://www.christianperformer.com
 * Stay plugged into your audience
 * The measure of a programmer is not the number of lines of code he writes
 but the number of lines he does not have to write.
 *
 
 - Original Message -
 From: Ahmed Abdelaliem [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 02, 2003 9:50 AM
 Subject: [PHP-DB] Problem with php/mysql and ISS on windows XP profeesional
 
 
   hi
   i use php and mysql on IIS server on windows xp professional
   when i select anything from the database i get this :
   Notice: Use of undefined constant name - assumed 'name' in
   d:\inetpub\wwwroot\EGYCDS\index.php on line 158
   Spy Hunter
  
   while evrything is going fine when i upload it on the web and it returns
   only Spy Hunter
  
   i think  i have to disable this eroor message only
   can any one tell me how i disable that error message
  
   _
   Help STOP SPAM with the new MSN 8 and get 2 months FREE*
   http://join.msn.com/?page=features/junkmail
  
  
   --
   PHP Database Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 _
 Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
 http://join.msn.com/?page=features/junkmail
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php