Testimonials from Database (MYSQL PHP) Problem
Posted on 2006-04-22
This is a fairly simple problem just don't know the exact code to put in and where. I have a testimonals section scrolling on the side of a page. At the moment I have it set up to display just text I entered but I would like if it could draw the text from a database. I have a database set up with entries to use (Table: feedback_table, Fields: feedback_id and feedback_text and approved). So from the database I want it to display only the records where approved = 1 . I'm using PHP and MYSQL.
Can anyone help? Here is the code I have so far for the scroller that works fine.
<marquee loop="infinite" behavior="scroll" direction="up" height="95px" width="205" scrollamount="1" scrolldelay="65" truespeed="" onmouseover="this.stop()" onmouseout="this.start()"><a href="" title="Sample" onmouseover="self.status='Sample'; return true;" return true;" ;="">Sample</a> <a href="" title="Sample" onmouseover="self.status='IE Domain Names'; return true;" onmouseout="self.status=' '; return true;" ;="">Sample Text<br><br></a> <br><br> </marquee>