How do i edit text that is in php?

Discussion in 'PHP' started by Kurt Whittingham, Mar 21, 2012.

  1. #1
    Hello.

    i want to make the text in "['article_name']" bigger how do i do this in php?
    is there a way to do this in css?

    <?php require('connect.php');
        
        $result = mysql_query("SELECT * FROM supercross_race_reviews") 
        or die(mysql_error());  
        
        echo "<table>";
        // keeps getting the next row until there are no more to get
        while($row = mysql_fetch_array( $result )) {
        // Print out the contents of each row into a table
        echo "<tr><td>"; 
        echo '<a href="'. $row['url'] .'">'. $row['article_name'] .'</a>';
        echo "</td></tr><tr><td>"; 
        echo $row['description'];
        echo "</td></tr>";
    }
    PHP:
    Thanks
    Kurt
     
    Solved! View solution.
    Kurt Whittingham, Mar 21, 2012 IP
  2. #2
    Like this

    
    echo '<a style="font-size: 30px" href="'. $row['url'] .'">'. $row['article_name'] .'</a>';
    
    PHP:
     
    GMF, Mar 21, 2012 IP