Flash PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

timka
Forum Commoner
Posts: 26
Joined: Sat Feb 14, 2004 5:11 pm

Post 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?
timka
Forum Commoner
Posts: 26
Joined: Sat Feb 14, 2004 5:11 pm

Post 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;
?>
timka
Forum Commoner
Posts: 26
Joined: Sat Feb 14, 2004 5:11 pm

Post by timka »

ol4pr0 how come when I use your config code it gives me an error about the mssql_connect?
timka
Forum Commoner
Posts: 26
Joined: Sat Feb 14, 2004 5:11 pm

Post by timka »

bump
timka
Forum Commoner
Posts: 26
Joined: Sat Feb 14, 2004 5:11 pm

Post by timka »

come one u guys im almost done all I need to do is make it connect to the database.
timka
Forum Commoner
Posts: 26
Joined: Sat Feb 14, 2004 5:11 pm

Post 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.
Post Reply