add new php file for managing conecctions
-
Hi. I created a new .php file in the eGamer/includes that makes a conection to the db and returns a value. The problem is that i cannot connect to database when i call this file. Which should be the header of this file for making sure i can use at least all functions relating a db connection? this file is called from a javascript function using ajax, like this…
conexion1=crearXMLHttpRequest();
conexion1.onreadystatechange = procesarEventos;
conexion1.open(“POST”, “http://localhost/Misite/wp-content/themes/eGamer/includes/Enviavoto.php”, true);conexion1.setRequestHeader(‘Content-Type’, ‘application/x-www-form-urlencoded; charset=ISO-8859-1’);
hope i’ve been clear on my explanation. Many thanks!
The topic ‘add new php file for managing conecctions’ is closed to new replies.