Quick variable question


Posted on 16th Feb 2014 07:03 pm by admin

hey guys/gals,
im trying to write a php script and it works fine as i have it, but i need to set it to where it pulls the var from mysql table that it is displayed differeantly.

i.e.
Did you know?Explore Trending and Topic pages for more stories like this.
if $var==abcdefg then echo bob
if $var==hijkl then echo jim
ect....

how can i do this?
No comments posted yet

Your Answer:

Login to answer
118 Like 25 Dislike
Previous forums Next forums
Other forums

Image DPI
Hi.

I allow users to upload images, the user then is able to adjust several settings for the

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

Confusing Functions
So, I've been reading up on Functions and I like them! However, I need some help using variables in

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

Display a default image
I am trying to display generic image for items that don't have one, but I can't get it to display.

Reduce redundancies in switch functions?
Hello all! I somewhat new to PHP, and was wondering if anyone could give some suggestions on a swit

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_
Can anyone view my code and tell me why im getting the error:
Parse error: syntax error, unexpect

How can I uploading Transactional Data from Legacy to New SAP system
Hell Gurus,

I am overwhelmed with questions on how to migrate huge volume of Sales Orders

PHP Cannot redeclare class
I have 6 files, and two of them do not seem to want to play well. I keep getting a "Cannot rede

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash