Welcome, Guest. Please login or register.
Did you miss your activation email?
03/11/10, 21:15
Home Help Search Login Register
News:
Loading and saving data to different external resources (txt files, databases) using AS3

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Flash Remoting with AMF (Moderators: Flash-db, Musicman, Jorge Solis, papachan, nothingGrinder)
| | |-+  amfphp & stripslashes
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: amfphp & stripslashes  (Read 3046 times)
Tomo
Server what's that
*
Posts: 2


View Profile
« on: 12/13/05, 08:43 »

Dear All,

Does anyone have a solution to this.....

Flash accepts the following php perfectly:
$x = mysql_query("SELECT about from about");
return $x;

But rejects:
$x = mysql_query("SELECT about from about");
return stripslashes($x);

How do I strip the slashes from the MySQL field?

Thanks in advance,

T

Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14378


View Profile
« Reply #1 on: 12/13/05, 09:31 »

Hi Tomo, welcome to the Boards!

stripslashes apply to a string, you're trying to apply to a recordset ... strip individual fields or something that could be a string.

Jorge
Logged

Tomo
Server what's that
*
Posts: 2


View Profile
« Reply #2 on: 12/13/05, 11:10 »

Hi Jorge!

Thanks for the welcome & thanks for your kind help.

All sorted....and for the benefit of the board......

$query = mysql_query("SELECT about from about");
$row = mysql_fetch_array($query);
return stripslashes($row['about']);

Cheers,

Tomo
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!