Viewing file: installment.php (751 B) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $host="localhost"; // Host name $username="sarkmicr_user"; // Mysql username $password="rb!sar838"; // Mysql password $db_name="sarkmicr_data"; // Database name
$tbl_name="create_receipt"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB");
// Retrieve data from database $sql="SELECT noofinstallment FROM $tbl_name order by id"; $result=mysql_query($sql);
// Start looping rows in mysql database. while($rows=mysql_fetch_array($result)){ $instneww=$rows['noofinstallment']; // close while loop } $instnewo=($instneww+1);
// close connection mysql_close(); ?>
|