Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
[SOLVED] Just wanted to let you all know I resolved all my problems. AUTH_USER holds a value once I go into IIS/Default Website and go tot he properties of my application folder. Deselect the Anonymous Access and check Intergrated Windows Authentication. For my connection issue I needed version

Re: [PHP] Confused

2008-09-02 Thread Eric Butera
On Tue, Sep 2, 2008 at 3:15 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: >> Yea I thought the same that is why I recommended the looking at logs idea. >> >> Perhaps maybe just running form cli will do it: >> >> [EMAIL PROTECTED]:~/Sites$ php5 blah.php >> Point 1 >> Fatal error: Call to undefined funct

Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
> > Yea I thought the same that is why I recommended the looking at logs idea. > > Perhaps maybe just running form cli will do it: > > [EMAIL PROTECTED]:~/Sites$ php5 blah.php > Point 1 > Fatal error: Call to undefined function ifx_connect() in > /home/eric/Sites/blah.php on line 3 You probably

Re: [PHP] Confused

2008-09-02 Thread Eric Butera
On Tue, Sep 2, 2008 at 2:49 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-02 at 14:46 -0400, Robert Cummings wrote: >> On Tue, 2008-09-02 at 14:43 -0400, Dan Shirah wrote: >> > So you're script runs long enough for you to check? >> > >> > Cheers, >> > Rob.

Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
> Does your script, the apache conf, virtual host conf, or a .htaccess > conf modify this setting? perhaps php.ini has more than one > display_errors entries? > > Cheers, > Rob. PROGRESS! It just clicked! About 3 years ago when I setup my first PHP server on Windows I saw someone mention that c

Re: [PHP] Confused

2008-09-02 Thread David Giragosian
On 9/2/08, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > > Your script is dying then. What does the error log say? Are you sure PHP > > is using the php.ini you think it's using? Double check by using > > phpinfo(). > > > > Cheers, > > Rob. > > > It is VERY strange! phpinfo() shows that it is usin

Re: [PHP] Confused

2008-09-02 Thread Diogo Neves
On Tue, Sep 2, 2008 at 8:04 PM, Robert Cummings <[EMAIL PROTECTED]>wrote: > On Tue, 2008-09-02 at 14:58 -0400, Dan Shirah wrote: > > Your script is dying then. What does the error log say? Are > > you sure PHP > > is using the php.ini you think it's using? Double check by >

Re: [PHP] Confused

2008-09-02 Thread Diogo Neves
On Tue, Sep 2, 2008 at 7:58 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > > > > Your script is dying then. What does the error log say? Are you sure PHP > > is using the php.ini you think it's using? Double check by using > > phpinfo(). > > > > Cheers, > > Rob. > > > It is VERY strange! phpinfo() s

Re: [PHP] Confused

2008-09-02 Thread Robert Cummings
On Tue, 2008-09-02 at 14:58 -0400, Dan Shirah wrote: > Your script is dying then. What does the error log say? Are > you sure PHP > is using the php.ini you think it's using? Double check by > using > phpinfo(). > > Cheers, > Rob. >

Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
> > Your script is dying then. What does the error log say? Are you sure PHP > is using the php.ini you think it's using? Double check by using > phpinfo(). > > Cheers, > Rob. It is VERY strange! phpinfo() shows that it is using C:\Windows\php.ini phpinfo() also shows display_errors = Off but w

Re: [PHP] Confused

2008-09-02 Thread Robert Cummings
On Tue, 2008-09-02 at 14:46 -0400, Robert Cummings wrote: > On Tue, 2008-09-02 at 14:43 -0400, Dan Shirah wrote: > > So you're script runs long enough for you to check? > > > > Cheers, > > Rob. > > > > if (!$connect_id = ifx_connect("[EMAIL PROTECTED]", $user, $pa

Re: [PHP] Confused

2008-09-02 Thread Robert Cummings
On Tue, 2008-09-02 at 14:43 -0400, Dan Shirah wrote: > So you're script runs long enough for you to check? > > Cheers, > Rob. > > if (!$connect_id = ifx_connect("[EMAIL PROTECTED]", $user, $pass)) { > > Checks to see if it doesn't connect. If it does connect th

Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
> > So you're script runs long enough for you to check? > > Cheers, > Rob. if (!$connect_id = ifx_connect("[EMAIL PROTECTED]", $user, $pass)) { Checks to see if it doesn't connect. If it does connect the page continues to process. If it doesn't connect the error is displayed. echo "Unable to c

Re: [PHP] Confused

2008-09-02 Thread Eric Butera
On Tue, Sep 2, 2008 at 1:46 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > If it was that simple then the second line: echo "Unable to connect to > Informix Database\n"; would execute upon the connection failing and that > message would be output to my screen. I get Nothing. > > Just as a simple cal

Re: [PHP] Confused

2008-09-02 Thread Robert Cummings
On Tue, 2008-09-02 at 14:27 -0400, Dan Shirah wrote: > > > > Add the following: > > > > > > > echo ''."\n" > > print_r( $_SERVER ); > > echo ''."\n"; > > > > ?> > > > > See if the AUTH_USER entry is in there. > > > AUTH_USER shows up, but does not have a value. From the output of phpinfo() > it

Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
> > Add the following: > > > echo ''."\n" > print_r( $_SERVER ); > echo ''."\n"; > > ?> > > See if the AUTH_USER entry is in there. AUTH_USER shows up, but does not have a value. From the output of phpinfo() it says, "No value" How do you know you don't get a connection to the database? What is

Re: [PHP] Confused

2008-09-02 Thread brian
Dan Shirah wrote: All, Okay, I am a bit confused. I'm setting up another server to host PHP pages. I followed everything in the Manual for installing PHP. I'm running Windows Server 2003, IIS6.0 and PHP 5.2.6. And...it kind of works... If I do: it prints fine. If I do: Today is: it print

RE: [PHP] Confused

2008-09-02 Thread Simcha
Ignore my previous email - It was sloppy. I was not focusing on the email. SY -Original Message- From: Simcha [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2008 8:41 PM To: 'Dan Shirah'; 'PHP List' Subject: RE: [PHP] Confused This does not seem to be an

Re: [PHP] Confused

2008-09-02 Thread Dan Shirah
If it was that simple then the second line: echo "Unable to connect to Informix Database\n"; would execute upon the connection failing and that message would be output to my screen. I get Nothing. Just as a simple call to returns nothing as well. On 9/2/08, Simcha <[EMAIL PROTECTED]> wrote: >

Re: [PHP] Confused

2008-09-02 Thread Robert Cummings
On Tue, 2008-09-02 at 13:31 -0400, Dan Shirah wrote: > All, > > Okay, I am a bit confused. I'm setting up another server to host PHP > pages. I followed everything in the Manual for installing PHP. I'm running > Windows Server 2003, IIS6.0 and PHP 5.2.6. > > And...it kind of works... > > If

RE: [PHP] Confused

2008-09-02 Thread Simcha
This does not seem to be an installation problem - Your test [(!$connect_id = ] fails, since the connect returns false, so it does not run the condition. Compare: -Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2008 7:31 PM To: PHP List Subj

Re: [PHP] Confused about handling bytes

2007-05-20 Thread Tom Rogers
Hi, Monday, May 21, 2007, 10:50:27 AM, you wrote: JV> While I'm sure this is a stupid question and the solution will be JV> obvious to everyone here, this is confusing me. JV> I'm trying to control a device over a serial port using a PHP script, JV> and one of the things I need to do is read a

Re: [PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Zoltán Németh
2007. 05. 17, csütörtök keltezéssel 14.49-kor Tijnema ! ezt írta: > On 5/17/07, Dave M G <[EMAIL PROTECTED]> wrote: > > PHP list, > > > > I've looked at the manual entries for imagepng() and > > imagecreatetruecolor() functions for helping me to create a temporary > > image for a CAPTCHA system. >

Re: [PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Stephen
Save the image as a file. Then html src="filename" Dave M G <[EMAIL PROTECTED]> wrote: PHP list, I've looked at the manual entries for imagepng() and imagecreatetruecolor() functions for helping me to create a temporary image for a CAPTCHA system. However, I'm clearly messing up, as what I'm

Re: [PHP] Confused about how exactly to output image using imagepng function

2007-05-17 Thread Tijnema !
On 5/17/07, Dave M G <[EMAIL PROTECTED]> wrote: PHP list, I've looked at the manual entries for imagepng() and imagecreatetruecolor() functions for helping me to create a temporary image for a CAPTCHA system. However, I'm clearly messing up, as what I'm outputting is a bunch of ASCII gibberish

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Robert Cummings
On Tue, 2007-01-09 at 01:11 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote: > >> Bill Moran wrote: > >>> With reference to: > >>> http://bugs.php.net/bug.php?id=40067 > >>> > >>> I'm confused as to why this was marked bogus, and the messa

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Jochem Maas
Robert Cummings wrote: > On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote: >> Bill Moran wrote: >>> With reference to: >>> http://bugs.php.net/bug.php?id=40067 >>> >>> I'm confused as to why this was marked bogus, and the message that >>> marked as such doesn't give much insight. >>> >>> It wou

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Chris
Robert Cummings wrote: On Tue, 2007-01-09 at 10:01 +1100, Chris wrote: Bill Moran wrote: With reference to: http://bugs.php.net/bug.php?id=40067 I'm confused as to why this was marked bogus, and the message that marked as such doesn't give much insight. It would seem to me that infinite recur

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Robert Cummings
On Tue, 2007-01-09 at 10:01 +1100, Chris wrote: > Bill Moran wrote: > > With reference to: > > http://bugs.php.net/bug.php?id=40067 > > > > I'm confused as to why this was marked bogus, and the message that > > marked as such doesn't give much insight. > > > > It would seem to me that infinite re

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Robert Cummings
On Mon, 2007-01-08 at 23:59 +0100, Jochem Maas wrote: > Bill Moran wrote: > > With reference to: > > http://bugs.php.net/bug.php?id=40067 > > > > I'm confused as to why this was marked bogus, and the message that > > marked as such doesn't give much insight. > > > > It would seem to me that infin

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Chris
Bill Moran wrote: With reference to: http://bugs.php.net/bug.php?id=40067 I'm confused as to why this was marked bogus, and the message that marked as such doesn't give much insight. It would seem to me that infinite recursion within PHP is a bug. Shouldn't the interpreter catch this sort of th

Re: [PHP] Confused on the status of a "bogus" bug report

2007-01-08 Thread Jochem Maas
Bill Moran wrote: > With reference to: > http://bugs.php.net/bug.php?id=40067 > > I'm confused as to why this was marked bogus, and the message that > marked as such doesn't give much insight. > > It would seem to me that infinite recursion within PHP is a bug. > Shouldn't the interpreter catch t

Re: [PHP] confused about where to load images

2006-10-05 Thread Richard Lynch
On Thu, October 5, 2006 5:15 am, Meline Martirossian wrote: > I have just made my first php mini website. I have my header, footer, > navigation and main pages. > The header, footer and navigation appear as "includes" in my main > page. > > When I click on my navigation links, I get a new blank bro

Re: [PHP] Confused about how to best execute php scripts in /cgi-bin/

2005-09-07 Thread KEVIN ZEMBOWER
Disappointed that there was no response to this message, I nevertheless seemed to have solved the problem by adding "AddHandler php-script .php" to the stanza for my /cgi-bin/ directory. For the archives, in case anyone is searching for this answer, too. -Kevin >>> KEVIN ZEMBOWER <[EMAIL PROT

RE: [PHP] Confused - $GLOBALS

2004-12-10 Thread Richard Lynch
>> I always forget, because they changed it around on POST/GLOBALS/etc at >> some point, but only on some of them. Grrr. > > The built-in arrays with names beginning $_ are "superglobals", i.e. > always > global anyway. The only other "superglobal" is $GLOBALS, which is a > anming > exception bec

RE: [PHP] Confused - $GLOBALS

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 20:41, Richard Lynch wrote: > My best guess from skimming your code is that you need: > > global $_POST; No, he doesn't. > > in the function that uses $_POST

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Danny Brow
On Fri, 2004-12-10 at 05:52 +0800, Jason Wong wrote: > On Friday 10 December 2004 04:52, Danny Brow wrote: > > OK, you never said what your problem was except to say "everything works but > the str_replace item_pics1." > > Did you check $GLOBALS['errors'] after calling this function? No but I'm

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Jason Wong
On Friday 10 December 2004 04:52, Danny Brow wrote: OK, you never said what your problem was except to say "everything works but the str_replace item_pics1." Did you check $GLOBALS['errors'] after calling this function? > function html_template() { > global $item_pics1; > if (file_exist

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread John Nichel
Danny Brow wrote: function html_template() { global $item_pics1; if (file_exists('item.html')) { print "This is item_pics1" . $item_pics1; $html_template = $GLOBALS['html_template']; $html_template = str_replace('{item_pictures}', $item_pics1, $html_template);

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Jason Wong
On Friday 10 December 2004 04:48, Danny Brow wrote: > On Thu, 2004-12-09 at 12:40 -0800, Richard Lynch wrote: > > My best guess from skimming your code is that you need: > > > > global $_POST; > > should I put this at the top of my code with the rest of my variables? No > > in the function that u

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Danny Brow
On Thu, 2004-12-09 at 12:40 -0800, Richard Lynch wrote: > My best guess from skimming your code is that you need: > > global $_POST; > > in the function that uses $_POST. > > Or is $_POST always global anyway? > > I always forget, because they changed it around on POST/GLOBALS/etc at > some poi

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Danny Brow
On Thu, 2004-12-09 at 15:39 -0500, Roger Spears wrote: > Danny Brow wrote: > > On Thu, 2004-12-09 at 13:41 -0500, John Nichel wrote: > > > >>Danny Brow wrote: > >> > >>>Below is a snip of a program I am writing, I am a little new to php. > >>>Any how, I can't for the life me figure out why one of

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Danny Brow
On Thu, 2004-12-09 at 12:40 -0800, Richard Lynch wrote: > My best guess from skimming your code is that you need: > > global $_POST; > should I put this at the top of my code with the rest of my variables? > in the function that uses $_POST. > > Or is $_POST always global anyway? No. > > I

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Richard Lynch
My best guess from skimming your code is that you need: global $_POST; in the function that uses $_POST. Or is $_POST always global anyway? I always forget, because they changed it around on POST/GLOBALS/etc at some point, but only on some of them. Grrr. -- Like Music? http://l-i-e.com/artis

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread Danny Brow
On Thu, 2004-12-09 at 13:41 -0500, John Nichel wrote: > Danny Brow wrote: > > Below is a snip of a program I am writing, I am a little new to php. > > Any how, I can't for the life me figure out why one of my functions > > cannot grab the item_pics1 variable. I have tried passing the variable > > t

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread John Nichel
Belay that...the $GLOBALS array has existed since PHP3 -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Confused - $GLOBALS

2004-12-09 Thread John Nichel
Danny Brow wrote: Below is a snip of a program I am writing, I am a little new to php. Any how, I can't for the life me figure out why one of my functions cannot grab the item_pics1 variable. I have tried passing the variable to the function, tried using $GLOBALS['item_pic1']. So I guess my questio

Re: [PHP] Confused with constructors

2004-11-19 Thread Gareth Williams
Try this: class base_object() { function base_object() { echo "I'm the base"; } function base_test() { echo "I'm the base test"; } } class extended_object() extends base_object { function extended_object()

Re: [PHP] Confused overSimple PHP mySQL date question

2004-09-14 Thread John Holmes
From: "Scott Miller" <[EMAIL PROTECTED]> I have a mysql database that has a date field and a time field. I want users to be able to enter a date and a time in text boxes on an html form and have them end up in the database. Code examples would be good here. Either way, the format for a DATE field

RE: [PHP] Confused overSimple PHP mySQL date question

2004-09-14 Thread Jay Blanchard
[snip] DATE field in a mysql database. What obvuios thing did I miss? Note I am not using the system date or time stamp, these are entered dates. [/snip] You're using a DATE field in the MySQL database. MySQL requires an ISO formatted date unless you manipulate it, such as 2004-09-14 http://dev.

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread PHP Gen
Hey, > Just change the echo to an fwrite. > > for($j = 0; $j < 100; ++$j) { > if($pics[$i * 100 + $j]) { >fwrite($handle, ''); > } > } Works like a charm, thanks a million. -Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagi

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 15:40:03 -0700 (PDT), PHP Gen <[EMAIL PROTECTED]> wrote: > > --- Justin Patrin <[EMAIL PROTECTED]> wrote: > > > > 4: put 100 tags to call 100 images per page > > > (confused here) > > > > I put some code inline below. Should work. If you > > want a thumbnail > > gallery, you c

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread PHP Gen
--- Justin Patrin <[EMAIL PROTECTED]> wrote: > > 4: put 100 tags to call 100 images per page > > (confused here) > > I put some code inline below. Should work. If you > want a thumbnail > gallery, you could also create thumbnails using the > GD functions in > PHP, same them, and create an img

Re: [PHP] Confused...need some programming logic

2004-08-04 Thread Justin Patrin
On Wed, 4 Aug 2004 15:06:45 -0700 (PDT), PHP Gen <[EMAIL PROTECTED]> wrote: > Hi, > I have 13 folders with a few thousand images each, now > the client wants me to export the "gallerys" to > another server that does not run phpso he wants > plain .htm files. > > Below is how far I have come to

Re: [PHP] confused big time

2004-04-07 Thread Andy B
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Andy B" <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 6:30 PM Subject: RE: [PHP] confused big time Andy B <mailto:[EMAIL PROTECTED]> on Wednesday, April 07, 2004 2:09

RE: [PHP] confused big time

2004-04-07 Thread Chris W. Parker
Andy B on Tuesday, April 06, 2004 7:56 PM said: > $query="insert into table values( > '{$array['index1']['index2']}', > '{$array[index2']['index3']}', > //so on down the list > )"; > > if i understand the readable way right... no, not quite. here is how you should

Re: [PHP] confused big time

2004-04-07 Thread Red Wingate
You could even do: $sql .= " ( '".implode( "','" , $a )."' )"; This way everything is quoted though ( but this doesn't matter using MySQL anyway ). If you want to escape the values of $a you could use array_map to do this also without having to loop :-) -- red [...] > To get your list of colu

Re: [PHP] confused big time

2004-04-07 Thread Mark Ackroyd
RD> But now() IS a DB friendly format for MySQL and is the recommended RD> way of inserting the current time into a datetime or timestamp RD> field. But what about MsSQL, Oracle and postgres to name a few. I have worked on a few projects where you read from one db and load into another db. Dates

Re: [PHP] confused big time

2004-04-07 Thread Mark Ackroyd
RD> That .1% of the time being when you need to insert a value as now() ? RD> (which will break the string check as it'll wrap it with '' which will RD> cause MySQL to insert -00-00 00:00:00) or if it's an enum field RD> with a numeric allowed value? :) Not really, since you usally format a tim

Re: [PHP] confused big time

2004-04-07 Thread John W. Holmes
From: "Mark Ackroyd" <[EMAIL PROTECTED]> > I always found this way of inserting data into a database messy. Here is > a handy function to do array inserts and it builds the sql for you. > > function arrayINSERT($a,$tablename) > { > $sql = "INSERT INTO $tablename ("; > foreach($a as $key => $valu

Re: [PHP] confused big time

2004-04-07 Thread Mark Ackroyd
I always found this way of inserting data into a database messy. Here is a handy function to do array inserts and it builds the sql for you. function arrayINSERT($a,$tablename) { $sql = "INSERT INTO $tablename ("; foreach($a as $key => $value)

RE: [PHP] confused big time

2004-04-07 Thread Robert Cummings
On Tue, 2004-04-06 at 20:09, Chris W. Parker wrote: > Chris W. Parker <> > on Tuesday, April 06, 2004 5:01 PM said: > > let me expand both of my points in an attempt to be more verbose. > > > 1. write readable queries. > > 2. always put single quotes around array keys. $array['key'] > > here

Re: [PHP] confused big time

2004-04-06 Thread Andy B
>i was hoping that wouldn't cause any confusion, but i >guess it did. the >thing to remember is that a query is a query. you know, >parts is parts. oops stress and the fact that im sort of new at this stuff mixed me up... $query="insert into table values( '{$array['index1']['index2']}', '{$array[

Re: [PHP] confused big time

2004-04-06 Thread Andy B
> AB> 1. how were those queries unreadable?? and > > You're kidding, right? sorry...my bad... never had any "writing readable code" help anywhere...guess if i do it like c/c++ then it would work better > > AB> 2. whenever i put '' around the array keys in multi dimensional arrays in a > AB> query

Re: [PHP] confused big time

2004-04-06 Thread Andy B
> He was showing you a neatly formatted query, the example applies to > inserts too: > > $sql = " > INSERT INTO >tablename >( > field1, > field2, > field3 >) > VALUES > ( > '$blah', > $here

RE: [PHP] confused big time

2004-04-06 Thread Martin Towell
> > um...im not doing selects im doing inserts with variable names... i > > understand the idea with select but thats not the dealits an > > insert... > > i was hoping that wouldn't cause any confusion, but i guess > it did. the > thing to remember is that a query is a query. you know, parts

RE: [PHP] confused big time

2004-04-06 Thread Chris W. Parker
Andy B on Tuesday, April 06, 2004 5:18 PM said: > um...im not doing selects im doing inserts with variable names... i > understand the idea with select but thats not the dealits an > insert... i was hoping that wouldn't cause any confusion, but i guess it did.

Re: [PHP] confused big time

2004-04-06 Thread Richard Davey
Hello Andy, Wednesday, April 7, 2004, 1:18:06 AM, you wrote: AB> um...im not doing selects im doing inserts with variable names... i AB> understand the idea with select but thats not the dealits an insert... He was showing you a neatly formatted query, the example applies to inserts too: $s

Re: [PHP] confused big time

2004-04-06 Thread Richard Davey
Hello Andy, Wednesday, April 7, 2004, 1:06:52 AM, you wrote: AB> 1. how were those queries unreadable?? and You're kidding, right? AB> 2. whenever i put '' around the array keys in multi dimensional arrays in a AB> query i get a parse error of trying to use undefined keys or it doesnt AB> expan

RE: [PHP] confused big time

2004-04-06 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, April 06, 2004 5:01 PM said: let me expand both of my points in an attempt to be more verbose. > 1. write readable queries. > 2. always put single quotes around array keys. $array['key'] here is how i would write your query: http://www.php.net/) To unsubscribe

RE: [PHP] confused big time

2004-04-06 Thread Chris W. Parker
Andy B on Tuesday, April 06, 2004 4:51 PM said: > they both use the same identical format to insert the arrays. there > is an interesting problem though: the first one complains about use > of undefined constant add - assumed 'add' in the second query...the > first o

Re: [PHP] confused about logic

2004-03-19 Thread Chris Boget
> Thanks for the time John. > Chris's did the trick. I'll keep yours on hand in case I do happen to > run into problems. > I DO appreciate your help. John's solution is actually technically better than mine in that it's only using one function call ("str_replace()") and as such only one possible p

RE: [PHP] confused about logic

2004-03-19 Thread Aaron Wolski
> To: Aaron Wolski; [EMAIL PROTECTED] > Subject: Re: [PHP] confused about logic > > From: "Aaron Wolski" <[EMAIL PROTECTED]> > > > I have input for where users can enter order numbers in which to search > > the database to find results matching their

RE: [PHP] confused about logic

2004-03-19 Thread Aaron Wolski
Chris! Thanks so much. This worked perfectly Aaron > -Original Message- > From: Chris Boget [mailto:[EMAIL PROTECTED] > Sent: March 19, 2004 10:59 AM > To: Aaron Wolski; [EMAIL PROTECTED] > Subject: Re: [PHP] confused about logic > > > To enter multiple orde

Re: [PHP] confused about logic

2004-03-19 Thread John W. Holmes
From: "Aaron Wolski" <[EMAIL PROTECTED]> > I have input for where users can enter order numbers in which to search > the database to find results matching their entry. > > To enter multiple order numbers they can comma separate like: > 1,34,21,34,54 > > What I need to do is take those numbers

Re: [PHP] confused about logic

2004-03-19 Thread Chris Boget
> To enter multiple order numbers they can comma separate like: > 1,34,21,34,54 > What I need to do is take those numbers and make a query that would like > like: > (cart_id in('1','34','21','34','54') OR id in('1','34','21','34','54')) > ANY idea how I can accomplish this? $string = "'" . implode

Re: [PHP] confused about logic

2004-03-19 Thread David O'Brien
At 10:45 AM 3/19/2004, you wrote: Hi All, I have input for where users can enter order numbers in which to search the database to find results matching their entry. To enter multiple order numbers they can comma separate like: 1,34,21,34,54 Let's say you place these in the following variable $o

RE: [PHP] Confused a little with = to and grater than ...

2003-03-15 Thread Dennis Cole
I think this is what you mean -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2003 8:29 PM To: [EMAIL PROTECTED] Subject: [PHP] Confused a little with = to and grater than ... Importance: Low Well i thought about changeing access level

Re: [PHP] Confused about $_SESSION and $_COOKIE scope..

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 6:01:19 AM, you wrote: CD> I'm not sure why this isn't working, been banging my head at it for a couple CD> hours now. CD> I have a file (index.php), which calls a function that draws the header to CD> my page. CD> Inside that function (site_header), is an include

Re: [PHP] Confused

2002-09-23 Thread -=| Julien Bonastre |=-
well it depends how you want to go about it.. I have done something exactly like this, this morning.. :-p Firstly.. you can use a normal SQL SELECT statement, but use GROUPing to seperate the groups in this case and ORDER them alphabetically or something.. Next.. You can do something like this:

RE: [PHP] Confused

2002-09-23 Thread M . A . Bond
Nope, Do a select like so: Select user_name, group_name from users,groups where users.group_id=groups_id order by group_name; Then do a php loop (you'll need to find the eact php commands, this is just an example): While (!$results->EOF) { If ($results[group_name]!="$old_groupname") {

Re: [PHP] Confused about the list() function

2002-07-17 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 12:26:08PM -0400, DonPro wrote: > > $color_list = explode(",", $color); > > Now that I have a string of colors delimited by commas, I would like to > parse the string and print out all my colors. Start with turning on line wrapping in your email client... Now, your sen

Re: [PHP] Confused about the list() function

2002-07-17 Thread Asmodean
D> Hi, D> I have the following situation. I have an array of colors that I would like to print out. My first course of action would be to convert the array to a string so that I can parse it. My command D> would be: D> $color_list = explode(",", $color); D> Now that I have a string of colo

Re: [PHP] Confused about the list() function

2002-07-17 Thread 1LT John W. Holmes
How do you want to parse the string? why not just echo $color_list? ---John Holmes... - Original Message - From: "DonPro" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 12:26 PM Subject: [PHP] Confused about the list() function Hi, I have the fol

RE: [PHP] confused newbie on PHP and Javascript.

2002-06-13 Thread David Freeman
> I have a JavaScript function that onChange of a list box, > takes the value of an option and grabs data from a MySQL > table. My problem is how do I use the JavaScript var in my > sql statement? Javascript is client-side, php is server-side. The only way to get something that happens i

RE: [PHP] confused newbie on PHP and Javascript.

2002-06-13 Thread Lazor, Ed
there a way to > accomplish what I'm > trying to do? Maybe some kind of work around a person has > found when doing > this kind of thing? > > Thanks again, > > Steve > > -Original Message----- > From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] >

RE: [PHP] confused newbie on PHP and Javascript.

2002-06-13 Thread Steve Bradwell
Steve -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:26 PM To: Steve Bradwell; [EMAIL PROTECTED] Subject: Re: [PHP] confused newbie on PHP and Javascript. > I am having a problem, mostly concept wise of how, or if I can use client > side

RE: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread David Freeman
> > When you suck the data back out you'll obviously need to > > stripslashes() to get rid of the 'escape' chars you added above. > > Nope, because the escape characters don't actually get added to the > database. > When the database's command interpreter sees it, it removes > the esc

RE: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread Miguel Cruz
On Sat, 18 May 2002, David Freeman wrote: > As a general rule, though, you'll need to 'escape' anything that your > database won't like - this is typically the ' and " chars. Addslashes() > will do that for you. Anything else you want to do depends on what you > need the data for. > > When you

RE: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread David Freeman
> I've read the documentation but am still confused about what > to use when. > > When passing data from forms to database, which do I use? > When retrieving data from database to display in forms, > which do I use? Kinda depends on what you're using the data for really. If you don't c

Re: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread Miguel Cruz
On Fri, 17 May 2002, Don wrote: > I have forms that retrieve date from mysql databases and send (for > storage) data to same databases. I note many functions to make sure > that the data is correct in appearance when it comes to special > characters. > > addslashes() > stripslashes() > htmlspeci

Re: [PHP] Confused about which function to use with forms/database

2002-05-17 Thread Analysis & Solutions
Don: > I have forms that retrieve date from mysql databases and send (for > storage) data to same databases. I note many functions to make sure > that the data is correct in appearance when it comes to special > characters. > > addslashes() > stripslashes() > htmlspecialchars() > htmlentities()

RE: [PHP] Confused About Classes

2002-03-25 Thread Rick Emery
To: [EMAIL PROTECTED] Subject: Re: [PHP] Confused About Classes No, the only thing I supplied is the class. The startElementHandler IS a function in the class. "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

Re: [PHP] Confused About Classes

2002-03-25 Thread arti
No, the only thing I supplied is the class. The startElementHandler IS a function in the class. "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > if ($this->private==FALSE) // Undefined variable > this > > return; > > } >

RE: [PHP] Confused About Classes

2002-03-25 Thread Rick Emery
> if ($this->private==FALSE) // Undefined variable this > return; > } $this is relevant ONLY within the scope of the class definition. The above snippet is located OUTSIDE of the class definition. You must use an object pointer. That is: $newobj = new standardquestion($f

Re: [PHP] Confused object in session variable.

2001-10-25 Thread Steve Cayford
An update... I had register_globals turned off. Now that I've turned register_globals on and changed my references from $HTTP_SESSION_VARS['ucAuthoUser'] to $ucAuthoUser it works as I expect. I'm not real happy with having register_globals on, though, and I'd like to figure out what I was doin

Re: [PHP] confused with sessions

2001-06-22 Thread Chris Lee
trans_sid is only enabled when cookies are not supported. php.ini has session.use_cookies = 0; this will disable cookies and force trans-sid. you should also verify trans-sid with phpinfo(), make sure it really did get compiled in. trans-sid will only re-write urls that are not full urls. ie. in

Re: [PHP] confused about getenv arguements

2001-01-27 Thread Rasmus Lerdorf
Just put in a file and read through it. Note that HTTP_REFERER (1 R) is only set if you click on a link to get to the page. Also note that relying on HTTP_REFERER for anything important is not safe. Anybody can spoof this variable. -Rasmus On Sat, 27 Jan 2001, Noel Akins wrote: > Hello, > I