Re: [PHP] Need help with an if statement

2006-04-24 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]) {

Re: [PHP] Need help with an if statement

2006-04-24 Thread Anthony Ettinger
Yikes...font? that's been deprecated since the turn of the century! do it with css... html ul liitem 1/li li class=selecteditem 2/li liitem 3/li /ul css: ul li { background-image: url(/img/arrow-off.png); color: gray; } ul .selected { background-image: url(/img/arrow-on.png); color: red; }

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 is

[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