makoinater
03-06-2008, 06:47 PM
Im using PHP to Query My Database for the entry in the field 'rss' in the user table with the 'user_id' as $user_id. Now Iv been successful in using PHP with actionscript to put in variables into my database and to bring vars back.
But when I should be getting a value that looks like httP://.....xml It brings me back something like 'Resouce#3'
heres the code I have -
<?php
$user_id = $_POST['username'];
$link = mysql_connect("xxxx", "xxxx","xxxx") or die ("Unable to connect to database.");
mysql_select_db("markfar_user") or die ("Unable to select database.");
$sql= "SELECT rss FROM users WHERE user_id = '$user_id'";
$result = mysql_query($sql, $link);
print "&res= $result";
mysql_close();
?>
Any Help? cheers
But when I should be getting a value that looks like httP://.....xml It brings me back something like 'Resouce#3'
heres the code I have -
<?php
$user_id = $_POST['username'];
$link = mysql_connect("xxxx", "xxxx","xxxx") or die ("Unable to connect to database.");
mysql_select_db("markfar_user") or die ("Unable to select database.");
$sql= "SELECT rss FROM users WHERE user_id = '$user_id'";
$result = mysql_query($sql, $link);
print "&res= $result";
mysql_close();
?>
Any Help? cheers