i new insert bold font colored 1 or 1 big size mysql. working fine considering inserting , retrieving texts in case of normal font color size , weight.however when change had error . 1 more thing adding data through text area contains tinymce plug in, , retrieving in textarea. got
<h1 style="color: #ff0000;">hiiiii</h1> any solution?
better add text is. when retrieve database can add style it.
<?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "mydb"; // create connection $conn = new mysqli($servername, $username, $password, $dbname); // check connection if ($conn->connect_error) { die("connection failed: " . $conn->connect_error); } $sql = "select name guests"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo 'name: <h1 style="color: #ff0000;">' . $row["name"]. '</h1>'; } } else { echo "0 results"; } $conn->close(); ?>
Comments
Post a Comment