Simple Variable Question


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

Hi everyone.... again,

I am really getting into php still. Learning more every day. I love it.
But I have run into a problem I cannot solve.

From what I understand, you can only "echo $variable", if the variable is created above the "echo".
short example
$something = "1999 kawasaki";
Echo $something;
----------

How would I echo or print a variable if it is created below the area where I want to place the "echo $variable"
Short Example
Echo $something;
**all of the page content here**
$something = "1999 kawasaki";


I have searched for hours and cannot find a solution.
Thanks in advance for any help

No comments posted yet

Your Answer:

Login to answer
269 Like 7 Dislike
Previous forums Next forums
Other forums

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

Refining of search Criteria
Dear Friends

I need a help, I have a search page which of cars related, which has different s

Request-URI Too Large
I have created a simple submit form for a mysql database that puts a piece of code into database.<

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Form submissing with PHP and JQuery/Ajax
I have searched everywhere, but cannot find a solution for this... I have worked all day trying to g

Inserting multiple records from single form
I've found a number of threads that deal with this issue, but I'm new to php and coding language so

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

Include with Parameters
In a particular page I would like to include a file that requires $_GET parameters.

when I go

Save data in input fields when they press "BACK BUTTON"
Hi, this is html form: And let's say they get a error "Please enter ur title must be more then

Parse String
I need to parse the string below into three variables. How would I do that?

john + 10/20/2008

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