ENC28J60 Pushing data to 000webhost PHPMyAdmin

Hi everyone! I could finally made my way to creat a host on 000webhosting where I set a basic database of temp and Humidity (the classic one), it seems to be working fine since when I type in the URL Firefox http://bamboklaat.hostzi.com/php/habitacion_web.php?t=25&h=53 the database get the values, so the php script is kicking, the problem is when I send the data via arduino (the conection is achieved!), I editted some of the program I used for sending data to MyAdmin installed in my computer and worked well, simply changed the Server number, the php file name and its forder where it is, the symbolic modified one is:

#include <UIPEthernet.h>
char server = “bamboklaat.hostzi.com”;

if (client.connect(server,80)) {
Serial.println("-> Connected"); //(it does connect!)
// Make a HTTP request:
client.print( “GET /php/habitacion_web.php”);
client.print(“t=”);
client.print(str_t);
client.print("&");
client.print(“h=”);
client.print(str_h);
client.println( " HTTP/1.1");
client.print( "Host: " );
client.println(server);
client.println( “Connection: close” );
client.println();
client.println();
client.stop();
}

I´ve been looking around the internet and could not figure out, I suspect its a progrmming thing that I cant see. Hope someone can guide me a little bit. Thanks for reading and taking your time.

Greettings,

Luciano

Hi Luciano

http://bamboklaat.hostzi.com/php/habitacion_web.php?t=25&h=53
    client.print( "GET /php/habitacion_web.php");       
    client.print("t=");
    client.print(str_t);
    client.print("&");
    client.print("h=");
    client.print(str_h);

Looks like you are missing the '?' between ".php" and "t=".

Regards

Ray

Hi Hackscribble, Thanks so much! its kicking fine! next time will take even more time before posting. Thanks once again!

Greetings,

Luciano