Connect to Mysql using PHP
<?php $con = mysqli_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysqli_error()); } mysqli_select_db($con,"your_database_name"); ?>
To display current date and time
<?php $current_date_time = date('Y-m-d H:i:s'); //in mysql storing format ?>
Convert date format from ‘d-m-Y’ to ‘Y-m-d’
<?php $dob = $_POST['dob']; //value get from the form $covert_dob = date("Y-m-d",strtotime($dob)); ?>
show a number to 2 decimal places
<?php $foo = "54.104"; echo number_format((float)$foo, 2, '.', ''); //output 54.10 $ful = "54"; echo number_format((float)$ful, 2, '.', ''); //output 54.00 ?>
BELOXY Silicon Corner Protector for Sharp Edges, Table Corners Edge Protector for Kids, Bed Corners Edge Protector for Furniture, Baby Proofing Edge & Corner Guards (Transparent, Pack of 10)
₹279.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Philips Avent Natural Baby Feeding Bottle | No.1 Brand Recommended by Moms Worldwide | Ideal for 0 months+| Natural Response Technology Mimics Breastfeeding | Uniquely Designed Nipple releases milk only when baby drinks | Pack of 1 | SCY900/01
₹428.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)GREEYA Toddler Cup 150 ML Baby Sippy Cup Wine Glass Goblet Cup - Beverage Mug Milk Bottle with Lid for Kids (Pack of 1)
₹199.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Himalaya Gentle Baby Shampoo (400 ml)
₹252.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Huggies Complete Comfort Wonder Pants | Pant Style Baby Diapers Newborn / XS Size, 90 pcs | India's Fastest Absorbing Diaper, Patented Dry Xpert Channel, Ideal for 0-5 Kgs, 1 count
₹595.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Mee Mee Baby Liquid Detergent 1 L | Ph balanced, Free from Harsh Chemicals, Safe for mother's hands & baby's skin | Anti-Bacterial, Removes Stains & Odor with One Drop, Hypoallergenic
₹290.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)MamyPoko Pants Extra Absorb Baby Diapers, Large (L), 128 Count, 9-14 kg
₹1,608.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Amazon Brand - Supples Premium Baby Diaper Pants | 54 Baby Diapers | XL | 12-17 Kg | 12 Hrs Absorption | Cushiony Cotton Soft Fabric | Phthalates-Free | Triple Leak Guard
₹495.00 (as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)GITGRNTH Bunny Night Light for Kids Room, Rabbit Night Light, Tap and Touch Color Changing Cute Night Light Lamp, Rechargeable Silicone Cute Nursery Lamp(Big Face Rabbit, Regular)
Now retrieving the price.
(as of April 4, 2025 02:56 GMT +05:30 - More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)