Translate

<?php

$rest = substr("This is testing This is testing This is testing This is testing This is testing This is testing ", 0, 30);

echo $rest . "...";
?>






<?php
echo '
<table border="1" style="margin:10px auto;">
<tr bgcolor="aqua">
<th>ID</th><th>Bank</th><th>Account No</th><th>Acount Type</th><th>Custome Name</th><th>Phone No</th><th>Report</th>
</tr>';
mysql_connect("localhost","root","");
mysql_select_db("bankdb");
$b=mysql_query("select * from tblaccount where Status='False'");
$t=mysql_num_rows($b);
for($a=0; $a<$t; $a++)
{
$xRow=mysql_fetch_array($b);
echo ' <tr>
<td>'.$xRow[0].'</td>
<td>'.$xRow[1].'</td>
<td>'.$xRow[2].'</td>
<td>'.$xRow[3].'</td>
<td>'.$xRow[4].'</td>
<td>'.$xRow[5].'</td>
<td>'.$xRow[6].'</td>
</tr>
';
}
?>

No comments:

Post a Comment