|
|
|
|
![]() ![]() |
May 5 2005, 09:56 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 260 Joined: 12-August 04 From: Hurricane Alley, Florida Member No.: 770 |
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 www.good-tutorials.com something in that order, how would i do that? |
|
|
|
May 6 2005, 12:25 AM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 10-January 05 Member No.: 3,189 |
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. CODE <? $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 |
|
|
|
May 6 2005, 01:16 AM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 260 Joined: 12-August 04 From: Hurricane Alley, Florida Member No.: 770 |
the credits went from 0.31 to -4.97 in 12 hours. and ill try to work with the code to see how it will work, thanks
|
|
|
|
May 6 2005, 01:48 AM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 10-January 05 Member No.: 3,189 |
in that case, a moderator may have deleted your post, and that would have resulted in the lost of your credits.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 05:16 PM |