[nycphp-talk] Q) learning php - drawing table border around em pty <td>
Aaron Fischer
agfische at email.smith.edu
Tue Feb 10 12:45:43 EST 2004
Another option is popping in an <img> tag pointing to your 1x1
transparent spacer image instead of the . This is also a good
question to post to the front end mailing list
<front-end at lists.nyphp.org>.
Hmm, email program is acting funky, apologies if this is a duplicate
post.
-Aaron
On Feb 10, 2004, at 12:19 PM, Chris Bielanski wrote:
> What browser are you viewing in? AFAIK the should do the
> trick...
>
>> -----Original Message-----
>> From: Bill Wolf [mailto:wiw at nyc.rr.com]
>> Sent: Tuesday, February 10, 2004 12:14 PM
>> To: talk at lists.nyphp.org
>> Subject: [nycphp-talk] Q) learning php - drawing table border around
>> empty <td>
>>
>>
>> I have a question about populating a table with values from a
>> query that
>> sometimes are null.
>>
>> When the table's drawn, no border is drawn around those <td>
>> elements which
>> looks awkward. I've tried doing some things where I force in
>> " " into
>> the query results but it doesn't seem to take take. Suggestions?
>>
>>
>>
>> $result = mysql_query("select show_id, month, day, year,
>> location, details ,
>> venue
>> from $database_table order by year,
>> month, day",$db)
>> or die_now("<h2>Could not select shows</h2>" );
>> ...
>>
>> while($row = mysql_fetch_array($result)) {
>> $the_id = $row["show_id"];
>> $the_month = $row["month"];
>> $the_day = $row["day"];
>> $the_year = $row["year"];
>> $the_location = $row["location"];
>> $the_details = $row["details"];
>> $the_venue = $row["venue"];
>>
>> ...
>>
>> // shows
>> echo("\t<tr align='left'
>> valign='top'>\n\t\t<td><b>$the_month" . "/" .
>> "$the_day" . "/" . "$the_year" . "<b></td>\n");
>>
>> _______________________________________________
>> talk mailing list
>> talk at lists.nyphp.org
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list