PHP/MYSQL styling question - help

Discussion in 'PHP' started by Cain Fleming, Dec 21, 2010.

  1. #1
    Hi,

    I am trying to style my date in as bold, however I can't quite figure out how to do it.

    Can you help

    My code:

    <?php
    $con = mysql_connect("xxxxxx","xxxx","xxxxxxxxxxx");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    mysql_select_db("eventform", $con);
    
    $result = mysql_query("SELECT * FROM event_form");
    
    while($row = mysql_fetch_array($result))
      {	
    	 echo $row['day_3']. "/" . $row['month_3']."/".$row['year_3']. "&nbsp;-&nbsp;".$row['protest_title'];
    	 echo "&nbsp;-&nbsp;";
      }
    
    mysql_close($con);
    ?>
    PHP:
     
    Cain Fleming, Dec 21, 2010 IP
  2. ankit_frenz

    ankit_frenz Active Member

    Messages:
    1,111
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    63
    #2
    echo "<b>".$row['day_3']. "/" . $row['month_3']."/".$row['year_3']. "</b>&nbsp;-&nbsp;".$row['protest_title'];
    PHP:
    Thats what you needed?
     
    ankit_frenz, Dec 21, 2010 IP
  3. Cain Fleming

    Cain Fleming Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes that simple. lol

    Thanks
     
    Cain Fleming, Dec 21, 2010 IP