davidf85 Posted February 19, 2012 Share Posted February 19, 2012 I am building a shopping cart with PHP and working with a tutorial (http://jameshamilton.eu/content/simple-php-shopping-cart-tutorial) I am putting together the cart and there is some coding $sql = sprintf("SELECT name, description, price FROM php_shop_products WHERE id = %d;", $product_id); That i do not understand. Here it is "WHERE id = %d;" I have never seen this before and am wondering what it means or how to work with this syntax Link to comment https://forums.phpfreaks.com/topic/257331-building-a-shopping-cart/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 19, 2012 Share Posted February 19, 2012 sprintf Link to comment https://forums.phpfreaks.com/topic/257331-building-a-shopping-cart/#findComment-1319017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.