| | #1 |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Perrysburg, Ohio
Posts: 236
Thanks: 63
Thanked 24 Times in 22 Posts
|
I have a SQL database of recipes and I am trying to get it in a wordpress site. I have done a new installation of WP then went into PHPMyAdmin and installed the database. It said it installed O.K. It is in the lists of databases and it named it "Recipes", how do I get it to come up in the site? The DB is in catagories and sub-catagories but I don't know where to go from here. Any help would be appreciated, DB's are not my strong suit. |
| |
| | #2 |
| Marketing Evangelist War Room Member Join Date: 2011
Posts: 174
Thanks: 11
Thanked 24 Times in 18 Posts
|
Your going to have to write some PHP to query the data in the Database. The database is just where information is stored it doesn't really do anything you need to create a window into the database with some queries. Fred |
| |
| | #3 |
| VIP Warrior War Room Member Join Date: 2008 Location: Montreal Canada
Posts: 2,390
Thanks: 1,017
Thanked 836 Times in 572 Posts
Blog Entries: 1 |
Yes, you will definitely need custom PHP code to do this. Essentially you need code to: (1) connect to the database (you can use some of the built-in WordPress functions here, or just do it independently) (2) Query the database - you'll probably want to use variables in the query so you can display items by category or provide a search facility. (3) Display the results on the page. In addition, if you want to make it look nice you might want to do an AJAX design, to avoid page refreshes. That will also involve JavaScript, or perhaps JQuery as it is included with WordPress anyway. Sorry, no "out of the box" solution I'm aware of, perhaps others are. Here are a few links if you want to attempt this: PHP MySQL Introduction PHP Tutorials: Creating a database using phpMyAdmin PHP/MySQL Tutorial - Part 1 Writing a Plugin « WordPress Codex Best of luck with your project Bill |
| |
| | #4 | |
| HyperActive Warrior War Room Member Join Date: 2009 Location: Perrysburg, Ohio
Posts: 236
Thanks: 63
Thanked 24 Times in 22 Posts
|
Ok Bill, thanks for the information and the links. Tim
| |
| |
|
| Bookmarks |
| Tags |
| database, install, recipe, wordpress |
| |