Mercurial > hg > index.fcgi > www > www-1
comparison thule_fit_kits/index.php @ 36:6c10a8188375
add longreads.com to myrss/FEEDS
author | paulo |
---|---|
date | Wed, 30 Jan 2013 01:00:13 -0700 |
parents | f6be2a5839f0 |
children | a7ad7a5c899e |
comparison
equal
deleted
inserted
replaced
1:262d3292d593 | 2:aa2a5d00c9f1 |
---|---|
41 | 41 |
42 $query = 'SELECT * FROM Thule ORDER BY kit_id'; | 42 $query = 'SELECT * FROM Thule ORDER BY kit_id'; |
43 $results = mysql_query($query); | 43 $results = mysql_query($query); |
44 | 44 |
45 while ($row = mysql_fetch_assoc($results)) { | 45 while ($row = mysql_fetch_assoc($results)) { |
46 echo '<TR><TD>'; | 46 echo '<TR><TD><DIV class="kit_id">'; |
47 $pdf_filename = 'pdf/thule-fit-kit-' . $row['kit_id']. '-instructions.pdf'; | 47 $pdf_filename = 'pdf/thule-fit-kit-' . $row['kit_id']. '-instructions.pdf'; |
48 if (file_exists($pdf_filename)) | 48 if (file_exists($pdf_filename)) |
49 echo '<A HREF="'. $pdf_filename . '">' . $row['kit_id'] . '</A>'; | 49 echo '<A HREF="'. $pdf_filename . '">' . $row['kit_id'] . '</A>'; |
50 else | 50 else |
51 echo $row['kit_id']; | 51 echo $row['kit_id']; |
52 echo '</TD><TD>'; | 52 echo '</DIV></TD><TD>'; |
53 $cars = explode(';', $row['car']); | 53 $cars = explode(';', $row['car']); |
54 foreach ($cars as $car) | 54 foreach ($cars as $car) |
55 echo $car . '<br>'; | 55 echo $car . '<br>'; |
56 echo '</TD>'; | 56 echo '</TD>'; |
57 echo '<TD>' . $row['rubber_pad'] . '</TD>'; | 57 echo '<TD>' . $row['rubber_pad'] . '</TD>'; |