Reputation Activity
-
mikekaperys reacted to Jane B in Does this exist?It might be easiest just to go with something like zenfolio: http://www.zenfolio.com/
-
mikekaperys reacted to Wynn in Media query issueplus you're defining .outer after your media query, this will override any styles set in the MQ.
-
mikekaperys got a reaction from Wynn in Media query issueAt 400px width, this is the .outer class that your browser renders
.outer { border: 0px solid black; overflow: scroll-x; min-width: 30px; min-height: 30px; margin-top: 70px; background-color: #EDE812; } This is because your media query isn't being applied. In your code (cnstyle.css), you have
@media (min-device-width : 320px) (max-device-width : 480px) { select { width: 90%; } .outer { border: 0px solid black; overflow: scroll-x; min-height:12px; vertical-align: top; } } Which is incorrect. What you should have is what you wrote in your original post. You're missing the and operator.
Add that in and see how it goes
-
mikekaperys reacted to tomyates in PHP - Shopping cart probs :(It looks very over complicated to me
I would suggest just storing a product ID and qty in session
So on each $_POST submission you would do this
if($_POST['item_id']){ session_start() $itm_id = $_POST['item_id']; $qty = $_POST['qty']; $_SESSION['cart']['items'][$itm_id]+=$qty; }
Then use MYSQL to query the DB against the ID's in the cart to show the Items.
Drop me a PM if your struggling
T