Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-13-2004, 06:27 PM   #16
Registered: Jul 2003
Posts: 38

Original Poster
Rep: Reputation: 15

Originally posted by CroMagnon
Good catch. I've always hated that about PHP - it tells you there's a problem with line 30, and you look at line 30 until your eyes bleed, but you can't see any problem... then you realise you left the semicolon off line 29.

One other thing you might want to fix - you're assigning $color twice, but you don't need to. You do, however, need to do it inside the while loop or it will never change. Move line 28 to line 31, and remove the current line 31 (also remove the line that sets the $colours array since you won't need it with the new method).

If you copied Cedrik's code exactly as written, then you are missing the $row[0] part that needs to be after the <img> tag.
Im a fool, iŽve paste to you the wrong code the one that worked was with the colour part corrected. Now im driving crazy with the flash showing movie, i really complicated for me i donŽt quite understand actionscript logic, but i think iŽll just work it out!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL results to html forms using PHP xemous Programming 3 08-15-2005 03:27 PM
Painting the row of a data grid a color in mrobertson Programming 1 07-30-2005 04:22 PM
MySQL - Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 9 jasontn Linux - Software 0 02-09-2005 12:17 PM
MySQL Row Limit agallant Programming 1 06-25-2004 11:16 AM
PHP & MySQL, working, and yet getting a blank results page linxtc Programming 5 08-24-2003 04:51 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration