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

Trending Topics

Online now

Members online
1,104
Guests online
4,116
Total visitors
5,220

Forum statistics

Threads
2,354,188
Posts
29,382,595
Members
1,079,364
Latest member
AngasUngas
Back
Top