insert into detail(usd,num,date) values('$uid',encode('$str'),'$date')


-------- Original Message --------
Subject: [mysql] encode() question
From: tedd <[EMAIL PROTECTED]>
Date: Thu, September 27, 2007 12:09 pm
To: "MySQL SIG" <[email protected]>

Hi:

What's wrong with the following query?

insert into detail(usd,num,date) values('$uid','encode($str)','$date')

The $str above is a php variable.

The encode($str) doesn't appear to do anything. In the database, an
entry 1234 shows up as "encode(1234)".

What's the proper syntax for encode()/decode() to work?

Thanks,

tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
_______________________________________________
New York PHP Community MySQL SIG
http://lists.nyphp.org/mailman/listinfo/mysql

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
_______________________________________________
New York PHP Community MySQL SIG
http://lists.nyphp.org/mailman/listinfo/mysql

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to