btkaruna Posted August 24, 2006 Share Posted August 24, 2006 hi,i have to modify my sql query.following is my sql statementinsert into quartperformfigures (iQuater,dValue) values ('1','".$_POST[$i."1"]."')";what does '".$_POST[$i."1"]."' hold is it array type value? need help to analyse this.thankyoukaruna Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 24, 2006 Share Posted August 24, 2006 [quote]what does '".$_POST[$i."1"]."' hold is it array type value?[/quote]It is an array element. It can hold any number of things, but it would appear in your case to most likely be either a string or number. Quote Link to comment Share on other sites More sharing options...
poirot Posted August 24, 2006 Share Posted August 24, 2006 A good way to know what it holds is:[code=php:0]var_dump($_POST[$i."1"]);[/code] Quote Link to comment Share on other sites More sharing options...
.josh Posted August 24, 2006 Share Posted August 24, 2006 the $_POST array is an array that holds all of your submitted values from your form. the stuff inside the [] points to which position in the array. the $i."1" is taking the value of $i and concactonating 1 to it. I assume that there is a loop where $i is incremented or something, so one one of those iterations of the loop, it might actually look like $_POST[11], $_POST[21], $_POST[31], etc... those being the 12th, 22nd, and 32nd positions in the $_POST array (because arrays start at zero, not 1). What value the $_POST[11] (example) holds can be anything. Look at the form you got the posted info from. it's being inserted into your dValue column in your db so that might help you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.