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

order by date not ID number help php
I am trying to orginize the following code to order by date not id number.
any help would be grea

Why is this function returning a false value when it shouldn't be??
This is in an include file. I want it to check a value in an html form and see if it's just white s

Intrastat Report Config in ECC 6.0 - goods Movement in EU countries
Colleagues, need ur help to understand the changes require in ECC 6 standard Report configuration se

Save file by click
Hello.
I'm not understand how to save file from page. I'd like make link to file with save abil

CHMOD script
Hi,

I need a script to read all files in a folder and set to 777.

Can anyone help out

Help with form post data and arrays
Hi all,

I am new to this forum... It has been awhile since i have worked with arrays, and i a

Question about the upload of large files
Hi there,

I have a question about the upload of large files, like videos (files generally abo

Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d

Using mysql_real_escape_string for displayed content
On my website users can input data into a textarea and it will store it in the mysql database. But,

Appending GET data with form submition
Okay, what I'm trying to do is to use a form to append an already existing GET data string.

I

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