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:

[PHP-DB] Define constants: awkward usage?

2005-01-26 Thread tony
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 fna

RE: [PHP-DB] Define()

2003-03-18 Thread Jonathan Villa
2:43 AM To: [EMAIL 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. 2. 3.

Re: [PHP-DB] Define()

2003-03-18 Thread Edwin Boersma
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. 2. 3.

RE: [PHP-DB] Define()

2003-03-12 Thread Jonathan Villa
[PHP-DB] Define() Looking at your source you are still missing the php in the script. it has to look like: note the php ||| add this and try it again. Jim

RE: [PHP-DB] Define()

2003-03-12 Thread Hutchins, Richard
x27;; [EMAIL PROTECTED] > 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 micro

RE: [PHP-DB] Define()

2003-03-12 Thread Hutchins, Richard
; From: Jonathan 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 we

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. This is where my HTML codes goes. So for example, a link to another page woul

RE: [PHP-DB] Define()

2003-03-12 Thread Jonathan Villa
arch 12, 2003 12:58 PM To: [EMAIL PROTECTED]; [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 th

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 that

[PHP-DB] Define()

2003-03-12 Thread Jonathan Villa
I am developing an app which needs 3 constants. The value of these constants comes from a database result. This works fine. My problem is that they do not work very well. I am developing on both windows/Linux (depending what I boot into). This is the effect I want $doc_dir = the string of d:

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

2001-07-02 Thread Dobromir Velev
02, 2001 1:01 AM Subject: [PHP-DB] define variable by querying MySQL hello list. i have a problem that is relatively simple, but I can't seem to figure it out. is there any way to define a variable by querying a MySQL database? here's an ex

[PHP-DB] define variable by querying MySQL

2001-07-01 Thread Matt Nigh
hello list. i have a problem that is relatively simple, but I can't seem to figure it out. is there any way to define a variable by querying a MySQL database? here's an example of code I tried using: my_name"; } mysql_close($link);