I am using ajax to get some info from my database. I use a page that will return the JSON row of information:
$get = DB::getInstance()->get($table, array($field, '=', $field_equals))->first();
echo json_encode($get);
Information is echo'd like this:
{"id":"118","contact_id":"7","appt_status_id":"1","reason_id":"1","start":"1994-03-31 00:00:00","end":"0000-00-00 00:00:00","allDay":"0","pre_notes":"","post_notes":null}
I am now having an issue. I am trying to pull the record/row information from a table called 'users'. That table has a password field and a special field that is called 'salt'. I learned to use the salt for better password hashing. It is created at registration and is used to verify the username/password.
Either way here's a sample salt that can be found in a field:
’¯z„„{VÀZTÑÂÚÒJQeˆ.Ûù1¨˜3• ï_
I find that because of the special characters (I think?) no information will be echo'd from my ajax page! The ajax page just returns no results, when I know I should be getting a record's row information. If I clear out the salts then the record information is echo'd as JSON. So the salt field is the culprit.
Any thoughts?