2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Pro2000
0

Try the following in the express.php file:

<?php
require("DBConnect.php");  //The file in which there is a variable that handles the connection to the database
$project_id = $_GET['project_id'];
$GetProjectName = mysql_query("select project_name from tableName where project_id='$project_id'",$connection);  //Where (tableName) is the name of the table required for the operation
$project_id_Arr = mysql_fetch_array($GetProjectName);
echo '<script language="JavaScript">
    window.location.href = "www.test.com/'.$project_id_Arr['project_name'].'.html";
</script>';
?>

Or you can use the META like the following code instead of the JavaScript code:

echo '<META HTTP-EQUIV= "REFRESH" CONTENT= "2; url=www.test.com/'.$project_id_Arr['project_name'].'.html">';

Wish it's done what you were searching for.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.