ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-lib
php-lib
Re: [Phplib-users] PHPLIB duplicate (one is blank) db inserts with Templates...
by Andrew Crawford other posts by this author
Jun 8 2005 6:40PM messages near this date
[Phplib-users] PHPLIB duplicate (one is blank) db inserts with Templates... | Re: [Phplib-users] PHPLIB duplicate (one is blank) db inserts with Templates...
Last time I tried to post to the list, it was held for approval (and is 
still being held).  So, I don't know if this will make it to the whole 
list but, we'll try ...

anton@[...].za wrote:
>   Below is an example of code of one page : 

>  $aDb = new DB_oi_ct;
>  $aDb->query("$squery");
>  $squery = "	INSERT INTO auto_messages
>  			(	message_name,
>  				auto_messages
>  			)
>  			VALUES
>  			(	'$Message_Name',
>  				'$Message'
>  			)";

I'm not familiar with FastTemplates and I'm not sure this has any 
bearing on your problem but, shouldn't you be defining the query string 
($squery) BEFORE you call the query method of your database object with 
the variable?  As written, won't this section of your script send an 
empty query to the database since $squery is undefined at the point you 
call the query method with it?  Or am I missing something?

Andrew Crawford


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Phplib-users mailing list
Phplib-users@[...].net
https://lists.sourceforge.net/lists/listinfo/phplib-users
Thread:

Andrew Crawford
Nathaniel Price

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved