Microsoft Word - Sam's Teach Yourself MySQL in 21 Days - SAMS.doc

(singke) #1

print 'bgcolor="#FFFFFF" colspan="5">';


print ' ';


print ''."\n" ;


print " \n" ;


print " \n" ;


print ' ';


print '';


print 'Name';


print ''."\n" ;


print ' ';


print '';


print 'Age';


print ''."\n" ;


print ' ';


print '';


print 'City';


print ''."\n" ;


print ' ';


print '';


print 'State';


print ''."\n" ;


print ' ';


print '';


print 'View'."\n" ;


print " Ad\n" ;


print " \n" ;


This bit of code generates the grid.


It uses the mod function to test\


if a row is even or odd. It adjusts the colors accordingly.

Free download pdf