Search found 12 matches

by Com4dor
Mon Mar 09, 2015 5:10 pm
Forum: Coding
Topic: For each? Loop? Many Form Fields with DB insert
Replies: -1
Views: 3478

Re: For each? Loop? Many Form Fields with DB insert

I managed to find this online somewhere and worked out for me! Here's what I used in case someone else comes across this.

Code: Select all

for ($i=0; $i < count($_POST['id']); $i++) {
$drop_id = $_POST['id'][$i]; 
$drop_chance = $_POST['id2'][$i]; 

//Insert Query
}
by Com4dor
Sun Mar 08, 2015 8:52 pm
Forum: Coding
Topic: For each? Loop? Many Form Fields with DB insert
Replies: -1
Views: 3478

Re: For each? Loop? Many Form Fields with DB insert

It's like this But I need id1 and id2 and then they need to get inserted into the same Drops table.

Image
by Com4dor
Sun Mar 08, 2015 8:39 pm
Forum: Coding
Topic: Floating Div
Replies: -1
Views: 5884

Re: Floating Div

Thank You! That worked!
by Com4dor
Sun Mar 08, 2015 8:37 pm
Forum: Coding
Topic: For each? Loop? Many Form Fields with DB insert
Replies: -1
Views: 3478

For each? Loop? Many Form Fields with DB insert

...form data... So basically I have it set up so on the click of a button I can add more fields to the current form. Example: Multiple drops (of items) from chopping a tree. echo "<table><tr><td>Drops: <select name=\"input4-a[]\" id=\"items\">"; echo $items; echo "...
by Com4dor
Sat Feb 07, 2015 5:45 am
Forum: Coding
Topic: Floating Div
Replies: -1
Views: 5884

Re: Floating Div

Nope. No floating. I just used a table but If I put a width of 285px on the left and right column and minimize my browser causing a horizontal scrollbar... With your code the "chat/#bottom div" still follows the scroll instead of staying in between the 2 divs. The reason I say this is beca...
by Com4dor
Fri Feb 06, 2015 9:10 pm
Forum: Coding
Topic: Floating Div
Replies: -1
Views: 5884

Re: Floating Div

I tried position fixed but that didn't work 100% the way I wanted. It does this when I scroll over. I use the left.. It uses the left of the screen itself.. I need it positioned between the left and right columns 100% of the time no matter what. http://i.gyazo.com/0d886f37391910b41cbc83ebb76342c9.pn...
by Com4dor
Fri Feb 06, 2015 5:31 pm
Forum: Coding
Topic: Floating Div
Replies: -1
Views: 5884

Re: Floating Div

Hopefully this will explain a bit more.

Image
by Com4dor
Fri Feb 06, 2015 1:48 am
Forum: Coding
Topic: Floating Div
Replies: -1
Views: 5884

Floating Div

I am looking to float a div to the bottom of my "screen/window - not page" But I want this div to be floated in between two divs.. So this div would be floated in the 2nd "column/div" out of the 3 divs side by side. Ive tried a fixed position with a left and right but when ever I...
by Com4dor
Fri Aug 29, 2014 5:44 pm
Forum: Coding
Topic: PHP timestamp
Replies: -1
Views: 879

Re: PHP timestamp

I tried that it didn't work.
by Com4dor
Sat Aug 23, 2014 3:13 am
Forum: Coding
Topic: PHP timestamp
Replies: -1
Views: 879

PHP timestamp

I need to convert "09.Feb.2014 - 05:27 pm" to a timestamp to get the days since. Is there Any way to do this?

Go to advanced search