location.php
Code:<?php include("mysql_connect.php"); $id =$_GET['id']; $sql=mysql_query("SELECT * FROM topics WHERE id='".$id."'"); if($row=mysql_fetch_array($sql)) header("Location:{$row['webpage']}"); mysql_close($con); ?>
with the above scrpt it is redirecting me to http://localhost/pro1/facebook.com istead of facebook.com
the link with which this script get intiated is like this localhost/pro/location.php?id=21
there is a corresponding webpage in the table coresponding to that particular unique id...how to make this script go to http://domain.com
instead of localhost/pro/domain.com



Reply With Quote


Bookmarks