dave23 Posted January 4, 2015 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 99 Reputation: 0 Joined: 04/23/12 Last Seen: May 5, 2022 Share Posted January 4, 2015 (edited) <?php /*SQL Configuration*/ $address = "IP"; //Database Address $username = "db"; //Database Username $password = "db"; //Database Password $database = "dbname"; //Database Name $connect = mysql_connect($address,$username,$password) or die("Cant connect to the database"); $select_db = mysql_select_db($connect,$database) or die("Failed to connect to the database"); /*SQL Query*/ $query = "SELECT * FROM `cp_news` ORDER BY modified DESC"; $sql = mysql_query($query) or die("Failed to make select query command"); ?> <html> <head> <title>Notice</title> <style type="text/css"> body{ margin:0px; font-family:Arial,Tahoma,Verdanna; background-color: #000000; } th{ font-weight:bolder; font-size:9pt; padding:5px; } td{ padding:5px; font-size:9pt; } </style> </head> <body> <?php while($fetch = mysql_fetch_array($sql)){ ?> <table cellpadding="0" cellspacing="0" style="margin-bottom:10px;"> <tr> <th> [<?php echo htmlspecialchars($fetch['created']); ?>] - <?php echo htmlspecialchars($fetch['title']); ?> </th> </tr> <tr> <td> <?php echo $fetch['body']; ?> </td> </tr> <tr> <td align="right"> Posted by: <?php echo $fetch['author']; ?> </td> </tr> </table> <?php } ?> </body> </html> Here's the code i edited but it's not working *I remove my ip address and user pass for privacy. up! can anyone help me here please? up ^ Help here please! Edited January 2, 2015 by Emistry codebox Link to comment Share on other sites More sharing options...
dave23 Posted January 7, 2015 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 99 Reputation: 0 Joined: 04/23/12 Last Seen: May 5, 2022 Author Share Posted January 7, 2015 How can i check that? Sorry for the late reply. Link to comment Share on other sites More sharing options...
dave23 Posted January 12, 2015 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 99 Reputation: 0 Joined: 04/23/12 Last Seen: May 5, 2022 Author Share Posted January 12, 2015 UP! help here please. Link to comment Share on other sites More sharing options...
Question
dave23
Here's the code i edited but it's not working
*I remove my ip address and user pass for privacy.
up!
can anyone help me here please?
up
^
Help here please!
Edited by Emistrycodebox
Link to comment
Share on other sites
2 answers to this question
Recommended Posts