jeffery1493 Posted January 17, 2007 Share Posted January 17, 2007 Hi All, I have a PHP application running off a MySQL database, and this my problem: I have an HTML "front page" that is outside of PHP, and I just want to pull the top ten users out of the MySQL database and put them on a list. Is there any way to do a quick MYSQL query, like a little grid, in HTML all by itself? I would convert the front page to PHP, but it has alot of graphics and frames (.css templates and such) and I fear that might be a nightmare. Any advice would help a great deal- thanks JEFFERY1493 Quote Link to comment Share on other sites More sharing options...
steelmanronald06 Posted January 18, 2007 Share Posted January 18, 2007 As far as I know you can't execute PHP (which is how you get mysql results) in html unless you parse .html files through the PHP engine, and then it would be the same as renaming the file .php Quote Link to comment Share on other sites More sharing options...
jeffery1493 Posted January 18, 2007 Author Share Posted January 18, 2007 How do you do this? ??? ??? ??? ??? ??? ??? Quote Link to comment Share on other sites More sharing options...
jeffery1493 Posted January 18, 2007 Author Share Posted January 18, 2007 My going theory is that you can rename the file to .php (which worked), then use <?php ...... ?>sections within the code. If it's that easy, thats a testament to PHP. If not, I will most assuredly go down in flames. Then again, this sad boat was hardly keeping afloat as it was.......... Quote Link to comment Share on other sites More sharing options...
jeffery1493 Posted January 18, 2007 Author Share Posted January 18, 2007 It worked! ! Problem solved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.