mysql - php <-> ajax Cross domain error -


i using localhost devlopment.

request headers:

host                localhost if-modified-since   sun, 31 may 2015 10:30:44 gmt if-none-match       "2486-5175e33a3f259" referer             http://localhost/front-page1/front-page/homepage.html user-agent          mozilla/5.0 (windows nt 6.1; wow64; rv:38.0)                       gecko/20100101 firefox/38.0 

whatever php page access ajax, says

 syntaxerror: unexpected end of input @ object.parse (native) @ n.parsejson (http://localhost/front-page1/front-page/lib/jquery-2.1.3.min.js:4:5309) @ uc (http://localhost/front-page1/front-page/lib/jquery-2.1.3.min.js:4:7333) @ x (http://localhost/front-page1/front-page/lib/jquery-2.1.3.min.js:4:10747) @ xmlhttprequest.n.ajaxtransport.k.cors.a.crossdomain.send.b  (http://localhost/front-page1/front-page/lib/jquery-2.1.3.min.js:4:14577) 

i don't understand how became cross domain. , don't understand error. please me solve issue.

i formatted system , used sql scripts exported old system , other codes same.

please let me know if other data required.

error;

$connection = mysqli_connect(db_server,db_username,db_password,db_database) or die('{"message":"database error","status":"-1"}'); 

but die not getting executed.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -