NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Scrolling Text

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-27-2005, 11:21 AM THREAD STARTER               #1 (permalink)
Senior Member

Join Date: Apr 2005
Location: .ma.us
Posts: 1,880
DropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud of
 


Baby Health Save a Life Save The Children

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
__________________
DropLister is offline  
Old 06-27-2005, 11:32 AM   #2 (permalink)
NamePros Regular
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
Wildchild22 is an unknown quantity at this point
 



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?...
????: NamePros.com http://www.namepros.com/programming/102217-scrolling-text.html

Code:
<MARQUEE>
<%
sql = "SELECT * FROM Domains";
domains = conn.Execute(sql);

while (!domains.EOF)
{
Response.Write(unescape(domains(0)))
domains.MoveNext();
}
%>
</MARQUEE>
i may be wrong though, im no expert

**database connection not shown..... because i can't be bothered typing it**
Wildchild22 is offline  
Old 06-27-2005, 11:42 AM THREAD STARTER               #3 (permalink)
Senior Member

Join Date: Apr 2005
Location: .ma.us
Posts: 1,880
DropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud ofDropLister has much to be proud of
 


Baby Health Save a Life Save The Children
thats a start ill alter it to php, b/c I cant us asp on a unix server
__________________
DropLister is offline  
Old 06-27-2005, 11:50 AM   #4 (permalink)
NamePros Regular
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
Wildchild22 is an unknown quantity at this point
 



yeah, sorry i couldn't be much more help.... my PHP knowledge is limited
Wildchild22 is offline  
Old 06-27-2005, 01:29 PM   #5 (permalink)
Senior Member
 
Porte's Avatar
Join Date: May 2005
Location: I'm right here
Posts: 3,526
Porte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud of
 



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.
????: NamePros.com http://www.namepros.com/showthread.php?t=102217

Good luck.
Porte is offline  
Closed Thread


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 11:51 AM
Why can't I get clicks majinbuu1023 Google Adsense 43 04-15-2005 10:24 PM
Basic HTML Tutorial webgear Webmaster Tutorials 8 04-02-2005 03:20 PM
cannot find script sickle Web Design Discussion 5 04-03-2004 07:36 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:51 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger