Jump to content

insert 3 at one go in multiple fields


sungpeng

Recommended Posts

I have fields img1, img2, img3, img4, img5, img6, img7, img8, img9 in mysql.

Given 3 input box only

 

for($i=1; $i<=3; $i++){

echo "<tr><td>text $i</td></tr>";

echo "<tr><td><input type=text name='text[]''></td></tr>";

}

 

I need a code that can insert 3 values into mysql above fields if the fields is empty. How to code? Can help?

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/150993-insert-3-at-one-go-in-multiple-fields/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.