Re: [PHP-DB] Define constants: awkward usage?

2005-01-26 Thread Jochem Maas
tony wrote: Hi all, I got this sets(20) of defined constants which using them as keys to an array eg define(FNAME, fname); farray = array( FNAME = hello ,...); my question is how do I insert that directly into a javascript(to do some client validation) I need this: var

Re: [PHP-DB] Define()

2003-03-18 Thread Edwin Boersma
that and it still doesn't work. --- Jonathan -Original Message- From: Jim Hunter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:59 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Define() Looking at your source you are still missing the php in the script. it has to look

RE: [PHP-DB] Define()

2003-03-18 Thread Jonathan Villa
PROTECTED] Subject: Re: [PHP-DB] Define() Where is the $-sign in front of the vars??? Edwin Jonathan Villa wrote: Jim, I don't think that matters. One can escape into PHP in several ways (depending on the php.ini config of course) 1.?php 2.? 3.script language=php 4

Re: [PHP-DB] Define()

2003-03-12 Thread Jim Hunter
The reason it doesn't work may go beyond PHP. You are trying to make an HREF point to an exact location on your hard drive. When the user of your web page clicks the link, they do not have that location on their system so it will fail. Always use relative locations for links. Then once you get

RE: [PHP-DB] Define()

2003-03-12 Thread Jonathan Villa
]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Define() The reason it doesn't work may go beyond PHP. You are trying to make an HREF point to an exact location on your hard drive. When the user of your web page clicks the link, they do not have that location on their system so it will fail. Always use

RE: [PHP-DB] Define()

2003-03-12 Thread Jonathan Villa
For starters, and in general, does anyone know why a view source would not work in IE 6? This hasn't worked for weeks, so I usually have to use Mozilla to view the source. Anyway, Jim, this is my basic page setup. ?php include_once(../common/store_config.php);

RE: [PHP-DB] Define()

2003-03-12 Thread Hutchins, Richard
Villa [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 3:21 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Define() For starters, and in general, does anyone know why a view source would not work in IE 6? This hasn't worked for weeks, so I usually have to use Mozilla to view

RE: [PHP-DB] Define()

2003-03-12 Thread Hutchins, Richard
] Subject: RE: [PHP-DB] Define() Yes! I ran into this once and it stumped me for a while. You need to delete the temporary internet files directory on the machine where you're viewing the source. Took me three days of looking on microsoft.com to figure that one out. I'm not proud

RE: [PHP-DB] Define()

2003-03-12 Thread Jonathan Villa
-Original Message- From: Jim Hunter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 2:59 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Define() Looking at your source you are still missing the php in the script. it has to look like: form action=?php echo CTL_HOME_ROOT

Re: [PHP-DB] define variable by querying MySQL

2001-07-02 Thread Dobromir Velev
Hi, I'm not sure what were you trying to do but there are some very obvious errors 1. You cannot embed one php openning tag (?) in another 2. mysql_numrows() is not a valid mysql function - may be you were trying to use mysql_num_rows() If you are trying to put all fields my_name into the