View Single Post
Old 09-18-2007, 06:52 PM   #11 (permalink)
Haris
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

Quote:
Originally Posted by Karl View Post
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.
Haris is offline  
Reply With Quote