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.
Did you know?Explore Trending and Topic pages for more stories like this.

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

Print out contents of to Excel
I have got this script that gathers all the data that I need but I need it to send it to excel inste

Gantt Chart Tool
Does anyone know of a good free gantt chart creator tool

Thanks

Passing variables with pagination - iterating through unique id per link
Hi everyone,
I have seen a few topics like this one. Still cant find the specific thing, so I am

Oracle Text CTX_DOC.snippet slow
I have a table (FILE_TABLE) that contains a blob column (ft_file) and I have created the following O

IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized h

A WBS element with the name XXX already exists in version FREI_VERSION
Hi.
When I am trying to insert WBS element in a project, error occurs:

"A WBS eleme

php automatically escaping single quotes
I'm trying to test out my security a bit and I've noticed that php is escaping my single quotes. For

Batch update record with Pagination
Hoping someone can help me with this issue I'm having, im trying to batch update records from a resu

tag inside php...
hi


Code: <?php
echo "<td width="$columnWidth%" align=&

Drop Down and text box issue
Is it possible to set a drop down list and text boxes to a certain width?

here is my code

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