PHP Array quick help


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

I need

$_SESSION{'username'} to be like this:


if $_SESSION['username'] = "gayner,bob,jesus";
echo "ba blah ";

but do i use Arrays or what for those 3 nameS? how thanks

No comments posted yet

Your Answer:

Login to answer
280 Like 48 Dislike
Previous forums Next forums
Other forums

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

Do While statement
hi guys,

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

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

Add code to enable passing of checkbox variable on login
Ok, I have a login page, but want to add a checkbox that when checked and successful login is made i

displaying email without attracting a ton of spam
Hello,

this is maybe the wrong place to ask.
How would you display an email address on a w

problem with GROUP BY and ORDER BY
i usually use this query to display the last 10 entries from a sql table:

Code: $query = &quo

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

Need help making a blockquote and line items conditional
I have some code I bought a few years ago that allows my clients to update content on their site usi

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

PHP Game
hy i was wondering what's the best method in order to make some automatic updates in a php game
<

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