<table border="1" class="table_data" cellspacing="5" cellpadding="5"> <tr style="color:blue;"> <th> Full Name </th> <th> </th> <th> Message </th> </tr> <?php $result= mysql_query("select * from tbl_contact order by tbl_contact_id DESC ") or die (mysql_error()); $id=$row['tbl_contact_id']; ?> <tr style="text-align:center; color:blue;"> <td style="width:200px;"> <?php echo $row['fullname']; ?> </td> <td style="width:200px; color:red;"> <?php echo $row['email']; ?> </td> <td style="width:200px; color:blue;"> <?php echo $row['user_message']; ?> </td> </tr> <?php } ?> </table>
table { border:yellow 5px solid; } .table_data { margin-left: 291px; margin-top: 20px; } .tableheader { background-color: maroon; color: white; font-weight: bold; font-size: 25px; } .tablerow { background-color: black; color: white; font-size: 20px; font-weight: bold; } .aler_message { color: #FF0000; font-weight: bold; text-align: center; width: 100%; cursor:pointer; } .text_input { font-size: 18px; border: blue 1px solid; background: azure; text-indent: 10px; cursor:pointer; } .btn_submit { font-size: 18px; width: 100px; background: azure; border: blue 1px solid; padding: 6px; border-radius: 8px; color: blue; cursor:pointer; } .btn_submit:hover { font-size: 18px; width: 100px; background: azure; border: re 1px solid; padding: 6px; border-radius: 8px; color: red; cursor:pointer; }
mysql_query("INSERT INTO tbl_contact (fullname, email, user_message) VALUES ('" . $fullname. "', '" . $email. "','" . $user_message. "')");