nburlington
May 24th, 2008, 04:17 PM
When I sendAndLoad this in Flash, the php isn't returning my values. The code below returns Q7 for the $line value. I've tried $line[1], $line[0][1], $line['Q7'] and I can't get my data. I've check the data in my phpmyadmin and the values are there. What am I doing wrong?
$query = "SELECT 'Q7' FROM Votes";
$results = @mysql_query($query);
echo "<?xml version=\"1.0\"?>\n";
while($line = mysql_fetch_array($results,MYSQL_BOTH)){
echo "<results line='".$line[0]."' />\n";
}
$query = "SELECT 'Q7' FROM Votes";
$results = @mysql_query($query);
echo "<?xml version=\"1.0\"?>\n";
while($line = mysql_fetch_array($results,MYSQL_BOTH)){
echo "<results line='".$line[0]."' />\n";
}