Jump to content

vickytam

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

vickytam's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Dear all, I wrote some code as below: <?php …… (Connected to database & get 1000 records from database (using array function) $date = $row['date']; $product = $row['product']; ?> <table border="1"> <tr> <td><?php echo $date; ?></td> <td><?php echo $product; ?></td> </tr> </table> There are 1000 records were loaded via array function. How can I make a page break function? Each page will show 100 records only. Can anyone help? Thank you. Regards, Vicky
  2. Dear all, I wrote some code as below: <?php …… (Connected to database & get 10 records from database (using array function) $name = $row['name']; $id = $row['id']; ?> <form name="input" action="test2.php" method="get"> <table border="1"> <tr> <td><?php echo $name; ?></td> <td><?php echo $id; ?></td> <td><input type="checkbox" name="check" value ="1">Record checked<br> <td><input type="checkbox" name="del" value ="1">Delete?<br> </tr> </table> <input type="submit" value="Submit"> </form> There are 10 records were loaded via array function. Would you help to tell me how can I post the value to "test2.php" when I clicked the checkbox. Thank you. Vicky
  3. Hi! I am trying to write a code for counting time differnet between a date (get from a database, MySQL, format:"yyyy-mm-dd hh:mm:ss) and current date&time. But I cannot generate the result. Any one can help? Thanks. e.g: date& time from database : 2006-03-10 12:00:00 current date&time : 2006-03-11 23:00:00 I wanna the output is " 1 day 11 hours 00 mins or 1 days 11:00 hours Thanks, Vicky
×
×
  • Create New...

Important Information

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.