lists of commands

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
jaymoore_299
Forum Contributor
Posts: 128
Joined: Wed May 11, 2005 6:40 pm
Contact:

lists of commands

Post by jaymoore_299 »

is there a way to have a list of only the sql commands in a file and have them called at will anywhere in a php script?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

You'll need to be a bit more descriptive. Coz that doesn't make sense..
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

yes.

Code: Select all

$insertClient = "INSERT INTO clients .......";
$deleteClient = "DELETE ......";
$insertProduct = "INSERT INTO procuct......";
then on any page you need the sql commands

Code: Select all

require('sqlCommandsPage.php');
Post Reply