Jump to content

Echo variable


Phpfr3ak

Recommended Posts

Since you forgot to tell us what it does do vs what output you expected, no one here can directly help you. It also appears that those two lines of code are taken out of their actual context, so there could easily be a dozen different problems in the code you did not post that could cause the two lines you did post to not work.

 

Post the actual code that demonstrates the problem and tell us what the actual symptom is.

Link to comment
Share on other sites

Hmmm odd i tried:

Notice: Undefined index: $ReportType in C:\Program Files\EasyPHP-5.3.3\www\htdocs\playerranks.php on line 60

if i echo $reporttype the actual colum is echo'd, but i cant echo the specific reportype based for the users, Rather odd.

<?php $ReportType = mysql_real_escape_string($_GET['ReportType']); ?>
<?php echo $users['$ReportType'] ?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.