Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2004, 06:30 PM
XinG
Unregistered

Posts: n/a

polls

can anyone tell me how i can get a poll thing for a site? (such as the 1 included in simple squad site?)
Reply With Quote
  #2  
Old 10-28-2004, 11:21 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,965

Go to hotscripts.com and search for poll.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 10-29-2004, 07:18 AM
XinG
Unregistered

Posts: n/a

oki, also is there anyway of connecting ALL seperate files to 1 database AND create an admin panel for each all in 1? such as using the map database, polls, news .. ?
Reply With Quote
  #4  
Old 10-29-2004, 11:13 AM
katana*GFR* is offline katana*GFR*

Join Date: May 2002
Location: North Sea
Posts: 2,421

Send a message via ICQ to katana*GFR* Send a message via MSN to katana*GFR*
I think you have to rewrite all the scripts to 1 . And as far as i know its not a problem to let more scripts use the same DB aslong as they use different prefixes
__________________
<- Sponsored by Chris



Found on Youtube:
Quote:
And if Newton Faulkner's voice can be described as "R&B" then Kurt Cobain must be a member of Boyz II Men.
Link here
Reply With Quote
  #5  
Old 11-01-2004, 11:23 AM
PHP-Largo
Unregistered

Posts: n/a

you can do it like that or you can use the same prefixes by using if's


such as
PHP Code:
if(action=="view"){
$result mysql_query("SELECT * FROM db");
}else if(
action=="insert"){
$result mysql_query("INSERT INTO db VAULES("","","")");
}else{
echo
"NO QUERY SELECTED!";

but that'd mean ur url would have to be like:
http://you.you.page.php?action=view
Reply With Quote
  #6  
Old 11-02-2004, 10:16 AM
XinG
Unregistered

Posts: n/a

speaking of databases.. would this work?
PHP Code:
<?
$localhost="localhost";
$db_user="username";
$db_pass="pass";
$db_name="name";
?>

<?
mysql_connect("$localhost,$db_user,$db_pass");
    mysql_select_db("$db_name)"; 
?>
or is it just change localhost to the database name ?
Reply With Quote
  #7  
Old 11-02-2004, 05:42 PM
Dane
Unregistered

Posts: n/a

keep localhost as the same
PHP Code:
$db_user="username"
$db_pass="pass"
$db_name="name"
just change these
Reply With Quote
Reply


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help With Polls IN PHP JonM Web design and Programming 11 08-25-2004 03:51 PM
Polls zza1pqx Feedback / Novahq.net Support 3 04-30-2003 02:13 PM
polls??? Se7eN Web design and Programming 5 04-28-2002 05:14 PM


All times are GMT -5. The time now is 02:26 AM.




Powered by vBulletin®