PHP mysqli prepared statements removing leading zeros
问题 Im trying to enter a phone number into my database, the column is set as varchar(15) and inside phpmyadmin it will accept a phone number with a leading 0 (07712123123 for example). In my PHP script i have the variable $contactNo which is a string containing 07712123123 but when I use my prepared statement to input the data into the database the leading zero is removed. How can I stop this? // Insert data into customer_accounts if($stmt = $mysqli -> prepare("INSERT INTO customer_accounts