connexion2005 Posted March 20, 2007 Share Posted March 20, 2007 Hey guys we are creating an online store for a project in on of my classes. I've searched around and cant really find how to create some availability scripts. How can I create a script to check our database on whether certain things are available? Any suggestions? Just asking for a good starting point. Thanks for any views or replies... Josh Link to comment https://forums.phpfreaks.com/topic/43526-writing-pseudo-for-availability/ Share on other sites More sharing options...
genericnumber1 Posted March 20, 2007 Share Posted March 20, 2007 You could just keep a value in the table such as "quantity" and then "SELECT * FROM table WHERE quantity > 0" Link to comment https://forums.phpfreaks.com/topic/43526-writing-pseudo-for-availability/#findComment-211371 Share on other sites More sharing options...
connexion2005 Posted March 29, 2007 Author Share Posted March 29, 2007 ok cool. how would you guys display this back to the customer. this is a party rental site so a teammate suggested that i possibly check dates that stuff was rented out and if it doesn't comply with my limits then it errors out (out of stock)...any other suggestions? Link to comment https://forums.phpfreaks.com/topic/43526-writing-pseudo-for-availability/#findComment-217699 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.