Re: [PHP] Need help with an if statement

2006-04-24 Thread Richard Lynch
On Mon, April 24, 2006 12:24 am, Pub wrote: > 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

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] 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"])