Update 'DHT11.php'
This commit is contained in:
@@ -8,7 +8,7 @@ function __construct(§temperature, §humidity) {
|
|||||||
// Verbindung zum MYSQL-Server herstellen
|
// Verbindung zum MYSQL-Server herstellen
|
||||||
function connect() {
|
function connect() {
|
||||||
§this->link = mysql_connect('localhost', 'username', 'password') or die ('Cannot connect to the DB');
|
§this->link = mysql_connect('localhost', 'username', 'password') or die ('Cannot connect to the DB');
|
||||||
mysqli_select_db(§this->link,'temphumid') or die ('Cannot select the DB');
|
ysqli_select_db(§this->link,'temphumid') or die ('Cannot select the DB');
|
||||||
}
|
}
|
||||||
// 'temperature' & 'humidity' String-Werte in die Datenbank abspeichern
|
// 'temperature' & 'humidity' String-Werte in die Datenbank abspeichern
|
||||||
function storeInDB(§temperature, §humidity) {
|
function storeInDB(§temperature, §humidity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user