[PHP-DB] undefined Constant

2005-05-15 Thread [EMAIL PROTECTED]
Please can someone help me?
I keep getting this messages below yet the memvars are well defined and
loaded with values.

What could be the cause? 
I will appreciate any help.
Regards,
Bunmi

Notice: Use of undefined constant uploadwka - assumed 'uploadwka' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 151
uploadwka

Notice: Use of undefined constant uploadwkb - assumed 'uploadwkb' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 152
uploadwkb

Notice: Use of undefined constant uploadwkc - assumed 'uploadwkc' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 153
uploadwkc

Notice: Use of undefined constant uploadwkd - assumed 'uploadwkd' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 154
uploadwkd


mail2web - Check your email from the web at
http://mail2web.com/ .

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



Re: [PHP-DB] undefined Constant

2005-05-15 Thread Chris
[EMAIL PROTECTED] wrote:
Please can someone help me?
I keep getting this messages below yet the memvars are well defined and
loaded with values.
What could be the cause? 
I will appreciate any help.
Regards,
Bunmi

Notice: Use of undefined constant uploadwka - assumed 'uploadwka' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 151
uploadwka
Notice: Use of undefined constant uploadwkb - assumed 'uploadwkb' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 152
uploadwkb
Notice: Use of undefined constant uploadwkc - assumed 'uploadwkc' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 153
uploadwkc
Notice: Use of undefined constant uploadwkd - assumed 'uploadwkd' in
C:\Inetpub\wwwroot\nacd\myAccountt.php on line 154
uploadwkd

mail2web - Check your email from the web at
http://mail2web.com/ .
 

somewhere you are using uploadwka as an unquoted string. Probably when 
accessing an array;

echo  $aTest[uploadwka]; // String not oquoted, PHP assumes uploadwka is 
a constant. It's not, so it generates a warning and default to the value 
of 'uploadwka';
echo  $aTest['uploadwka']; // Correct

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


Re: [PHP-DB] Undefined Constant

2002-11-27 Thread Tyler Whitesides
Hi,
Thank you all for your quick help, it was just a Youve been up too long
working on this and it is the middle of the night mistakes.  Once I put
quotes around my constant, everything worked.
Thanks again,
Tyler
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 11:39 PM
Subject: Re: [PHP-DB] Undefined Constant


 On Wednesday 27 November 2002 15:24, Tyler Whitesides wrote:
  Hi,
 
  Although I have been working with PHP for a while, working with
  Databases is something that I am only so so at.  This code is supposed
to
  grab the price from the database given the auto_increment id is inside
of
  $casing.  I am trying to get the $row[price] to echo so that Javascript
  recieves a string, converts it to an integer, and later on in the code,
  gives the user a total.  Any ideas?

 Use:

   $row['price']

 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *


 /*
 The world really isn't any worse.  It's just that the news coverage
 is so much better.
 */


 --
 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




[PHP-DB] Undefined Constant

2002-11-26 Thread Tyler Whitesides
Hi,

Although I have been working with PHP for a while, working with Databases is 
something that I am only so so at.  This code is supposed to grab the price from the 
database given the auto_increment id is inside of $casing.  I am trying to get the 
$row[price] to echo so that Javascript recieves a string, converts it to an integer, 
and later on in the code, gives the user a total.  Any ideas?

Thanks,
Tyler

?
$grab = select * from parts where id = '$casing';; //This is line 17
$get = mysql_query($grab);
$row = mysql_fetch_row($get);
?
var casing = parseInt(form1.?= $row[price]; ?.value);
?
$grab = select * from parts where id = '$processor';;
$get = mysql_query($grab);
$row = mysql_fetch_row($get);
?




Re: [PHP-DB] Undefined Constant

2002-11-26 Thread Ignatius Reilly
Well, is there an input field in your form whose name corresponds to .?=
$row[price]; ? ?

It is more likely that if you have a dynamic form your fields will be called
by a ID identifier, like
INPUT name=1012price is 12 EUR
Where 12 is the price of grommet with ID 1012 in your DB

So perhaps your javascript generator echoes the wrong field names...

HTH
Ignatius

- Original Message -
From: Tyler Whitesides [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 8:24 AM
Subject: [PHP-DB] Undefined Constant


Hi,

Although I have been working with PHP for a while, working with
Databases is something that I am only so so at.  This code is supposed to
grab the price from the database given the auto_increment id is inside of
$casing.  I am trying to get the $row[price] to echo so that Javascript
recieves a string, converts it to an integer, and later on in the code,
gives the user a total.  Any ideas?

Thanks,
Tyler

?
$grab = select * from parts where id = '$casing';; //This is line 17
$get = mysql_query($grab);
$row = mysql_fetch_row($get);
?
var casing = parseInt(form1.?= $row[price]; ?.value);
?
$grab = select * from parts where id = '$processor';;
$get = mysql_query($grab);
$row = mysql_fetch_row($get);
?




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




Re: [PHP-DB] Undefined Constant

2002-11-26 Thread Jason Wong
On Wednesday 27 November 2002 15:24, Tyler Whitesides wrote:
 Hi,

 Although I have been working with PHP for a while, working with
 Databases is something that I am only so so at.  This code is supposed to
 grab the price from the database given the auto_increment id is inside of
 $casing.  I am trying to get the $row[price] to echo so that Javascript
 recieves a string, converts it to an integer, and later on in the code,
 gives the user a total.  Any ideas?

Use:

  $row['price']

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
The world really isn't any worse.  It's just that the news coverage
is so much better.
*/


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