kupe
Technical User
- Sep 23, 2002
- 376
I use this to draw information from the mysql database to place on the webpage.
printf("<h4>%s\n</h4>", $myrow["Headline"]);
printf(" %s\n<br>", $myrow["NewsStory"]);
printf("<div class=\"names2\">- %s</div>", $myrow["Byline"]);
printf("Bulletin: %s", date("F d", strtotime($myrow["NewsDate"])));
Often there isn't a byline. How can I say in this line ...
printf("<div class=\"names2\">- %s</div>", $myrow["Byline"]);
if Byline = Null please ignore this one line, please Experts?
printf("<h4>%s\n</h4>", $myrow["Headline"]);
printf(" %s\n<br>", $myrow["NewsStory"]);
printf("<div class=\"names2\">- %s</div>", $myrow["Byline"]);
printf("Bulletin: %s", date("F d", strtotime($myrow["NewsDate"])));
Often there isn't a byline. How can I say in this line ...
printf("<div class=\"names2\">- %s</div>", $myrow["Byline"]);
if Byline = Null please ignore this one line, please Experts?