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.
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

Embedding flash object in Else statement
This is my first major project in PHP and I'm having some trouble embedding a flash object in an Els

http to https
Hi,

Is there any specific method/condition to move an http:// page to https:// ?

array_map() probably obvious mistake
The code below is part of a class to escape strings, but should also accept an array, using array_ma

[Need Help] php timing issues
I don't know what is going wrong. I need some help with being able to set an image at 9:00am Colorad

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not s

admin with my register system?
Hey i wana make it so i can make a admin level on my register system , I'm kinda new to php to im no

Help Optimizing code
Good Morning,

I wrote a small import function for a website of mine and I know there has to b

Wordpress IE issue
So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does

Why is the logic of this simple code not working?
Hey, I'm trying to determine if a table already exists in mysql, but doing a query first with mysql_

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