[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 06-27-2005, 10:21 AM   #1 (permalink)
Senior Member
 
Join Date: Apr 2005
Location: .ma.us
Posts: 1,783
21.95 NP$ (Donate)

DropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to behold

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, 10:32 AM   #2 (permalink)
NamePros Regular
 
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
93.00 NP$ (Donate)

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?...

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, 10:42 AM   #3 (permalink)
Senior Member
 
Join Date: Apr 2005
Location: .ma.us
Posts: 1,783
21.95 NP$ (Donate)

DropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to beholdDropLister is a splendid one to behold

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, 10:50 AM   #4 (permalink)
NamePros Regular
 
Join Date: Jun 2005
Location: S. Yorkshire, United Kingdom
Posts: 310
93.00 NP$ (Donate)

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, 12:29 PM   #5 (permalink)
Senior Member
 
Porte's Avatar
 
Join Date: May 2005
Location: Somewhere on earth!
Posts: 3,528
21.30 NP$ (Donate)

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.

Good luck.
Porte is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:40 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85