I am trying to map some values with the values the user has entered. Here comes from the real user and fed from the $ target table
if (mysqli_connect_errno ()) {echo "failed to join MySQL:" mysqli_connect_error (); } And {$ real; $ Comment; $ Thief; $ Currency ($ _ POST ['value'] as $ country = & gt; $ value1) {foreach ($ value1 to $ target = & gt; $ value2) {// value = & gt; ["Matrix"] Forex Currency ($ value2 $ matrix => $ value3) {// value = & gt; String $ country "$ Target" "". $ Matrix "" $ Value3 "
" If ($ matrix == "actual") {$ actual = $ value3; } And if ($ matrix == "comment") {$ comment = $ value3; }} $ Sql = "Select target from target where ini_id = '$ ini' and country_id = '$ country' and metric_id = '$ goal'"; $ Result = mysql_query ($ SQL); $ Target = mysqli_fetch_array ($ results); Insert ($ actual, $ target ['target'], $ country. $ $ Target $, $ comment, $ conn.); WARNING: mysqli_fetch_array () parameter 1 is expected to be mysqli_result, given in Boolean C: \ xampp \ htdocs \ xampp \ testing \ sq1.php on line 107
I see that instead of mysql_query mysqli_query are using P> (and thus mysqli_fetch_array does not really know how to interpret that argument)
No comments:
Post a Comment