🔒 Closed Help po sa mga PHP web. How to insert multiple records via input range po?

Status
Not open for further replies.

leocel

Established
help po sa mga PHP web. How to insert multiple records via input range po, for example po I have input box FROM at input box TO, maglalagay ako ng value 100 sa input box FROM then 120 sa input box TO, pag click ko ng create button, it should insert record from 100 to 120....Sana po may makatulong sa akin
 
mag loop ka

parang ganto

Code:
$from = $_POST['from']
$to = $_POST['to']

for ($from; $from <= $to; $from++) {
  echo "The number is: $from <br>";
}
 
mag loop ka

parang ganto

Code:
$from = $_POST['from']
$to = $_POST['to']

for ($from; $from <= $to; $from++) {
  echo "The number is: $from <br>";
}
bale sa baba po nyan sir, ko ilalagay yung script para mag insert ng record sa database po?
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 501
    Views
  • 2
    Participants
Last reply from:
leocel

Trending Topics

Online now

Members online
388
Guests online
1,339
Total visitors
1,727

Forum statistics

Threads
2,286,453
Posts
29,037,844
Members
1,217,960
Latest member
kirby90
Back
Top