Jump to content

php/mysql: store variables in mysql


abahaedini

Recommended Posts

hi there I define a fixed varibale like this

define('CODE', '123');  echo "result ==> ".CODE;  

result ==> 123 it's ok...but when I store the CODE in mysql and then fetch it dosn't worki get just this result: result ==> CODEbut I want this result:result ==> 123 is there any way to do it?

Link to comment
Share on other sites

it seems like you are using CODE constant (right word is constant not fixed variable) in string context. showing the code will be helpfull

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...