DB select query
-
[ Moderator note: moved to Developing with WordPress. ]
Hi
I am new to WordPress and getting to understand the concepts. I have developed websites before but in other environments/ languages.
What I want to do, just to see how it works, is add a MySQL query to a new page on my site – which I will delete once I get it working.
I have defined a custom table, and tested the simple query in myPhpAdmin, and that works fine.
I intend to learn how to add functions etc to the server over the next few weeks/months, so I can write my own plugins, and have a few books I’ve been going through etc.However, for today I just want to know if.how it is possible to add a SQL query to a page, something like this:
SELECT * FROM
wp_myTableWHEREnameLIKE ‘%joe%’I don’t even know how to phrase the question right… is it possible, without creating a file and uploading it to the server, to add some code with the above query to display data on a wordpress page?
I just want to see some query results on a page and have fun before deleting it all and progressing into proper development.
In other words, can I add some SQL/php code to a page just from the WordPress backend?As I said, I don’t know enough to be able to even ask the question properly – there are still a lot of concepts that I haven’t absorbed yet.
Hopefully you can understand what I am asking.Regards
Garrett
The topic ‘DB select query’ is closed to new replies.