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

returning data from an ssh2_exec()
here's what i got.


$conn = ssh2_connect($this->_host);
ssh2_auth_password($c

matching numbers inside ( )
I know I can match numbers by just [0-9]+, so I thought matching numbers inside ( ) would be somethi

Number Format
Hi All,

I have number '000000000050085' I want to format it to 500.85 Can any one give me

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

DELETE rows based on content
I have a link in my rows

$bit="http://bit.ly/abcd";
$query = mysql_query("D

Windows Authentication
I have a website which is windows authenticated.
now i want something more on this application.<

have trouble in a if condition
The if below is working ok, it check when indexes, name, zipcode and state are empty.
Code: &

Problem in OnClientClick and OnClick sync
Hi,Strange and irritating problem: I have below button declaration in markup of the aspx page:

need help in creating captcha
hi i have a problem creating captcha system. i create some basic script for image displaying but it

Add weeks in a query?
I have a SQL that summarizes the quantity per week. The weeks that has no value does not exist in th

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