[PHP-DB] Lost data after space in PHP variables

2015-02-17 Thread Charlie Lewis
I'm not sure that this is entirely the group for my question, so apologise if it is. I'm losing data in variables that use the assignment of $_POST[]. Any variable with a space in the $_POST[] loses everything after the space. Is it that I need to enclose the data with ' or ? I've tried all

[PHP-DB] Sorting a PHP array

2013-05-15 Thread Charlie Lewis
I have a bookseller database list read into a PHP array with dimensions [row][field]. There are 32 fields in each record/row and up to 500 records. What is the neatest way to sort the array by any of the fields, such as author or title? I know I should just search for a manual on this, but