Re: [PHP] Need help with an if statement

2006-04-23 Thread Anthony Ettinger
Yikes...? that's been deprecated since the turn of the century! do it with css... html item 1 item 2 item 3 css: ul li { background-image: url("/img/arrow-off.png"); color: gray; } ul .selected { background-image: url("/img/arrow-on.png"); color: red; } http://www.w3.org/TR/CSS21/colors.html

Re: [PHP] How to find tag and get src of image

2006-04-23 Thread T.Lensselink
Use preg_match_all Think this will work. But i'm for sure no regular expresion guru :) preg_match_all("/src=(.*)\040/i", $Text, $Result); print_r($Result); Gr, Thijs > Hi everybody! > I want to get src of image form a $text, I have a below text > > $Text = > > src=userupload/78/

Re: [PHP] Need help with an if statement

2006-04-23 Thread admin
Kinda depends on how you build the list of links i guess. What you need is a unique identifier. But would be more easy if you show some code. item 1 cart.php?item=1 item 2 cart.php?item=2 Then when you make the links. Use a loop foreach($links as $link) { if ($link["id"] == $_GET["item"])

[PHP] Need help with an if statement

2006-04-23 Thread Pub
Hello, I am really new to all this and I am really hoping I can get some help PLEASE... I am making a website with x-cart which uses PHP and Smarty templates. I need to make an " if " statement that puts a little arrow gif in front of the link that is clicked on! make any sense? In other

Re: [PHP] shopping carts

2006-04-23 Thread Robert Cummings
On Sun, 2006-04-23 at 23:20, Richard Lynch wrote: > > Another aspect is this: > Why do we call it a shopping cart? > > Look, a shopping cart is a goddam big basket on wheels. > > What we call a "shopping cart" on-line is actually, your entire stock > catalog, fulfillment, cash register, check-out

Re: [PHP] PHP Variables sizes

2006-04-23 Thread chris smith
On 4/24/06, David Killen <[EMAIL PROTECTED]> wrote: > Is there a maximum size for a variable in PHP. A client of mine is > having problems working with a file of around 4Mb. Not really being a > php developer I cannot really answer him. To quote him: > > We are not uploading excel from ftp. We are

[PHP] PHP Variables sizes

2006-04-23 Thread David Killen
Is there a maximum size for a variable in PHP. A client of mine is having problems working with a file of around 4Mb. Not really being a php developer I cannot really answer him. To quote him: We are not uploading excel from ftp. We are reading excel file which is about 4 MB. In php settings maxim

Re: [PHP] shopping carts

2006-04-23 Thread Richard Lynch
On Sun, April 23, 2006 9:01 am, tedd wrote: > This apparently is a common theme -- "I want a good basic shopping > cart that works AND I don't want to pay over $100 for it." > > Well... I want a good basic car and not pay over $100 for it too. > But, everyone knows that those two wants are mutually

Re: [PHP] How to find tag and get src of image

2006-04-23 Thread Paul Novitski
At 05:30 PM 4/23/2006, Pham Huu Le Quoc Phuc wrote: I want to get src of image form a $text, I have a below text $Text = Pham, Before you do anything else, fix your HTML syntax which is full of errors. Your tag appears in the middle of

Re: [PHP] New image already cached. (SOLVED)

2006-04-23 Thread Richard Lynch
On Sun, April 23, 2006 5:25 pm, tedd wrote: > > > Neither the image tag nor the file cares if there is a random number > attached to the file's url. But, by doing this, most (perhaps all) > browsers think the image name is unique. > > Doe anyone see any problems with this? Oh, all the browsers wi

RE: [PHP] How to find tag and get src of image

2006-04-23 Thread Jay Blanchard
[snip] Hi everybody! I want to get src of image form a $text, I have a below text $Text = [/snip] And I want a pony! RTFM http://www.php.net/regex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] sorting troubles

2006-04-23 Thread David Tulloh
William Stokes wrote: > Hello, > > Any idea how to sort this? > > I have a column in DB that contains this kind of data, > A20,B16,B17C14,C15,D13,D12 etc. > > I would like to print this data to a page and sort it ascending by the > letter an descending by the number. Can this be done? PHP ha

Re: [PHP] shopping carts

2006-04-23 Thread Lester Caine
Lisa A wrote: Can anyone suggest someone to write a simple client side shopping cart I can use? I need to install something that my client can update the merchandise themselves. Something inxepensive please. thanks, http://www.zen-cart.com/ is free, and not too difficult to manage, but we

Re: [PHP] New image already cached. (SOLVED)

2006-04-23 Thread tedd
Richard: Thank you very much for your detailed explanation -- I finally got it. However, the solution to my problem was much easier than I had hoped. My problem was in creating an image on the fly and then using the same file name each time. As such, some browsers cache the image while other

Re: [PHP] array problem + humor (all those with joke allergies beware)

2006-04-23 Thread Dave Goodchild
Tiresome. On 23/04/06, Brian V Bonini <[EMAIL PROTECTED]> wrote: > > On Sat, 2006-04-22 at 14:16, Jochem Maas wrote: > > with regard to Suresh - do you, Brian, know how many times he has posted > similar > > question to this list this year? (this is the first time he has even > given > > an indica

Re: [PHP] array problem + humor (all those with joke allergies beware)

2006-04-23 Thread Brian V Bonini
On Sat, 2006-04-22 at 14:16, Jochem Maas wrote: > with regard to Suresh - do you, Brian, know how many times he has posted > similar > question to this list this year? (this is the first time he has even given > an indication that he knows where the manual is let alone opened it btw) do > you > k

Re: [PHP] array problem

2006-04-23 Thread Brian V Bonini
On Sat, 2006-04-22 at 15:31, Martin Alterisio wrote: > You're wrong, he isn't using an associative array, since the keys used > are only integers. Well, if you really want to argue semantics then technically we're both wrong because there are no different indexed and associative array types in PHP

Re: [PHP] CMS for Auto Parts

2006-04-23 Thread CK
On Apr 23, 2006, at 11:55 AM, Joe Wollard wrote: I could be off here, but I think he's talking about using XML to transfer data back and forth between the flash app and the PHP app. That was the idea or using AMFPHP to pass a native PHP Object to FLASH. That's just me reading between the

Re: [PHP] CMS for Auto Parts

2006-04-23 Thread Joe Wollard
I could be off here, but I think he's talking about using XML to transfer data back and forth between the flash app and the PHP app. That's just me reading between the lines though. Maybe I'm taking too much from "PHP/XML should be used with a client-side Web GUI to upload images, part no., descrip

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-23 Thread Weber Sites LTD
I'm happy to say that the sites now work both ways. A user opens an account on WeberDev and an account Will be opened on WeberForums and vice versa. A password or email update on one site will trigger An update on the other. The code for the accounts on phpBB2 are at : http://www.weberdev.com/get

Re: [PHP] CMS for Auto Parts

2006-04-23 Thread John Hicks
CK wrote: > Hi, > On Apr 22, 2006, at 1:26 PM, John Hicks wrote: > >> CK wrote: >>> Hi, >>> I've been commissioned to design a web application for auto parts >>> sales. The Flash Front end will communicate with a MySQL DB via PHP. >>> In addition, PHP/XML should be used with a client-side Web GUI

[PHP] At Last!

2006-04-23 Thread Porpoise
Well, that was hardly an intuitive process - to get to the point of being able to post to the group. Why couldn't they put clearer instructions on the website? Or, maybe it's just me being thick. ;-) Or, maybe I just lost the <[SPAM] PHP list posting confirmation for...> amongst the s

[PHP] TEST - PLEASE IGNORE!

2006-04-23 Thread Porpoise
dsfk;ghjfdskjgjdsalkjfksd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems Posting - PLEASE IGNORE!

2006-04-23 Thread Porpoise
Been having problems posting. If this gets through OK please ignore -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting troubles

2006-04-23 Thread chris smith
> I have a column in DB that contains this kind of data, > A20,B16,B17C14,C15,D13,D12 etc. > > I would like to print this data to a page and sort it ascending by the > letter an descending by the number. Can this be done? Like > > A20 > B17 > B16 > C15 > C14 > D13 > D12 Depending on how many recor

Re: [PHP] shopping carts

2006-04-23 Thread tedd
At 9:04 PM -0400 4/22/06, Lisa A wrote: Do you have any suggestions? Right now I use the one through Paypal, but it would be too difficult for my client to add their own merchandise. I could pay more, but not much more. Do you recommend any good ones or someone that could write one. OScomme

Re: [PHP] ibase_errcode() not defined

2006-04-23 Thread Jochem Maas
Todd Cary wrote: If I use ibase_errcode(), I get an undefined error; ibase_errmsg() works. Anyone else have this error with Firebird? ibase_errcode() is php5 only. I highly recommend you use php5 if using the ibase extension - the php5 extension is light years ahead of it's php4 counter part.