Skip to content

Adding hyphen in a column in sql table

I need help understanding how to add a hyphen to a column where the values are as follows, 8601881, 9700800,2170 The hyphen is supposed to be just before the last digit. There are multiple such …

Storing an array of unknown length

I’m letting my users add number inputs in a HTML form and filling them with values. The form is serialized on submit and sent to a PHP file that inserts the data into a MySQL database with PDO. The …