Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 4th, 2004, 12:07 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default sql execute from an include.

I am trying to break my code up to make it more managable. I have an include that creates a menu for me. I want to execute a sql statment from within the include (I am using pgsql but the sql server should not matter for this question). Does anyone know if you can execute a sql statement from a include or must it be done in the calling php code then pass the results to the include???

Let me know if this question is not clear.

Thanks Much,
Rob


 
Old October 4th, 2004, 12:28 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind, I had a syntax error I was not interpreting correctly. It works. Thanks anyway.....






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLExpress: 1.about "Execute sql button" 2.about garaxan SQL Language 1 September 3rd, 2007 07:26 AM
execute sql fishypew SQL Server 2000 4 May 18th, 2005 09:00 AM
how can i execute SQL in UDF vinod_mnr SQL Server 2000 1 March 18th, 2005 12:51 PM
how do I execute an SQL update [email protected] VB How-To 1 June 22nd, 2003 06:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.