WEBSITE PROBLEM PLEASE HELP!!

This is guide mostly for website tools and code, for example CMS or registration scripts.
There can also be tools.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

WEBSITE PROBLEM PLEASE HELP!!

Postby evilrizen on Sun Feb 22, 2009 6:23 pm

Hey,

I am setting up my website and i get the following errors when i tye loclahost in my web address bar.

I am using wampserver.
Notice: A session had already been started - ignoring session_start() in C:\wamp\www\libs\rosecp_ae.php on line 20
Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\libs\dmssql.php on line 35


here is the config.php file:
##### Template Dir ###########
$template = 'default';

##### Server Name
$title = 'roseon';
###### Your msSQL Info ########
$hostname = "localhost";
$username = "root";
$password = "root";
# databases, that if you changed db names. if not, dont change a thing
$seven_ORA = "roseon_ORA";
$sho = "SHO";
$sho_log = "SHO_LOG";
$sho_mall = "SHO_MALL";


Here is the dmssql.php:

class dmssql {


function dmssql($h,$u,$p,$d)
{
$this->host = $h;
$this->user = $u;
$this->pass = $p;
$this->db = $d;

}

function connect() {
$this->linkid = mssql_connect($this->host,$this->user,$this->pass) or die("Cant Connect to mssql [dmssql class]");
if ($this->linkid)
{
if (mssql_select_db($this->db))
{
return TRUE;
}
else
{
$this->dbclose($this->linkid);
echo "Cant Select $this->db [dmssql class]";
return FALSE;
}
}
else
{
echo "Cant Connect to mssql [dmssql class]";
return FALSE;
}
}

function query($q)
{
if ($this->connect())
{
$q = $this->clean($q);
$r = mssql_query($q) or die("FATAL ERROR");
return $r;
}
}

function clean($string)
{

$new_data = preg_replace("[^A-Za-z0-9@.]", "", $string);
return $new_data;
}
function num_rows($data)
{
return mssql_num_rows($data);
}
function qFirstRow($q)
{
if ($this->connect())
{
$ret = mssql_fetch_row($this->query($q));

}
return $ret[0];
}
function fetch_array($data)
{
return mssql_fetch_array($data);
}
function dbclose()
{
return mssql_close($this->linkid);
}


}
?>


Please help me thanks :D :D :D
evilrizen
Little soul
Little soul
 
Posts: 9
Joined: Sun Feb 22, 2009 6:14 pm

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby lmame on Sun Feb 22, 2009 8:33 pm

Why are you using Mssql?

This error:
  1. Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\libs\dmssql.php on line 35

Means you didn't install the "mssql" plugins for php, or it isn't loaded in php.ini so you should load it and restart your webserver...
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby evilrizen on Sun Feb 22, 2009 11:25 pm

I am using wampserver is that the problem?
and in the php settings in php extensions which one should I use?
evilrizen
Little soul
Little soul
 
Posts: 9
Joined: Sun Feb 22, 2009 6:14 pm

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby lmame on Mon Feb 23, 2009 12:07 am

Never used it. Make php load the mssql module.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby evilrizen on Mon Feb 23, 2009 12:32 am

I did it an i get the same error is it the configh.php file?
evilrizen
Little soul
Little soul
 
Posts: 9
Joined: Sun Feb 22, 2009 6:14 pm

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby lmame on Mon Feb 23, 2009 12:40 am

If you got the SAME error it's because the module is NOT loaded in php.ini or you didn't restart your webserver (php mainly)...
  1. [PHP_MSSQL]
  2. extension=php_mssql.dll


Usually the php_mssql.dll is in folder "PHP/ext"... Perhaps you didn't install it...
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby evilrizen on Mon Feb 23, 2009 12:51 am

I did that the error is still coming.
evilrizen
Little soul
Little soul
 
Posts: 9
Joined: Sun Feb 22, 2009 6:14 pm

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby lmame on Mon Feb 23, 2009 12:57 am

Check if the file exists, see last post for path.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby evilrizen on Mon Feb 23, 2009 4:19 am

Here the full source of my website all the files are there i don't know whats wrong??
http://www.mediafire.com/?nietlmdxncy
evilrizen
Little soul
Little soul
 
Posts: 9
Joined: Sun Feb 22, 2009 6:14 pm

Re: WEBSITE PROBLEM PLEASE HELP!!

Postby soccerstar on Mon Feb 23, 2009 5:09 am

I know it's not a solution, but it is a work around.

Try using xampp. A simple search in google will help you find it. I like it and it is pretty easy to use. I think it has the plugin built in. (I think)
Search, Just Do It.
User avatar
soccerstar
Clown
Clown
 
Posts: 501
Joined: Tue Jun 17, 2008 12:46 am

Next

Return to PHP / Web Guides, Scripts and tools.

Who is online

Users browsing this forum: No registered users and 7 guests

cron