Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PHP code
Message
De
01/11/2016 20:25:18
 
 
À
01/11/2016 06:55:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01642585
Message ID:
01642617
Vues:
60
>I'm using VFP9 with MySQL database, I want to write a simple PHP to retrieve the data.
>
>What is the PHP code for this:
>
>user inputs 'stockid', and gets the return value 'stock name'
>input => stockid
>query => select stockname from stockdata where stockcode=stockid
>output => stockname
>
>thanks for the help
>
>Jerry

Here is some code from a running PHP app.
queryDB is a MYSQLPDO function
    $query = "SELECT storecode FROM store WHERE storecode=:storecode AND PW=:PW";
    $params = array("storecode"=>$user,"PW"=>$password);
     $stores = $db->queryDB($query,$params);
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform