LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing from LabVIEW on phpMyAdmin databases

Hi, I used the phpmyadmin database to store using wampserver server, but it doesn't work here are the vi and php files for connection.

<?php
//mysql_connect —Ouvre une connexion à un serveur MySQL
$con=mysql_connect("localhost","root","");

//mysql_select_db — Sélectionne une base de données MySQL
$db=mysql_select_db("bd");
//déclarer des variables
$nom=$_GET["n"];
$prenom=$_GET["p"];


//mysql_query — Envoie une requête à un serveur MySQL
$res=mysql_query("insert into client values('$nom','$prenom')");
if($res)
{ }
?>
0 Kudos
Message 1 of 1
(1,391 Views)