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)
No. The MySQL example script doesn't support GET parameters.
You should check the logs when you run the Android app. The error message from the server should be logged in the client.
Assuming it is possible to write a php script to send any query (and ideally any type of SQL command such as insert, drop, etc) can you please, please point me to tutorial/ example. I have looked for the last few evenings but without joy!!
Whilst you're online, may I say a massive Thank-You for an excellent product. I have spent over 25 years programming different languages on various hardware platforms and I can say that this is the best development tool I have ever used.
However, if I add a 'WHERE' condition statement to a string field it gives an error (The website cannot display the page). :sign0085: Is this to be expected?? I am using the correct SQL syntax (also works fine in your MS SQL tutorial) so is this a PHP syntax issue? Or is it just not possible to achieve?
Just to make you aware, I noticed that an int field works fine; i.e. WHERE RecordID=x displays the correct result.
Thanks for anyone tha can shed any light on where I am going wrong.