I'm quite a beginner in ajax technology. I have a php for execute a mysql_query and I would like to use the result on the client side.
$q=mysql_query("SELECT name FROM customers");
id="output">this element will be accessed by jquery and this text replaced
This is from some tutorial I've found. And as I saw the¬†database.php¬†works. It prints right data, but in the¬†client.php¬†I can't get anything. What could be the problem?
So, seems like on the web server runs php 4.4.7 and looks like json_encode() function does not wokrs because of that. I' ve found a "solution". I include upgrade.php, which implemets new methods for older versions of php, as far as i understands. here is the webste of it¬†http://include-once.org/p/upgradephp/
I can't upgrade php version so could this be a good solution? At the moment it does not works