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

Status
Not open for further replies.

leocel

Forum Veteran
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
  • 510
    Views
  • 2
    Participants
Last reply from:
leocel

Trending Topics

Online now

Members online
456
Guests online
2,278
Total visitors
2,734

Forum statistics

Threads
2,331,976
Posts
29,261,528
Members
1,147,959
Latest member
v69
Back
Top