[PHP] help - php script - no interaction

2008-10-16 Thread John Smtih
http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3 sites, and bring it back into 1 page (the content of 3 pages concatinated). Is

Re: [PHP] help - php script - no interaction

2008-10-16 Thread Dan Joseph
On Thu, Oct 16, 2008 at 1:10 PM, John Smtih [EMAIL PROTECTED] wrote: http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3

Re: [PHP] help with script needed

2007-03-13 Thread Stut
Richard Lynch wrote: You could also just use: if (($i % 15) === 0) echo FooBar; elseif (($i % 3) === 0) echo Foo; elseif (($i % 5) === 0) echo Bar; 15 works because 3 and 5 are mutually prime or whatever it's called. Good point, missed that one. A minimalist might not even bother with the

Re: [PHP] help with script needed

2007-03-12 Thread Richard Lynch
You could also just use: if (($i % 15) === 0) echo FooBar; elseif (($i % 3) === 0) echo Foo; elseif (($i % 5) === 0) echo Bar; 15 works because 3 and 5 are mutually prime or whatever it's called. The order matters, though, as moving the 15 after the other if tests would fail, as 3 and/or 5 would

Re: [PHP] help with script needed

2007-03-08 Thread Jochem Maas
Stut wrote: Bruce Gilbert wrote: Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here

[PHP] help with script needed

2007-03-07 Thread Bruce Gilbert
I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example. How do I go about doing this? -- ::Bruce:: -- PHP

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote: I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example.

Re: [PHP] help with script needed

2007-03-07 Thread afan
try this if ($i%5 == 0) echo foobr; -afan I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
oops, ofcourse whe have the modular :) On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: try this if ($i%5 == 0) echo foobr; -afan I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to

Re: [PHP] help with script needed

2007-03-07 Thread Martin Marques
Tijnema ! escribió: On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote: I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example. How do I go about doing this? I've seen that question a lot, what i use is fairly simple if( intval($number

Re: [PHP] help with script needed

2007-03-07 Thread Bruce Gilbert
Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here http://www.inspired-evolution.com/image_test/numbers_output.php I

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
Marques martin@bugs.unl.edu.ar Cc: Tijnema ! [EMAIL PROTECTED]; PHP-General php-general@lists.php.net Sent: Wednesday, March 07, 2007 4:00 PM Subject: Re: [PHP] help with script needed Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i

Re: [PHP] help with script needed

2007-03-07 Thread Stut
Bruce Gilbert wrote: Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
LOL I told'ya I rememberd it from my 2nd semester :) Ok, this is commonly known as the FizzBuzz problem and is used a lot as a university project or interview question. If you can't do it, be afraid!! http://dev.stut.net/php/fizzbuzz.php -Stut -- PHP General Mailing List

FW: [PHP] help with script!!!

2003-02-02 Thread David Freeman
echo(| %s | %s | %s | %s | %s |br /, $array[id], $array[username], $array[password], $array[status], $array[notes]); If you look at http://www.php.net/echo you'll see that echo does not support this syntax. If you want to use this syntax then you should probably be using some form of

Re: [PHP] help with script!!!

2003-02-02 Thread Philip Olson
On Sat, 1 Feb 2003, Hugh Danaher wrote: echo(| %s | %s | %s | %s | %s |br /, $array[id], $array[username], $array[password], $array[status], $array[notes]); try echo | %s | %s | %s | %s | %s |br /.$array[id]. .$array[username]. .$array[password]. .$array[status]. .$array[notes]; dots

Re: [PHP] help with script!!!

2003-02-02 Thread Sunfire
] Sent: Saturday, February 01, 2003 1:37 AM Subject: [PHP] help with script!!! Hello guys and gals!!! can you tell me why i can't get this script to print my table thanks Karl please check out the code below obviously i left my username and passwords blank

[PHP] help with script!!!

2003-02-01 Thread Karl James
Hello guys and gals!!! can you tell me why i can't get this script to print my table thanks Karl please check out the code below obviously i left my username and passwords blank :-) -

Re: [PHP] help with script!!!

2003-02-01 Thread Hugh Danaher
- Original Message - From: Karl James [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Friday, January 31, 2003 10:37 PM Subject: [PHP] help with script!!! Hello guys and gals!!! can you tell me why i can't get this script to print my table thanks Karl please check out the code

Re: [PHP] help with script!!!

2003-02-01 Thread Philip Olson
On Sat, 1 Feb 2003, Karl James wrote: Hello guys and gals!!! can you tell me why i can't get this script to print my table thanks Karl please check out the code below obviously i left my username and passwords blank :-)

[PHP] help with script!!

2003-01-01 Thread Karl James
HYPERLINK http://host.makethewebsecure.com/~admin12/do_adduser.phpshttp://host.m akethewebsecure.com/~admin12/do_adduser.phps can someone take a look at this and see why this wont work. karl --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: [PHP] help with script!!

2003-01-01 Thread Michael J. Pawlowsky
Without the error message you are making it kind of tough. What's the response that you get. Also you should use long ?php and not just ? Single quote your arrays as in $_POST['f_name'] and not $_POST[f_name] This will help if you ever move to a serve that's not so lax. *** REPLY

Re: [PHP] help with script!!

2003-01-01 Thread Justin French
on 02/01/03 7:54 AM, Karl James ([EMAIL PROTECTED]) wrote: can someone take a look at this and see why this wont work. why don't you start by telling us what's wrong, or HOW it doesn't work? Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] help with script

2003-01-01 Thread Karl James
Sorry guys!!! Well im trying to add the form to my database table. Which is this link!! HYPERLINK http://host.makethewebsecure.com/~admin12/show_adduser.htmlhttp://host .makethewebsecure.com/~admin12/show_adduser.html then when I hit add user!!! I get this error message Added to

Re: [PHP] help with script

2003-01-01 Thread Michael J. Pawlowsky
There's your answer... You do not have permission to insert into the database with that user. Contact your DBA! :-) and if that's you read the MySQL manual. Especially about the mysql.user table *** REPLY SEPARATOR *** On 01/01/2003 at 1:19 PM Karl James wrote: Access

[PHP] Help with script - if possible

2002-08-28 Thread Ray Healy \(Data Net Services\)
Hi All Thanks for everyones help in trying to get my script to work - I'm learning fast. But have the following problem: I am using the following select command for searching a table with regards to booked villas according to id number: $sql = SELECT COUNT(*) as count FROM bookings WHERE

RE: [PHP] Help with script - if possible

2002-08-28 Thread Richard Black
Message- From: Ray Healy (Data Net Services) [mailto:[EMAIL PROTECTED]] Sent: 28 August 2002 17:49 To: [EMAIL PROTECTED] Subject: [PHP] Help with script - if possible Hi All Thanks for everyones help in trying to get my script to work - I'm learning fast. But have the following problem: I am