[PHP] Re: Conversion of Field Value to Hyperlink

2004-07-29 Thread Jason Barnett
Harlequin wrote: Afternoon... I have a table generated by some code that returns certain field values and drops them into a table. On of these values is ID and I'd like to convert it I wouldn't let users create their own primary key for any type of inserts, if that's what you're using ID for. Use

Re: [PHP] Re: A native Windows binding for PHP

2004-07-29 Thread Travis Low
Another way to make money on free software is consulting. Many organizations don't have the time, resources, or interest in adapting free software for their needs. cheers, Travis Manuel Lemos wrote: Hello, "Rubem Pechansky" <[EMAIL PROTECTED]> wrote in message.. I have designed and successfully

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Nichel
Curt Zirzow wrote: * Thus wrote John Nichel: Harlequin wrote: RTFM...? AKA : Read The F**king Manual I thought the proper response was suppose to be: STFW :) Oh man, that would have been perfect. I'm slipping in my old age. ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP Gen

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Nichel
Brian Dunning wrote: I'm among those who are really pissed off when I see honest questions being answered with 'RTFM' or 'STFW'. I am relatively new to PHP, but by no means am I new to programming: like everyone else here, I already know how to RTFM and STFW. But sometimes I like to get an opini

[PHP] Re: A native Windows binding for PHP

2004-07-29 Thread Manuel Lemos
Hello, "Rubem Pechansky" <[EMAIL PROTECTED]> wrote in message.. I have designed and successfully prototyped a native Windows binding for PHP. This binding is already capable of doing dialogs, controls, and a lot more with very few lines of code. PHP can thus be used as a tool for developing native

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Nichel
John Holmes wrote: Why not simply 'Read The Fine Manual', or 'Read The Fantastic Manual'? Why does it have to contain profanity? For all practical purposes: RTFM == "read the manual" If someone finds it offensive then they're either delusional or paranoid or more likely both! If I'm off

Re: [PHP] How to nest information from different tables.

2004-07-29 Thread zareef ahmed
Hi, You can use join or make this query as follows $query="select *(or coulmn name) from event, eventdetails where event.id = eventdetails.id"; zareef ahmed --- Karl-Heinz Schulz <[EMAIL PROTECTED]> wrote: > I have two tables with relevant information's; > > Table1 -> event > Table 2 -> event

RE: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread David Robley
On Fri, 30 Jul 2004 03:45, Matthew Sims wrote: >> >> [smartass mode to full power - nothing personl] >> [/smartass mode] > > Is that W3C HTML 4.01 compliant? > I believe it is XNML - extended noob markup language -- David Robley Lawyers: The larval form of politicians. -- PHP General Maili

[PHP] How to nest information from different tables.

2004-07-29 Thread Karl-Heinz Schulz
I have two tables with relevant information's; Table1 -> event Table 2 -> eventdetails I'm trying to list all events in table one plus to show for each event whatever documents are available (file_name, information) My code to list all events from the "event" table is: ".html_decode($event[

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Matt M.
> I would rather not put it into a file as it will be changing in real time > dynamically so it would put some strain on the filesystem. All I really want to > do now is just stick it into a string variable. How could I do that? you could just use http://us2.php.net/file_get_contents -- PHP Gen

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 17:25:10 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Fri, 30 Jul 2004 00:06:33 + (UTC), Jonathan Lassoff > <[EMAIL PROTECTED]> wrote: > > Justin Patrin gmail.com> writes: > > > You could "fix" this script by actually giving it a file to output to > > > and reading

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Justin Patrin
On Fri, 30 Jul 2004 00:06:33 + (UTC), Jonathan Lassoff <[EMAIL PROTECTED]> wrote: > Justin Patrin gmail.com> writes: > > You could "fix" this script by actually giving it a file to output to > > and reading it or by using output buffering to grab the output into a > > string. > > > > Or you co

[PHP] Re: Searching and removing

2004-07-29 Thread Jonathan Lassoff
Justin Patrin gmail.com> writes: > You could "fix" this script by actually giving it a file to output to > and reading it or by using output buffering to grab the output into a > string. > > Or you could use some code which gives you a better interface for all > of this, such as: > http://pear.ph

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
Mmmm... Interesting Jay. Maybe I'll just WTFM mate :) -- - Michael Mason Arras People www.arraspeople.co.uk - "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have a table generated by some code that

Re: [PHP] Re: Searching and removing

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 23:25:41 + (UTC), Jonathan Lassoff <[EMAIL PROTECTED]> wrote: > Justin Patrin gmail.com> writes: > > Assuming there's only one table in the document > > > > preg_match('!]*>.*!i', $text, $matches); > > $table = $matches[0]; > > Thanks! I thought that I was putting it i

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Curt Zirzow
* Thus wrote John Nichel: > Harlequin wrote: > >RTFM...? > > > > AKA : Read The F**king Manual I thought the proper response was suppose to be: STFW :) Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the t

Re: [PHP] Variable functions within an object

2004-07-29 Thread Jason Davidson
http://ca3.php.net/manual/en/function.call-user-func.php ? Jason On Thu, 29 Jul 2004 17:11:50 -0500, Julio Sergio Santana <[EMAIL PROTECTED]> wrote: > I need to record the names of functions, and then use them later. > Recently I found the following example within the on-line documentation: >

[PHP] Re: Searching and removing

2004-07-29 Thread Jonathan Lassoff
Justin Patrin gmail.com> writes: > Assuming there's only one table in the document > > preg_match('!]*>.*!i', $text, $matches); > $table = $matches[0]; Thanks! I thought that I was putting it into a variable, but poking around with the script, it actually is just pooping out all the fetched

Re: [PHP] Variable functions within an object

2004-07-29 Thread Curt Zirzow
* Thus wrote Julio Sergio Santana: > > class a { > var $fname; > function a() { > $this->fname = 'foo'; // the name of the function > } > > function execute() { // method to execute the named function > $this->fname(); > // I also tried here > // {$this->fname}(); > //

RE: [PHP] Conversion of Field Value to Hyperlink OT

2004-07-29 Thread Jay Blanchard
[snip] I'm among those who are really pissed off when I see honest questions being answered with 'RTFM' or 'STFW'. I am relatively new to PHP, but by no means am I new to programming: like everyone else here, I already know how to RTFM and STFW. But sometimes I like to get an opinion from a rea

Re: Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread rogerk
Quoting John Holmes <[EMAIL PROTECTED]>: > > > Why not simply 'Read The Fine Manual', or 'Read The Fantastic > > > Manual'? Why does it have to contain profanity? > > > > For all practical purposes: > > > > RTFM == "read the manual" > > > > If someone finds it offensive then they're either de

Re: Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Holmes
> > Why not simply 'Read The Fine Manual', or 'Read The Fantastic > > Manual'? Why does it have to contain profanity? > > For all practical purposes: > > RTFM == "read the manual" > > If someone finds it offensive then they're either delusional or paranoid or > more likely both! If I'm

Re: [PHP] TIFF Images

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 17:16:58 -0500, Stephen Craton <[EMAIL PROTECTED]> wrote: > I'm working on a thumbnail script currently that needs to support multiple > types of files, such as jpeg, bmp, gif, etc. One of the file types I need to > support is a TIFF type image. I was looking through the PHP man

[PHP] TIFF Images

2004-07-29 Thread Stephen Craton
I'm working on a thumbnail script currently that needs to support multiple types of files, such as jpeg, bmp, gif, etc. One of the file types I need to support is a TIFF type image. I was looking through the PHP manual from "imagecreatfrom..." functions and I couldn't find one for tiff. Is there an

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Jason Wong
On Friday 30 July 2004 04:46, Ashley M. Kirchner wrote: > Why not simply 'Read The Fine Manual', or 'Read The Fantastic > Manual'? Why does it have to contain profanity? For all practical purposes: RTFM == "read the manual" If someone finds it offensive then they're either delusional o

[PHP] Variable functions within an object

2004-07-29 Thread Julio Sergio Santana
I need to record the names of functions, and then use them later. Recently I found the following example within the on-line documentation: \n"; } $func = 'foo'; $func();// This calls foo() ?> then I supposed that it was easy to extend this concept to objects and wrote the following case:

Re: [PHP] Searching and removing

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 21:37:59 + (UTC), Jonathan Lassoff <[EMAIL PROTECTED]> wrote: > There is a local radio station near me that has a crumby webserver that doesn't > server HTTP requests in a standard way. > So, I wrote a simple PHP script that fetches a playlist I want (with curl) and > serves

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Matthew Sims
> On Thu, 29 Jul 2004, John Nichel wrote: > >> Harlequin wrote: >> > RTFM...? >> >> AKA : Read The F**king Manual > > Why not simply 'Read The Fine Manual', or 'Read The Fantastic > Manual'? Why does it have to contain profanity? > > Just my two cents. Read the Fscking Manuel -- --M

[PHP] Searching and removing

2004-07-29 Thread Jonathan Lassoff
There is a local radio station near me that has a crumby webserver that doesn't server HTTP requests in a standard way. So, I wrote a simple PHP script that fetches a playlist I want (with curl) and serves it properly. I only want to get a table from the resulting HTML file. I have it stored in a v

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Brian Dunning
Most people who use the term RTFM do not attach any hostile intentions with it. I'm among those who are really pissed off when I see honest questions being answered with 'RTFM' or 'STFW'. I am relatively new to PHP, but by no means am I new to programming: like everyone else here, I already kno

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread rogerk
Quoting "Ashley M. Kirchner" <[EMAIL PROTECTED]>: > On Thu, 29 Jul 2004, John Nichel wrote: > > > Harlequin wrote: > > > RTFM...? > > > > AKA : Read The F**king Manual > > Why not simply 'Read The Fine Manual', or 'Read The Fantastic > Manual'? Why does it have to contain profanity? Becaus

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Nichel
Ashley M. Kirchner wrote: On Thu, 29 Jul 2004, John Nichel wrote: Harlequin wrote: > RTFM...? AKA : Read The F**king Manual Why not simply 'Read The Fine Manual', or 'Read The Fantastic Manual'? Why does it have to contain profanity? Just my two cents. Great thing about an acronym...it c

RE: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Jay Blanchard
[snip] > Harlequin wrote: > > RTFM...? > > AKA : Read The F**king Manual Why not simply 'Read The Fine Manual', or 'Read The Fantastic Manual'? Why does it have to contain profanity? Just my two cents. [/snip] Because that is what it has always meant. -- PHP General Mailing L

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Ashley M. Kirchner
On Thu, 29 Jul 2004, John Nichel wrote: Harlequin wrote: > RTFM...? AKA : Read The F**king Manual Why not simply 'Read The Fine Manual', or 'Read The Fantastic Manual'? Why does it have to contain profanity? Just my two cents. -- L | I haven't lost my mind; it's backed up on tape somew

Re: [PHP] Browser reload problem

2004-07-29 Thread Ashley M. Kirchner
On Thu, 29 Jul 2004, Skippy wrote: ATTENTION: if you receive the PayPal data by POST be sure to redirect using "303 See Other", which will "deactivate" the POST and force the redirect to use GET. Of course, forwarding any data to the 2nd script should be done as GET parameters. I stuck phpinfo(

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread rogerk
Quoting Jason Wong <[EMAIL PROTECTED]>: > Most people who use the term RTFM do not attach any hostile intentions with > it. If you're going to start getting all emotional about being told to RTFM > then you should stay away frm mailing lists, the internet, and computers in > general. Well there *a

[PHP] Failed (php-general@lists.php.net)

2004-07-29 Thread rjs
Mail Delivery - This mail couldn't be displayed- failed message -'y1;üi5j>W7?N3ogüQäYTn-yLG,N>#8j0K+&0D?,~MSiNV&Z*%Wg;Yo#,MnW?ö(ZnMßcpvR.$bVx$mL#s0ßl4ppZq29)30Jguö2gTR*b$fTmV5N8!VkzOAci&nR2YyIouu0Partial message is available and has been sent as a binary attachment. Or yo

Re: [PHP] Problem with $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']

2004-07-29 Thread Mark Collin
Thanks for pointing me in the right direction. I managed to kill my existing authorisation credentials by throwing a 401 unauthorised header at IE. Just in case anybody else is interested here is the basic layout of the code I used(I did format it but that might have got lost, apologies if it

RE: [PHP] Server's clock gone funny, maybe? OT

2004-07-29 Thread Jay Blanchard
[snip] > Please read this now, before you post again... > http://catb.org/~esr/faqs/smart-questions.html Thank you for not trying to be a condescending smartass at all. [/snip] Thank you for noticing! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Brian Dunning
On Jul 29, 2004, at 10:45 AM, Jay Blanchard wrote: Please read this now, before you post again... http://catb.org/~esr/faqs/smart-questions.html Thank you for not trying to be a condescending smartass at all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Holmes
> From: John Nichel <[EMAIL PROTECTED]> > I always feel so at home on this list. > > Now if we could keep John and Chris from being so prim and proper. ;) Yes, sir. I shall try. ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html -- PHP General Mailing List (

RE: [PHP] help with regular expression

2004-07-29 Thread Michael Sims
Barbara Picci wrote: > I've a script that must strip a string when it find the first word > containing at least 4 characters; it must print the content of the > string before that word, that word, a separator and the rest of the > string. > > I've tried with ereg whit this script ([EMAIL PROTECTED]

RE: [PHP] Server's clock gone funny, maybe? OT

2004-07-29 Thread php-general
Quoting Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > > > > [smartass mode to full power - nothing personl] > > [/smartass mode] > > Is that W3C HTML 4.01 compliant? > [/snip] > > Yes, ermaybe. Try XJBML strict > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit:

[PHP] ordering a list starting at x

2004-07-29 Thread php-general
Okay so I have a list of 20 images, I want to display 5 per page, the code I have included will do that without any problems, and the code I have included will setup the Prev, Next and page # links and they will pull up the correct results. However I need to include some functionality where if

RE: [PHP] Server's clock gone funny, maybe? OT

2004-07-29 Thread Jay Blanchard
[snip] > > [smartass mode to full power - nothing personl] > [/smartass mode] Is that W3C HTML 4.01 compliant? [/snip] Yes, ermaybe. Try XJBML strict -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Matthew Sims
> > [smartass mode to full power - nothing personl] > [/smartass mode] Is that W3C HTML 4.01 compliant? -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Ed Lazor
Maybe they've upgraded something on the server that's somehow affecting your code? Against MySQL 4.0.18 Query: select NOW() Results: 2004-07-29 10:48:12 Query: select NOW()+300 Results: 20040732104424 The difference in result data format would lead to the problem you're experiencin

[PHP] help with regular expression

2004-07-29 Thread Barbara Picci
Hi all, I'm trying from much days to solve a problem with a regular expression... I'm going to be crazy! I've a script that must strip a string when it find the first word containing at least 4 characters; it must print the content of the string before that word, that word, a separator and the re

RE: [PHP] ordering a list starting at x

2004-07-29 Thread Jay Blanchard
[snip] Any thoughts? [/snip] Several thousand. It must be the heat. Here are some. Have you tested this? It wasn't explained clearly. The subject of the thread does not reveal anything inside the post. Have you read http://catb.org/~esr/faqs/smart-questions.html this? There are no comments in you

Re: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Jason Wong
On Friday 30 July 2004 01:39, Brian Dunning wrote: > On Jul 29, 2004, at 10:18 AM, Jay Blanchard wrote: > > Have you asked the ISP? > > No - that's like asking a black hole, unfortunately - I was hoping > someone here might spot a problem on my end. 1) You're on the wrong list. Try asking on the m

RE: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Jay Blanchard
[snip] > Have you asked the ISP? No - that's like asking a black hole, unfortunately - I was hoping someone here might spot a problem on my end. [/snip] [smartass mode to full power - nothing personl] The problem most of us spotted was that there was not information in the initial post to arrive

[PHP] ordering a list starting at x

2004-07-29 Thread php-general
This is a little bit more involved then the subject would let on. What I have is a picture page, has nothing to do with an 80's themed kids show starring Bill Cosby, but what it has to deal with is a search results like page where 5 images will appear with a next and prev link to get to more.

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Nichel
I always feel so at home on this list. Now if we could keep John and Chris from being so prim and proper. ;) -- 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] Server's clock gone funny, maybe?

2004-07-29 Thread Brian Dunning
On Jul 29, 2004, at 10:18 AM, Jay Blanchard wrote: Have you asked the ISP? No - that's like asking a black hole, unfortunately - I was hoping someone here might spot a problem on my end. - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Jason Wong
On Friday 30 July 2004 01:05, Harlequin wrote: > "John Nichel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Harlequin wrote: > > > RTFM...? > > > > AKA : Read The F**king Manual > I know. > > Just wondered if Jay had the courage of his convictions. Most people who use the

RE: [PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Jay Blanchard
[snip] I've got a function where I reset an expiration datetime to 3 days in the future, using: update table set expire = NOW()+300 where ... Has always worked great, but today it always sets the field to -00-00 00:00:00. No code was touched. Anyone have a clue? A problem with the I

RE: [PHP] Named anchors, POST failure

2004-07-29 Thread Jay Blanchard
[snip] Sure. This is my function for posting a comment via the form I mentioned previously: [code] case "post_comment": // SQL to insert new psot into DB // $sql = "INSERT INTO table(value1, value2, value3) VALUES ('" . $_POST["value1"] . "', '" . $_POST["value2"] . "',

Re: [PHP] Classes, instances and NULL

2004-07-29 Thread Justin Patrin
On Thu, 29 Jul 2004 14:41:57 +0200, Oliver Hitz <[EMAIL PROTECTED]> wrote: > Hi all, > > I have stumbled across something odd related to classes, instances and > NULL in PHP 4. Apparently, an instance of a class that doesn't contain > any variables is always equal to NULL. > > class MyClass { >

Re: [PHP] Conversion of Field Value to Hyperlink OT

2004-07-29 Thread raditha dissanayake
Harlequin wrote: Jay I am new. we all are at something at some point or other in our lives. If you are newbie please read the newbie guide for the benefit of new members before posting. -- Raditha Dissanayake. http://www.

RE: [PHP] Conversion of Field Value to Hyperlink OT

2004-07-29 Thread Jay Blanchard
[snip] I am new. we all are at something at some point or other in our lives. If you don't like me fine - just ignore me. If you want to help, that's fine also. Just be polite. You don't need to swear to get your point across and don't need to be aggressive as either method implies a lack of con

[PHP] Server's clock gone funny, maybe?

2004-07-29 Thread Brian Dunning
I've got a function where I reset an expiration datetime to 3 days in the future, using: update table set expire = NOW()+300 where ... Has always worked great, but today it always sets the field to -00-00 00:00:00. No code was touched. Anyone have a clue? A problem with the ISP's serv

Re: [PHP] Named anchors, POST failure

2004-07-29 Thread Jason
Sure. This is my function for posting a comment via the form I mentioned previously: [code] case "post_comment": // SQL to insert new psot into DB // $sql = "INSERT INTO table(value1, value2, value3) VALUES ('" . $_POST["value1"] . "', '" . $_POST["value2"] . "',

Re: [PHP] Conversion of Field Value to Hyperlink OT

2004-07-29 Thread Harlequin
Jay I am new. we all are at something at some point or other in our lives. If you don't like me fine - just ignore me. If you want to help, that's fine also. Just be polite. You don't need to swear to get your point across and don't need to be aggressive as either method implies a lack of contr

RE: [PHP] Conversion of Field Value to Hyperlink OT

2004-07-29 Thread Jay Blanchard
[snip] Just wondered if Jay had the courage of his convictions. [/snip] Yes I do...I showed incredible restraint because I could have said STFW and STFA too. Courage of my convictions indeed, are you new here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
I know. Just wondered if Jay had the courage of his convictions. -- - Michael Mason Arras People www.arraspeople.co.uk - "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Harlequin wrote: > > RTFM...? > > > > AK

Re: [PHP] Re: apache1 + php or apache2 + php

2004-07-29 Thread Justin Patrin
For more info: http://www.reversefold.com/tikiwiki/tiki-index.php?page=PHPFAQs#id292342 On Thu, 29 Jul 2004 20:29:46 +0800, Ni Shurong <[EMAIL PROTECTED]> wrote: > Thank you! ;) > > I have build apache1+php5, apache2+php5 > but I don't know how to test which one is better :) > They all works fine

RE: [PHP] Named anchors, POST failure

2004-07-29 Thread Jay Blanchard
[snip] I have a form that post some data to a DB. After the post, I send it back to another page with a named anchor like this: Comments By way of a URL that looks like this: http://www.domain.com/index.php?mode=view&id=100&#comments or http://www.domain.com/index.php?mode=view&id=100#comments

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread John Nichel
Harlequin wrote: RTFM...? AKA : Read The F**king Manual -- 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] Need to maintain the integrity of the checkbox

2004-07-29 Thread Jay Blanchard
[snip] [snip] So the would go in the value or name field of the checkbox? [/snip] No, just value="" [/snip] I should have been more descriptive. When you click the SUBMIT button the values entered will appear in the $_POST array A small example page1.php (the form page) POST Test p

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
RTFM...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] I have a table generated by some code that returns certain field values and drops them int

RE: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Jay Blanchard
[snip] So the would go in the value or name field of the checkbox? [/snip] No, just value="" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] list($bar['CompanyCode'], $CompanyDB) = mysql_fetch_row($sth) fails.

2004-07-29 Thread Matthew Sims
> Why does this fail when using an array element, but using a variable will > work? Why should PHP care what the variable is I'm trying to store into? > > list($bar['CompanyCode'], $CompanyDB) = mysql_fetch_row($sth); Wouldn't it be easier to simply do: $result = mysql_fetch_row($sth); And then

RE: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Andrew Reilly
So the would go in the value or name field of the checkbox? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 10:01 AM To: Andrew Reilly; [EMAIL PROTECTED] Subject: RE: [PHP] Need to maintain the integrity of the checkbox [snip] Example of f

Re: [PHP] Browser reload problem

2004-07-29 Thread Matthew Sims
> > PayPal passes a ton of data back to us when someone's done > purchasing something. I use some of that information and shove it all > into a database. Problem is, if someone hits reload on their browser, I > get the same data re-inserted again. Reload the page four times, and I > will get

[PHP] Named anchors, POST failure

2004-07-29 Thread Jason
PHP 4.3.4 MySQL 4.0.2 Apache 2.0.48 RedHat 9.0 I have a form that post some data to a DB. After the post, I send it back to another page with a named anchor like this: Comments By way of a URL that looks like this: http://www.domain.com/index.php?mode=view&id=100&#comments or http://www.domain.co

[PHP] PHP5 and Webhost

2004-07-29 Thread EE
Dears, I have asked my webhost when will they install PHP5, he told me that not very soon as he assured me that there will be some bugs. Usually, when do you quys/gals think that php5 will be stable and webhost will start to upgrade? -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Jay Blanchard
[snip] I have a table generated by some code that returns certain field values and drops them into a table. On of these values is ID and I'd like to convert it to a hyperlink that people can use to go to another page to view further information about a record. However: The fields are not individua

[PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Harlequin
Afternoon... I have a table generated by some code that returns certain field values and drops them into a table. On of these values is ID and I'd like to convert it to a hyperlink that people can use to go to another page to view further information about a record. However: The fields are not in

RE: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Jay Blanchard
[snip] Example of form: So the dollar amounts are the same for three of the four events, but this is just a snippet of about 20 items. If I take out the dollar amounts, and just populate an array with what are now the descriptive names, I can assign dollar amounts in the checkout script. Am

RE: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Andrew Reilly
Example of form: Power of Money Series ($5000) Power of Politics ($3500) Power of Wine    Power of Golf (Fall) Series ($3500) Power of Golf (Spring) Series ($3500) So the dollar amounts are the same for three of the four events, but this is just a snippet of abou

Re: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Jason Wong
On Thursday 29 July 2004 22:04, Andrew Reilly wrote: > I have created a form that lists the possible sponsorships of various > events. I need to keep the names of the checkbox to identify the specific > event, but the value is a dollar amount that needs to pass thru to the > checkout area functio

RE: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Jay Blanchard
[snip] Your right, I didn't explain fully. If I have two events where the value="$5", then after I have looped thru the array I know they want to pay the $5, but not which event that goes to because multiple events are that value. What I'm thinking I'll do is make one array and give each event a

RE: [PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Jay Blanchard
[snip] I have created a form that lists the possible sponsorships of various events. I need to keep the names of the checkbox to identify the specific event, but the value is a dollar amount that needs to pass thru to the checkout area function. Without creating an array that would loose the even

Re: [PHP] image field in MSSQL db

2004-07-29 Thread raditha dissanayake
Edward Peloke wrote: I have never kept my images in the database but instead used the db to hold the path to the image. indeed that is the right way to do it. I now have to connect to a third party SQL Server db which holds images with an image data type in the table. How can I pull this out s

RE: [PHP] Re: Classes, instances and NULL

2004-07-29 Thread Michael Sims
Oliver Hitz wrote: > Thank you. I know there is a `===' operator, but to me this doesn't > make sense either. > > class A { } > class B { var $x; } > > It is logical that an instance of `A' is not identical to null. > However, why is an instance of `A' equal (`==' operator) to null, an > instan

[PHP] Need to maintain the integrity of the checkbox

2004-07-29 Thread Andrew Reilly
New to the list, thanks in advance. I have created a form that lists the possible sponsorships of various events. I need to keep the names of the checkbox to identify the specific event, but the value is a dollar amount that needs to pass thru to the checkout area function. Without creating a

[PHP] image field in MSSQL db

2004-07-29 Thread Edward Peloke
I have never kept my images in the database but instead used the db to hold the path to the image. I now have to connect to a third party SQL Server db which holds images with an image data type in the table. How can I pull this out so it can be diplayed? I simply can't echo out the contents as

[PHP] Re: Retrieving Stored Values for Dropdown Menu

2004-07-29 Thread rush
"Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all. > > I'm trying to retrieve values from a previously selected dropdown menu. For > text I simply use value="$Whatever" here is small example on dynamically cretaing listboxes, and selecting the items. http://www.temp

Re: [PHP] Re: Classes, instances and NULL

2004-07-29 Thread Oliver Hitz
On 29 Jul 2004, Mehdi Achour wrote: > Hi Oliver, you should test with === instead of == > http://php.net/manual/en/language.operators.comparison.php Thank you. I know there is a `===' operator, but to me this doesn't make sense either. class A { } class B { var $x; } It is logical that an

Re: [PHP] Automatically run a php page once a day

2004-07-29 Thread John Nichel
PHPDiscuss - PHP Newsgroups and mailing lists wrote: Hello everybody, Can someone help me saying how i can run a php script automatically once in a day. man cron Or if yer one of dem Windows users, there's that task scheduler thingy. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTE

[PHP] Re: Classes, instances and NULL

2004-07-29 Thread Mehdi Achour
Hi Oliver, you should test with === instead of == http://php.net/manual/en/language.operators.comparison.php didou Oliver Hitz wrote: Hi all, I have stumbled across something odd related to classes, instances and NULL in PHP 4. Apparently, an instance of a class that doesn't contain any variables

RE: [PHP] Automatically run a php page once a day

2004-07-29 Thread Jay Blanchard
[snip] Hello everybody, Can someone help me saying how i can run a php script automatically once in a day. [/snip] You don't say what your OS is, but CRON will do it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Automatically run a php page once a day

2004-07-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello everybody, Can someone help me saying how i can run a php script automatically once in a day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading txt file - certain lines

2004-07-29 Thread Miroslav Hudak (php/ml)
Everything is possible :) And in this case, it seems, that lines are delimited by ... i'm not quite sure, whether "" can be used in explode as a delimiter, if so, you have no problem and you just read all the file into variable, $lines = explode('', $variable) and you have lines in $lines... if

Re: [PHP] [HAB] Virtual Host

2004-07-29 Thread Jason Wong
On Thursday 29 July 2004 19:16, EE wrote: This question is OT ... > How can I make a virtual host. I usually type 127.0.0.1 in my browser to > test my site but I need to work on another site in a different > directory? ... check out http://httpd.apache.org/docs/ Also you need to set up some DNS

[PHP] Classes, instances and NULL

2004-07-29 Thread Oliver Hitz
Hi all, I have stumbled across something odd related to classes, instances and NULL in PHP 4. Apparently, an instance of a class that doesn't contain any variables is always equal to NULL. class MyClass { function anyFunction() { ... } } $c = new MyClass(); if ($c == null)

[PHP] Charset Problem

2004-07-29 Thread Gerske, Sebastian
Dear list, im running mysql 4.1 and php 4.3.8 and have the following problem with charset. If i select a row from a table like SELECT * FROM ip WHERE ip LIKE '127.0.0.1' LIMIT 0 , 30 i get the error: #1267 - Illegal mix of collations (ascii_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCI

Re: [PHP] Re: apache1 + php or apache2 + php

2004-07-29 Thread Ni Shurong
Thank you! ;) I have build apache1+php5, apache2+php5 but I don't know how to test which one is better :) They all works fine. I works under linux, and I need imap extension support ;) Mayby I will take apache1+php, for contented, aha .. ;) Ni Shurong <[EMAIL PROTECTED]> MAIL : [EMAIL P

[PHP] Re: apache1 + php or apache2 + php

2004-07-29 Thread Jay
Ni Shurong wrote: Hi, I am a newer of this list, nice to meet every body here:) I am wandering about using apache1 or apache2 with php, and i hope i can get some advics here ;) I use ./configure --help and it says: --with-apxs2[=FILE] EXPERIMENTAL: Build shared Apache 2.0 module. FILE is the

Re: [PHP] Problems with is_dir()

2004-07-29 Thread Jay
Ni Shurong wrote: you must do it like this: "; } } closedir($handle); clearstatcache(); } ?> Ni Shurong <[EMAIL PROTECTED]> MAIL : [EMAIL PROTECTED] QQ : 412844 MSN : [EMAIL PROTECTED] BLOG : http://blog.njmars.com/myhan/ You again! Thanx : )

  1   2   >