Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Problem with http_respone or is it my php code?

AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
06-18-2007 01:20
Here is the php code that extracts a row from the MySQL data:-

$result = mysql_query("SELECT * FROM $table WHERE Name = '$Name' ";);
$row = mysql_fetch_array($result);
echo implode ("&",$row);

This is being accessed via llHTTPRequest()
But the returnd data from http_response() is double&double&talk&talk:-

eg.

John Doe&John Doe&3301B&3301B&No comment&No comment

I can use it since the data is all there and I can extract it but why am I getting it double.
It doesn't happen with local access on the website so perhaps it is a quirk of the HTTP link?????????
AnnMarie Otoole
Addicted scripter
Join date: 6 Jan 2007
Posts: 162
06-18-2007 22:18
FWIW the problem was in the SQL coding. Its rather complicated (for me!) but if anyone has this peculiar problem and finds this thread in a search, send me an email and I'll tell you how to fix it.