Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 01-09-2004, 08:21 PM   #1 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
Quote Script

I'm going to have a quote section on my new website, and I'm in search of a reliabe, free, and sturdy script for it. I would prefer it be written in php/mySQL and easily customizable, but if it is written in perl I'll live.

Any suggestions?
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2004, 08:23 PM   #2 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,905
iTrader: 0 / 0%
kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
kind of like www.bash.org?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2004, 08:24 PM   #3 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
Nope. Kind of like another column. It just displays a random quote, calling it from the database, and I can place the quote anywhere on the site.
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2004, 08:32 PM   #4 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,905
iTrader: 0 / 0%
kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
mmhh
mysql table needs to have 1 column.. quote
mysql.php:
[code:1:6405d18239]<?php
mysql_connect("host", "user", "pass");
mysql_select_db("db");
?>[/code:1:6405d18239]

quote.php:
[code:1:6405d18239]<?php
include("mysql.php");
$query = "SELECT quote FROM table";
$result = mysql_query($query) or die(mysql_error());
$num = mysql_affected_rows();
$rand = rand(1,$num);
$query = "SELECT quote FROM table LIMIT '$rand', '$rand'";
$result = mysql_query($query) or die(mysql_error());
while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$quote = $line['quote'];
}?>[/code:1:6405d18239]

index.php or wherever you want to call it from
[code:1:6405d18239]<?php include("quote.php"); ?> and whereever you want to display quote: <?php echo $quote; ?>[/code:1:6405d18239]

want an addquote.php too?
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2004, 09:00 PM   #5 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
Sure! Thanks Spear
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2004, 10:09 PM   #6 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,905
iTrader: 0 / 0%
kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
addquote.php
[code:1:4a857e22c7]<?php
include("mysql.php");
if (isset($_POST['quote'])) {
$quote = $_POST['quote'];
$query = "INSERT INTO table (quote) VALUES('$quote')";
$result = mysql_query($query) or die(mysql_error());
echo "Quote added.";
} else {
echo "<form method="POST" action="addquote.php"><input name="quote"><input type="submit"></form";
}
?>[/code:1:4a857e22c7]
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-09-2004, 10:10 PM   #7 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,905
iTrader: 0 / 0%
kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
Backlinks are always appreciated yum.
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-10-2004, 05:07 AM   #8 (permalink)
Contributing Member
 
samer's Avatar
 
Join Date: 10-13-03
Posts: 4,106
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
nice script spear
samer is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-10-2004, 09:49 AM   #9 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
Thanks spear You'll get a link on my links page when I get the site up
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-10-2004, 10:15 AM   #10 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,905
iTrader: 0 / 0%
kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
yummy.
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-10-2004, 10:30 AM   #11 (permalink)
Contributing Member
 
samer's Avatar
 
Join Date: 10-13-03
Posts: 4,106
iTrader: 0 / 0%
Latest Blog:
None

samer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nicesamer is just really nice
Hehe lol
samer is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

vB 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
Quote from Celebrity cEejay_01 Forum Lobby 31 10-14-2007 03:49 AM
Quote Jesse Vlasveld SEO Forum 2 03-13-2007 08:37 AM
What's your favorite Quote. Daniel-Z Forum Lobby 102 09-13-2006 09:34 PM
stock quote se4b4ss Coding Forum 8 04-10-2006 07:23 PM


Sponsor Links
Webmaster Forum Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:39 AM.
© Copyright 2008 V7 Inc