Jump to content

BuzzedOutHost.com

Retired Forum Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by BuzzedOutHost.com

  1. I am also having the same problem if anyone has the anwer please post
  2. i dont have expierience building scripts into a template system i can code them in php/mysql tough -john
  3. Hello, I was working on a way to make so when I add a new Promotion Code in the WHMCS Admin panel it instantly updates on the main page with all the codes. The Script is written in PHP by me I hope you like it <?php mysql_connect("localhost", "username", "password") or die(mysql_error()); mysql_select_db("database") or die(mysql_error()); $result = mysql_query("SELECT * FROM tblpromotions") or die(mysql_error()); echo "<table border='0' style='color: #FFF'>"; echo "<tr> <th>Promocode</th> <th>Discount</th> <th>Expiration</th> </tr>"; while($row = mysql_fetch_array( $result )) { echo "<tr><td>"; echo $row['code']; echo "</td><td>"; echo $row['value']; echo $row['type']; echo "</td><td>"; echo $row['expirationdate']; echo "</td></tr>"; } echo "</table>"; ?> -John
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated