[56K WARN] Odd Cant print a variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

[56K WARN] Odd Cant print a variable

Post by anthony88guy »

When I echo out the $data['username'] it displays the corresponding usernames. But when I have it print in the table it doesn’t show, but the other variables do.


Everything after the "under construction" is the var $data['username']. But in the first column it doesn’t display the usernames.

This is my database fields:


Thanks for the help, I am lost as to why this is happening.
Last edited by anthony88guy on Thu May 12, 2005 5:44 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

line 19: $date vs $data


and you don't need to post a screenshot of your table structure, an export in SQL format works far better and takes up far less space.
rochakchauhan
Forum Newbie
Posts: 5
Joined: Tue Apr 26, 2005 4:32 am

This is why...

Post by rochakchauhan »

Hey buddy .... get ready to laugh.... I mean ... no offence...

check LINE 19 of your code....
and

REPLACE:
$farmuser = $date['username'];

WITH:
$farmuser = $data['username'];

Happy Programming
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

typo's the bain of programmers lives
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

malcolmboston wrote:typo's the bain of programmers lives
How true (since its bane not bain) :D Yesterday also his script included one typo thta was the cause of error. I think you should start with checking your vars' spelling in the error's place.
Post Reply