What's new

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

leocel

Forum Veteran
Established
Joined
Feb 9, 2016
Posts
842
Reaction
122
Points
539
Age
44
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?
 

Similar threads

Back
Top