stockdalep Posted March 17, 2007 Share Posted March 17, 2007 Hi I'm using php 5.2.1. does anyone know what to change inside the php.ini file to php to read javascript. The code I am using is this. If I place to javascript outside the php tags it works. Thanks for any help. <?php include "config.php"; $conn = mysql_connect("$db_host", "$db_user", "$db_pass") or die(mysql_error()); if(!$conn){ ?> <script language="JavaScript"> <!-- window.location="http://linfordfc.com/user_exists_error_page.php"; //--> </script> <?php } $db = mysql_select_db($db_name, $conn) or die (mysql_error()); if(!$db){ ?> <script language="JavaScript"> <!-- window.location="http://linfordfc.com/user_exists_error_page.php"; //--> </script> Link to comment https://forums.phpfreaks.com/topic/43106-solved-php-521/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.