Welcome, Guest. Please login or register.
Did you miss your activation email?
02/08/12, 14:53
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  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 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: amfphp & stripslashes  (Read 3714 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: 14593


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.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything