| | |
php help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 4
Reputation:
Solved Threads: 0
On my game , my bank and money is being limited to 2 billion.
Seems like the first 4 numbers (2147) are the same for everyone who has that much,
I tested it out on money too and it's only going up to that number even though I edit db with more money (4 billion).
Anyone know why it's stopping at this particular number ?
Seems like the first 4 numbers (2147) are the same for everyone who has that much,
I tested it out on money too and it's only going up to that number even though I edit db with more money (4 billion).
Anyone know why it's stopping at this particular number ?
Without more details I can only guess, but I would say that your data type for the amount of money that the player can get is an SQL INT. Am I right? An INT in SQL can only have a maximum value of 2,147,483,647. If that is the case, I would recommend using a BIGINT which will allow your players to have as much as 9,223,372,036,854,775,807!
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend. •
•
Join Date: Sep 2008
Posts: 9
Reputation:
Solved Threads: 0
display record from DB to webpage PAGE WISE PLEASE HELP ME IN:
kashiffarooq_5 @ hotmail . com
kashiffarooq_5 @ hotmail . com
php Syntax (Toggle Plain Text)
<?php $con=mysql_connect("localhost","root",""); mysql_select_db("manzilen"); // on the web: /* $dbh=mysql_connect ("localhost", "manzil_manzil", "hamari123") or die('Cannot connect to the database because: ' . mysql_error()); mysql_select_db ("manzil_manzilen"); */ $display="select * from feedback order by id desc"; $rs=mysql_query($display); if (mysql_num_rows($rs)>0) { while($row=mysql_fetch_array($rs)) { ?> </p> </p> <table width = "62%" height="164" border="1" align="center" cellpadding="1" cellspacing="1"> <tr> <td width="10%" height="23" valign="top" bgcolor="#0099FF" class="style27"><span class="style22"> Id. </span></td> <td colspan="4" valign="top" class="style27"><div align="justify" class="style29"><span class="style27"><?php echo $row[0];?></span></div></td> <!-- this table column is for picture --> <td width="26%" rowspan="9" align="center" valign="middle"> <span class="style29"> <!-- <a href = "<?php echo $row[9];?>"> --> <img src = "<?php echo $row[9];?>" width="125" height="125" border=0 /> <BR> <!-- <?php echo $row[1]; ?> --> </a> </span></td> </tr> <tr class="style27"> <td height="23" valign="top" bgcolor="#0099FF" class="style18"><span class="style30"> Name </span></td> <td colspan="4" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[1];?></span></div></td> </tr> <tr class="style27"> <td height="23" valign="top" bgcolor="#0099FF" class="style18"><span class="style30"> Email </span></td> <td colspan="4" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><a href = "mailto:<?php echo $row[2];?>"><?php echo $row[2];?></a></span></div></td> </tr> <tr class="style27"><td height="23" valign="top" bgcolor="#0099FF" class="style18"><span class="style30">Gender </span></td> <td colspan="4" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[3];?></span></div></td> <tr class="style27"> <td height="23" valign="top" bgcolor="#0099FF" class="style18"><span class="style30">Hobbies</span></td> <td width="16%" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[4];?></span></div></td> <td width="16%" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[5];?></span></div></td> <td width="15%" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[6];?></span></div></td> <td width="17%" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[7];?></span></div></td> </tr> <tr class="style27"> <td height="23" valign="top" bgcolor="#0099FF" class="style18"><span class="style30"> Age </span></td> <td colspan="4" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[8];?></span></div></td> </tr> <!-- <tr> <td valign="top" bgcolor="#0099FF"><strong><font size="2"> Picture </strong></td> <td colspan="4" valign="top"><img src = "<?php echo $row[9];?>" > </td> </tr> --> <tr class="style27"> <td height="23" valign="top" bgcolor="#0099FF" class="style18"><span class="style30"> Comments </span></td> <td colspan="4" valign="top" class="style18"><div align="justify" class="style29"><span class="style27"><?php echo $row[10];?></span></div></td> </tr> <tr> <td valign="top" bgcolor="#0099FF"><span class="style13"><font size="2"> Date & Time </span></td> <td colspan="4" valign="top"><div align="justify"><span class="style14"><?php echo $row[11];?></span></div></td> </tr> </table> <?php } } else { echo "<font color = red size=5> No Records Founded!</font>"; } //header('location:info.htm'); echo "<br>"; echo "<center><a href = feedback.htm> Form's Page </a></center> <BR>"; echo "<center><a href = index.htm> Main Page </a></center> <BR>"; ?> <BR />
Last edited by cscgal; Sep 4th, 2008 at 3:41 am. Reason: Added code tags
![]() |
Similar Threads
- Project available for PHP Developer (Web Development Job Offers)
- PHP/MySQL Programmer Position (Web Development Job Offers)
- Are you a PHP and Javascript junkie? It's time you met Emma. (Software Development Job Offers)
- PHP MYSQL Developer Position Available (Web Development Job Offers)
- PHP Web Programmer (Post your Resume)
- PHP / My SQL Web developer (Web Development Job Offers)
Other Threads in the PHP Forum
- Previous Thread: Images in PHP
- Next Thread: how to upload images to mysql with a foreign key using php
| Thread Tools | Search this Thread |
# .htaccess 5.2.10 access alexa apache api array beginner broken cakephp checkbox class clean clients cms code convert cron curl database date directory display dissertation dropdown dynamic echo$_get[x]changingitintovariable... email encode error fairness file folder form forms function functions google hack href htaccess html htmlspecialchars image include indentedsubcategory ip javascript joomla legislation limit link local login mail memberships menu methods multiple multipletables mysql mysqlquery network newsletters oop open passwords paypal pdf persist php provider query radio random redirect remote script search secure server sessions simple sockets source space spam sql system table tutorial upload url user variable video voteup web youtube





