Page 1 of 1

[56K WARN] Odd Cant print a variable

Posted: Sun Apr 17, 2005 6:44 pm
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.

Posted: Sun Apr 17, 2005 6:48 pm
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.

This is why...

Posted: Tue Apr 26, 2005 6:19 am
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

Posted: Tue Apr 26, 2005 6:26 am
by malcolmboston
typo's the bain of programmers lives

Posted: Tue Apr 26, 2005 7:02 am
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.