Page 1 of 1

lists of commands

Posted: Sun Jun 12, 2005 7:45 pm
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?

Posted: Mon Jun 13, 2005 3:49 am
by onion2k
You'll need to be a bit more descriptive. Coz that doesn't make sense..

Posted: Mon Jun 13, 2005 5:59 am
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');