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

Online now

Members online
869
Guests online
1,017
Total visitors
1,886

Forum statistics

Threads
2,276,100
Posts
28,967,601
Members
1,231,119
Latest member
maddara
Back
Top