I am new to PHP so apologies if this seems like a daft question. Here goes . . .
I am following Erel's MySQL tutorial with my own DB hosted by 1&1. Using the script in the tutorial, is it possible to pass an SQL query via a browser?
For example, with Erel's MS SQL tutorial, you can call the .aspx script page followed by '?query=SELECT * FROM table' from a browser; and the query then gets passed to the DB and the result subsequently shown.
I am fully aware of security issues - but at this moment in time I am just trying to get the basics to work.
Note that if I 'hard-code' the SQL query within the php script and simply call the php page from my browser then I get the expected result (hence this isn't a connectivity issue but more like a syntax issue)
Hoping someone can help me! . . . .
I am following Erel's MySQL tutorial with my own DB hosted by 1&1. Using the script in the tutorial, is it possible to pass an SQL query via a browser?
For example, with Erel's MS SQL tutorial, you can call the .aspx script page followed by '?query=SELECT * FROM table' from a browser; and the query then gets passed to the DB and the result subsequently shown.
I am fully aware of security issues - but at this moment in time I am just trying to get the basics to work.
Note that if I 'hard-code' the SQL query within the php script and simply call the php page from my browser then I get the expected result (hence this isn't a connectivity issue but more like a syntax issue)
Hoping someone can help me! . . . .