Go Back   Mototips > The Mototips Community Forums > General & Off-Topic Discussions

Notices

General & Off-Topic Discussions open discussion area


General & Off-Topic Discussions Thread, PhP/MySQL Help for a Newb in The Mototips Community Forums; Anyone here good with php and mysql? I'm not, though I do know programming ...
Reply
 
LinkBack Thread Tools Display Modes
Old 09-03-2007, 09:54 AM   #1 (permalink)
C Rider
 
Rekd's Avatar
 
Join Date: May 2007
Location: teh Debug Window
Posts: 17
Rekd is on a distinguished road
iTrader: (0)
PhP/MySQL Help for a Newb

Anyone here good with php and mysql? I'm not, though I do know programming and databases fairly well. Here's my situation, mayhaps you can help.

Over at my new web site, A Musing Scribe, I've set up a blog at /blog and my main site runs Joomla on the root directory. I found a somewhat stripped down template for wordpress, and stripped it down even more so I could "wrap" it inside my joomla site without the sidebars and any other extra crap I don't want. I'm pretty happy with the way it turned out.

Anyway, I use the blog for 2 things... one is for deep links (so I can reference my other writing from other sites to help increase page rank), the other is for a study I've decided to do a couple weeks ago about the cause and effect of ATV Accidents. As many of you are aware, ATVers face lots of opposition from people who want to A) close ALL public land to OHV and ATVs, and B) to ban ALL children from riding ANY ATV until they're 16.

I created a category and sub categories to list the number of accidents total and to separate them into categories of "cause". Right now I don't have a way of pulling the data from the wordpress site and displaying it dynamically on the main site.

The counting is done so far by the number of entries in the categories, but you have to go to the blog then scroll to the bottom to find the categories that got moved from the sidebar.

# ATV Accidents (37)

* Drugs/Alcohol (3)
* No Helmet (23)
* On Pavement (9)
* Ridden Safely (3)
* Riding 2 Up (11)
* Too Big (1)

I'd like to be able to pull that data from the wordpress database and display it on the joomla site without having to do it manually.

Is there a way to open a separate database (on the same server) and pull only certain data (or preferably just count each entry in each category) and parse it with php so I don't have to update this all the time?

Thanks for the help. We now return you to your regularly scheduled programming.

BTW, as you can see from the barely 2 week old stats so far, only 3 out of 37 accidents happened while the ATV was ridden safely, (i.e. with a helmet, no drugs, not too big, not on pavement, not ridden two up, not unsupervised etc).
__________________
What's in your sippy cup?

__□ □ □ □_
[l_,[____],
l---L - OlllllllO-
( )_) ( )_)--)_)

A Musing Scribe
Under My Helmet
Motorcycles.Suite101
Throttle Blog
San Diego, Ca

Last edited by Rekd; 09-03-2007 at 09:58 AM.
Rekd is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Old 09-03-2007, 11:51 AM   #2 (permalink)
Administrator
 
tigmaster's Avatar
 
Join Date: Aug 2006
Location: Missouri, United States
Posts: 7,659
tigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond repute
iTrader: (1)
Send a message via AIM to tigmaster
man, i wish i could help but i dont know a huge ammount of php. however i did this exact thing a long time ago with actionscript and perl. dont even remember that though.
__________________
--'03 CRF450r--
--FMF Pipe, Pro-Tech Revavle--
--Vortex Basket With Tusk Disks And HP Springs--
--Pro Taper Triple Clamps And Bars--
--Devol Full SP With Moose HGs--
--Renthal 13/50 With R1 Chain--
--Now It Is The End, Probably...--

--'06 CBR F4I--
--Bone Stock--

tigmaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-06-2007, 11:01 PM   #3 (permalink)
Administrator
 
JThompson's Avatar
 
Join Date: Aug 2006
Location: Bellingham WA
Posts: 5,156
JThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond reputeJThompson has a reputation beyond repute
iTrader: (6)
You should be able to find a bridge for wordpress to joomla. I myself have never worked with joomla. The one time I did I got so frusterated I was going to rip my hair out .
Bridge Joomla with WordPress with SMF
That thread right there I hope can help you out. As always love your sites? Since you gave yourself some link love from a site loved by google(mototips) You want to pass some link love back? LOL
__________________

Tired of ads? Become a member for an almost ad free site! Also we give away monthly prizes just for posting! Register today!

Looking for places to ride! Want to review a riding area? Check them out!
PRE-ORDER MOTOTIPS Stickers now. Help keep mototips running! Get your order in today! Buy NOW!
Special Discounts for members only! Check out our new discount forum for retailers offering to help you save money! Mototips Discounts

JThompson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-07-2007, 05:31 AM   #4 (permalink)
Administrator
 
tigmaster's Avatar
 
Join Date: Aug 2006
Location: Missouri, United States
Posts: 7,659
tigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond reputetigmaster has a reputation beyond repute
iTrader: (1)
Send a message via AIM to tigmaster
ya, i wish i could help more.
__________________
--'03 CRF450r--
--FMF Pipe, Pro-Tech Revavle--
--Vortex Basket With Tusk Disks And HP Springs--
--Pro Taper Triple Clamps And Bars--
--Devol Full SP With Moose HGs--
--Renthal 13/50 With R1 Chain--
--Now It Is The End, Probably...--

--'06 CBR F4I--
--Bone Stock--

tigmaster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:25 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
All rights reserved mototips.comAd Management by RedTyger
Inactive Reminders By Mished.co.uk and FTP-Anime.com