How to wite PHP code with the following SQL query? -


I'm trying to check a result, it works in a SQL query, but I use PHP I am trying to get results.

  SELECT prs_amtdb Where is `prs` from FROM prs_amtcrck = 0  

use of mysqli

Note: Make sure you tie your value. Mysqli does not automatically save your query $ connection = mysqli_connect ($ host, $ user, $ password, $ database);

  $ query = "select prs_amtdb from prs WHERE prs_amtcrck = 0"; $ Result = mysqli_query ($ connection, $ query); // $ Connection // Get your result while // // is // connection // $ echo $ row ['column_name'] & Lt; Br / & gt; '; }  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -