Displaying a sale price if something is on sale...
Posted: Thu Oct 28, 2004 8:30 pm
Hi - I am designing my first php page and I have 2 colums for price, one for "price" and one for "saleprice"... as well as a column that tells me if an item is on sale "Y" or "N"...
Can someone help me write a simple script to display the "saleprice" and not the "price" if sale = Y...
I know it's really simple, but I am still a noobie, and need a little help. Here is my script for displaying the regular price:
<?php echo $row_shoes['price']; ?>
Any help would be GREATLY appreciated!
Thanks!
Can someone help me write a simple script to display the "saleprice" and not the "price" if sale = Y...
I know it's really simple, but I am still a noobie, and need a little help. Here is my script for displaying the regular price:
<?php echo $row_shoes['price']; ?>
Any help would be GREATLY appreciated!
Thanks!