Jump to content
xisto Community
NeXDesigns

Hosting Credits

Recommended Posts

why when my hosting credits fall to 0, it jumps to -4? is there something wrong or what is it?Another thing is, can anyone give me an example script of how to make it pull tables from the database and then format it correctly for the site (like in the proper tables on the site, and have it repeat the tables for like a list of it?)like say on http://www.good-tutorials.com/ something in that order, how would i do that?

Share this post


Link to post
Share on other sites

your hosting credits will continue to drop, as you use up 1 hosting credit per day, therefore, if you haven't posted in four days, then you'll have lost 4 more hosting credits, meaning you have -4. That's why it's highly suggested you have at least 10 days of hosting credits.

My MySQL knowledge is, in my humble opinion, rather slacky, but here's what you can do to display the data.

<?$username="username";$password="password";$database="your_database";mysql_connect(localhost,$username,$password);@mysql_select_db($database) or die( "Unable to select database");$query="SELECT * FROM contacts";$result=mysql_query($query);$num=mysql_numrows($result);mysql_close();echo "<b><center>This is the MySQL Data</center></b><br><br>";$i=0;while ($i < $num) {$data1=mysql_result($result,$i,"dataone");$data2=mysql_result($result,$i,"datatwo");echo "$data1 <br> $data2 ";$i++;}?>

Simple add more variables and more echo statements as you would like to display your data.

hope this helps,

whyme

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.