losing variables between php brackets


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

Hi

have got this code:
Code: $id=mysql_result($result,0,"itemid");
$title=mysql_result($result,0,"title");
$thumbnail=mysql_result($result,0,"data_txt");
$publish_up=mysql_result($result,0,"publish_up");
$hits=mysql_result($result,0,"hits");
echo $title;
?>


<h2>
<a href="#">
<?php $title; ?>
</a>
</h2>

This is a simplified version, but the second use of $title doesn't work at all, just returns blank, whereas the first does? Is there some rule about variables being lost across <?php ?> tags or something?

173 Like 20 Dislike
Previous php-forum Next php-forum
Other php-forum

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

Save User Inputs while javascript reloading!
hi..
i have written a PHP code in which i reload the page when user selects a value in dropdown..

PHP mail() with images
I'm trying to get images to send along with my HTML e-mail sent through PHP mail(). I only tried vie

Read from forum
Haven't written anything forever and I would like to get back.
What I'm trying to do is getting t

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

What do you call the "token" thing?
You know how some sites have links that run on tokens? Tokens are links that only stay alive for a c

text box alphanumeric caracters only
hi all!

I have search on google on how to enter in a test box only caracters A-Z,a-z,0-9 usi

$get problem
Hi Guys ...

can you please tell me what i am doing wrong here
Code: <?php

how to read and write into a word document using php...?
hi,
I need,reading and writting into a word document using php.




Thank u inadva

Calander Basic Spript help
hi, just starting out with PHP and have the following script:

<?php
//This gets t

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