Hi All,
I have compiled a dB and appropriate PHP/MYSQL pages on my local server to create a list where I can view contributors to my online site and also view the photographs that they have contributed. It all works, but I am trying to refine it to make it easier for me to browse!
Data that the contributors page shows is
Code - This is a code unique to each contributor
Status - Whether the contributor wants to be advised before use, after use or not advised when their material is used.
Name - The published name on their material
Contact Mail - e-Mail address to use
Link - Link to the contributors website.
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40" class="tblhead">Code</td>
<td width="40" class="tblhead2">Status</td>
<td width="200" class="tblhead1">Name</td>
<td width="190" class="tblhead2">Contact</td>
<td width="283" class="tblhead1">Link</td>
<td width="80" class="tblhead2">View Pix</td>
</tr>
<?php do { ?>
<tr>
<td class="tbl1b"><?php echo $row_view['PGR_INIT']; ?></td>
<td class="tbl3"><?php echo $row_view['PGR_PERM']; ?></td>
<td class="tbl2"><?php echo $row_view['PGR_PN']; ?></td>
<td class="tbl3"><a href="mailto:<?php echo $row_view['PGR_CM']; ?>?subject=Contributions%20to%20English%20Electric%20Growl,%20www.12csv.com"><?php echo $row_view['PGR_CM']; ?></a></td>
<td class="tbl2"><a href="<?php echo $row_view['PGR_LNK']; ?>" target="_blank"><?php echo $row_view['PGR_LNK']; ?></a></td>
<td class="tbl4" align="center"><input type="submit" name="PGR_INIT" class="textfld" id="PGR_INIT" value="<?php echo $row_view['PGR_INIT']; ?>"></td>
</tr>
<?php } while ($row_view = mysql_fetch_assoc($view)); ?>
</table>
There are two things I need advice for
I do not need all the Email address to be displayed, perhaps only the first 10 to 15 letters, I have seen this done on many sites, but I have had difficulty finding how it is done!
Not all contributors have their own website, so I want to create a php program that will check if the PGR_LNK is empty or filled with information. If empty I want to display an image of a 'X' in the results, but if filled display an image of a 'Tick' which when clicked will link to the site identified in PGR_LNK
Any advice would be much appreciated
Phil