using PHP global variable -


I have a PHP global variable that I fill in a row from a database in the PHP section of my file. Global $ Row; / * Recover each row as an Associate array and display results. * / While ($ line = sqlsrv_fetch_array ($ stmt, SQLSRV_FETCH_ASSOC))

When I resize the $ line individual field, print the value as expected. Resize

  $ line ['crust_lost_name]]]. ",". $ Line ['Cust_PRI_Phone_Number']. "& Lt; br / & gt;";   

When I try to use different fields later in the HTML code, nothing in the file is visible.

  & lt; Label & gt; Name & lt; / Labels & gt; & Lt ;? Php Global $ line; Echo ['Cust_Last_Name'] per line; ? & Gt;   

Is anything else that should be coded for the name?

Thanks, Bob H

  global $ rows; While ($ line = ...) {$ line [] = $ line; }   

You have all the rows in the $ rows.

(But try to avoid using global variables.)

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -