Jump to content

[SOLVED] php 5.2.1.


stockdalep

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.