| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Senior Member ![]() | Scrolling Text I want to scroll dropping domain names on my site, and i want to be able to just add the domain names to a sql database or text file then with php or javascript call the text file and scroll each name one after the other on a loop. Im using marquee right now and adding them manually but thats real annoying. !pleH |
| |
| | #2 (permalink) |
| NamePros Regular | im not too sure about php MySQL, but in asp i think you would probably use something like the following, maybe php would be similar?... Code: <MARQUEE>
<%
sql = "SELECT * FROM Domains";
domains = conn.Execute(sql);
while (!domains.EOF)
{
Response.Write(unescape(domains(0)))
domains.MoveNext();
}
%>
</MARQUEE>
**database connection not shown..... because i can't be bothered typing it** |
| |
| | #5 (permalink) |
| Senior Member | I'll assume that you already know how to enter info in a database, and how to construct a mysql database. you can call it very easy: <? $sql = mysql_query("SELECT * FROM dropping_names ORDER BY (optional to you)"); while($row = mysql_fetch_array($sql) { // output here.. ![]() } ?> that's it. but, that involves how you want to order the domains, and how many you want to show on one page, you might need a basic navigation system. If you need let me know, I'll show you a tutorial for this which i use already on my coding. Good luck. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Good Article: An SEO Checklist | Ferman | Search Engines | 2 | 05-28-2005 10:51 AM |
| Why can't I get clicks | majinbuu1023 | Google Adsense | 43 | 04-15-2005 09:24 PM |
| Basic HTML Tutorial | webgear | Webmaster Tutorials | 8 | 04-02-2005 02:20 PM |
| cannot find script | sickle | Web Design Discussion | 5 | 04-03-2004 06:36 PM |