I have the following mySQL query:
$ query = sprintf ("select AA, AB, ..., AC, from AA =% s by Order AA; ", implode (" OR AA = ", $ _SESSION ['value']); For some records the value of b , and for others, b is NULL I remove the query with the following PHP: For
($ i = 0; $ i & lt; $ nrows; $ i ++) {$ row = mysqli_fetch_assoc ($ results); // contains the data stored in each row ($ line); Echo "& lt; tr & gt;"; Forex currency ($ line $ $ column = & gt; $ as field) {If ($ field == $ ...) {...} elseif ($ field == $ C) {echo " & lt; input type = 'text' name = 'C + []' value = '$ C' & gt; & lt; / td & gt; "; } Echo "& lt; / tr & gt;" }
The not blank b fields are presented accurately in the resulting HTML table, while null Apply the duplication of the B field C field This offset occurs at the beginning of the record, puts the final boundary in the records outside the table boundaries.
I think I have reduced the problem () to remove the problem, because r_print readouts of each other variable in the script returns the exact field name and value. However, print_r on the $ line after extract provides a similar printout for the other variables in the script.
In some probable ways, can I stop the repetition of the C field? Happy to provide more information on request
No comments:
Post a Comment