Problem With Web // Problema Con La Web

Results 1 to 9 of 9
  1. #1
    Novice AlandrinoX is offline
    MemberRank
    Sep 2009 Join Date
    2Posts

    sad Problem With Web // Problema Con La Web

    ---------English:--------

    I have a problem with the web. What happens is that I am new to this I have a web server and some of tantra but in this Site and I get confused a lot of sql

    watch me throw this error when trying to open the Web:

    Code:
    Fatal error: Call to undefined function mssql_pconnect() in C:\AppServ\www\main\conec.php  on line 5

    and it says the file: conec.php

    Code:
    <?php
    function Conectarse()
    {
    global $link;
    if (!($link=mssql_pconnect("HOME\SQLEXPRESS","sa","123456")))
    {
    exit();
    }
    if (!mssql_select_db("UserLogin",$link))
    {
    exit();
    }
    return $link;
    }
    Conectarse();
    ?>
    Site admin also sends me an error

    [quote]Fatal error: Call to undefined function mssql_pconnect() in C:\AppServ\www\admin\includes\funciones.php on line 39[/code]

    and it says the file: funciones.php

    Code:
    <?
    include 'allow.php';
    function import_page()
    {
    	if (isset($_GET['page']))
    		if (file_exists('secciones/'.$_GET['page'].'.php'))
    			include 'secciones/'.$_GET['page'].'.php';
    		else
    			echo '<br><b>Not Available..</b>';
    	else
    		include 'secciones/account.php';
    }
    
    class TantraClass
    {
    	var $h_db;
    	var $result;
    	var $update;
    	var $db_host;
    	var $db_user;
    	var $db_pass;
    	var $db_tantra;
    	var $db_login;
    	var $db_bill;
    	
    	function TantraClass()
    	{
    		include 'includes/config.php';
    		$this->db_host = $db_host;
    		$this->db_user = $db_user;
    		$this->db_pass = $db_pass;
    		$this->db_tantra = $db_tantra;
    		$this->db_login = $db_login;
    		$this->db_bill = $db_bill;
    	}
    	
    	function init_db($db)
    	{
    		$this->h_db = mssql_pconnect($this->db_host,$this->db_user,$this->db_pass) or die('Can\' connect to mssql server..');
    		switch ($db)
    		{
    			case 'tantra':
    				@mssql_select_db($this->db_tantra,$this->h_db) or die('Can\'t choose database tantra..');
    			break;
    			case 'login':
    				@mssql_select_db($this->db_login,$this->h_db) or die('Can\'t choose database userlogin..');
    			break;
    			case 'bill':
    				@mssql_select_db($this->db_bill,$this->h_db) or die('Can\'t choose database bill..');
    			break;
    		}
    	}
    	
    	function Exec($sql)
    	{
    		$this->result = mssql_query($sql,$this->h_db);
    	}
    	
    	function Update($sql)
    	{
    		$this->update = mssql_query($sql,$this->h_db);
    	}
    	
    	function is_result()
    	{
    		return mssql_num_rows($this->result);
    	}
    	
    	function gArray()
    	{
    		return mssql_fetch_array($this->result);
    	}
    	
    	function close()
    	{
    		@mssql_close($this->h_db) or die('Can\'t close connection..');
    	}
    	
    }
    ?>
    Help please if anything is my e-mail is: alan_hp15@hotmail.com
    Last edited by omen; 28-04-10 at 01:04 PM. Reason: --


  2. #2
    Enthusiast Jairo34 is offline
    MemberRank
    Sep 2008 Join Date
    /home/Location
    38Posts

    Re: Problem With Web // Problema Con La Web

    Change this: if (!($link=mssql_pconnect("HOME\SQLEXPRESS","sa","12 3456")))
    for this: if (!($link = mssql_pconnect("HOME\SQLEXPRESS","sa","123456")))
    Last edited by omen; 28-04-10 at 01:02 PM.

  3. #3
    Novice AlandrinoX is offline
    MemberRank
    Sep 2009 Join Date
    2Posts

    Re: Problem With Web (Solucion) // Problema Con La Web (Solution)

    English:

    If anyone has this problem here is the solution (at least work for me):
    Code:
    The error:
    Fatal error: Call to undefined function: mssql_connect ()
    
    Is corrected as follows:
    
    This is because not properly edited the php.ini file, which is housed in the folder C: / Windows /
    
    Find the file you open it and find the line:
    ; Extension = php_mssql.dll
    
    And remove the ";" (semicolon) at the beginning to make it so:
    extension = php_mssql.dll
    
    Then find the line:
    extension_dir =. /
    
    and change the path to the location of the extensions that are usually in c: / php / extensions
    The line should look like this:
    
    extension_dir = c: / php / extensions /
    
    After having done all this just to save the file and restart the server to use either Apache or IIS
    Last edited by omen; 28-04-10 at 01:06 PM.

  4. #4
    Novice Broesel01 is offline
    MemberRank
    May 2010 Join Date
    1Posts

    Re: Problem With Web // Problema Con La Web

    Does'nt work here :(

  5. #5
    Apprentice LittleSaint is offline
    MemberRank
    Jul 2011 Join Date
    14Posts

    Re: Problem With Web // Problema Con La Web

    funciones.php on line 39 this is not working also anyone can help pls how to fix this problem any moderator ther pls help

  6. #6
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Problem With Web // Problema Con La Web

    Quote Originally Posted by Broesel01 View Post
    Does'nt work here :(
    Another option would be to downgrade your xampp client. The new program does not use mssql protocol. It uses sqlsrv in it's place. You will need to update the ntwdblib.dll for xampp too. Just research the steps online. Good luck.

  7. #7
    Apprentice LittleSaint is offline
    MemberRank
    Jul 2011 Join Date
    14Posts

    Re: Problem With Web // Problema Con La Web

    Quote Originally Posted by jbeitz107 View Post
    Another option would be to downgrade your xampp client. The new program does not use mssql protocol. It uses sqlsrv in it's place. You will need to update the ntwdblib.dll for xampp too. Just research the steps online. Good luck.
    how about my problem ? do you have any idea about it? how to solve this problem \funciones.php on line 39

  8. #8
    Tantra/Web Development jbeitz107 is offline
    MemberRank
    Mar 2012 Join Date
    USALocation
    1,471Posts

    Re: Problem With Web // Problema Con La Web

    Quote Originally Posted by LittleSaint View Post
    how about my problem ? do you have any idea about it? how to solve this problem \funciones.php on line 39
    First what web template are you using? I need to see the code and know what version of xampp you may be using. I will try to help you. But, on another note has anyone got a password change php setup they are willing to change or are they willing to look at my code to see what is wrong?

  9. #9
    Apprentice LittleSaint is offline
    MemberRank
    Jul 2011 Join Date
    14Posts

    Re: Problem With Web // Problema Con La Web

    Quote Originally Posted by jbeitz107 View Post
    First what web template are you using? I need to see the code and know what version of xampp you may be using. I will try to help you. But, on another note has anyone got a password change php setup they are willing to change or are they willing to look at my code to see what is wrong?
    this is for taney web problem i cant eneter accnt name its say problem in funciones.php on line 39 when i chaek the files its fine dont know the reaosn i cnat enetr any of the account i enter



Advertisement