xl97:
what is this domain even: ErrorSome free hosting domain space? And they give you database......free?
I question this whole set-up now..
<?php
$base = mysql_connect('localhost', '1317483', 'password') or die("unable to connect to db"); ;
mysql_select_db('1317483',$base);
$a=$_GET['ID'];
$b=$_GET['Temp'];
$c=$_GET['Hum'];
//$sql = "SELECT * FROM info WHERE id='$a'";
//$res=mysql_query($sql) or die('Error selection'.mysql_error());
$sql = "INSERT INTO Essai VALUES('$a','$b','$c')";
mysql_query($sql) or die('Error selection'.mysql_error());
$insertGOTO="index.html";
header(sprintf("Location:%s",$insertGOTO));
?>
- that's the ajout.php code, with that i add values to my database.
- Phpmyadmin is where i created this db.
- SQL is the type of db.
- projetec.orgfree.com is the website i created where i can find my ftp and things like that, created it from 'freewebhostingarea.com'