I’m trying to get the topics data table from my forum’s MySQL database fed onto my website.
I went into the PhpMyAdmin and I changed the SQL code of the base to PHP and got this:
[code=php]$sql = ‘SELECT * FROM `forums_topics` LIMIT 0, 30 ‘;
I don’t know much about PHP, but I’ve seen it alot, so I took a guess at how to implement it into my site.
Here’s what I did:
[code=php]<?php
$sql = ‘SELECT * FROM `forums_topics` LIMIT 0, 30 ‘;
?>
But whatever code that is in the section that I want the feed to be in has to be in between <li></li> tags, and I do not know how to put those into PHP, which is what I’m assuming is making the above code not work.
What happens is just a “.” where the feed should be.
Does anyone know if this is the problem, and if so, how can I fix it?