Page 2 of 2

Posted: Thu Feb 19, 2004 6:26 pm
by timka
ol4pr0 is that what u ment?

Code: Select all

<?php

// with mysql 

$dbuser = "username"; 
$dbpass ="pass"; 
$host ="localhost";

mysql_connect($host, $dbuser, $dbpass) or die(mysql_error());

//mssql microsoft sql 
mysql_connect($host, $dbuser, $dbpass) or die(mysql_error());

?>
I don't need the database name?

Posted: Thu Feb 19, 2004 6:32 pm
by timka
This is what the original config.inc.php looks like

Code: Select all

<?php
   // ------------------------
   // server vars
   // insert your mysql server
   // variables to connect to
   // ------------------------
   $host = '';
   $dbuser = '';
   $dbpass = '';
   $dbname = '';
   // ------------------------
   // mysql tables
   // ------------------------
   $questions = 'poll_questions';
   $answers = 'poll_answers';
   // ------------------------
   // cookie life time
   // in days
   // ------------------------
   $cookie_life_time = 40;
?>

Posted: Thu Feb 19, 2004 6:33 pm
by timka
ol4pr0 how come when I use your config code it gives me an error about the mssql_connect?

Posted: Fri Feb 20, 2004 1:07 am
by timka
bump

Posted: Fri Feb 20, 2004 6:45 pm
by timka
come one u guys im almost done all I need to do is make it connect to the database.

Posted: Sun Feb 22, 2004 1:57 am
by timka
maybe someone can make me a script that can install .sql file like some scripts have? cuz I tryed but I can't do it.