I have a php script running querying my database table. it works fine and returns a url from the table see code:
<?
include 'config_inc.php';
include 'error_inc.php';
include 'results_inc.php';
$var = $_GET['q'] ;
$query = "SELECT shape_url FROM shape WHERE shape_id = '".$var."'";
$result = mysql_query($query);
if(mysql_num_rows($result) ==0){
echo $err[3] ,$var;
}
while($row = mysql_fetch_row($result))
{
$shape_url = $row[0];
print "shape_url : $shape_url<br>" ;
}
?>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the result is
shape_url : http://www.adverts.hecgroup.net/search_mc/shape_45.htm
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
I have got this code to work ok. But I want the shape_url result to be a variable in the $myfile = file('xxxxxxxxxxx.........
so that when the search result is returned it show as a htm page
<?php
$myfile = file('http://google.com');
foreach ( $myfile as $vals){
print "$vals";
}
?>
any help from any one would be good
ken