09-18-2007, 06:52 PM
|
#11 (permalink)
|
|
The Frequenter
Join Date: Sep 2007
Posts: 360
Thanks: 24
|
Quote:
Originally Posted by Karl
You define one as Wildhoney has said in the article:
PHP Code:
define('MY_CONSTANT', 'Some Value');
Then you would simply call MY_CONSTANT like any other variable, obviously excluding the $. E.g:
PHP Code:
echo "My constant contains the value:" . MY_CONSTANT;
|
I'd have to echo the constants but I want to use the values of the constants in mysql_connect function.
Hmm.
|
|
|
|