🔒 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
  • 507
    Views
  • 2
    Participants
Last reply from:
leocel

Trending Topics

Online now

Members online
1,090
Guests online
3,995
Total visitors
5,085

Forum statistics

Threads
2,308,690
Posts
29,186,664
Members
1,191,170
Latest member
halwynpuf
Back
Top