Help PHP

Help PHP

by Yared Mulugeta -
Number of replies: 0
On my local server it's work well but when i upload to the serveur I recieve this message
Notice
: Only variable references should be returned by reference in /home.2/asbeza/www/plaincart/library/database.php on line 9 and line 25
The php code is here
--------------------------------------------------------------------------------------
<?php
require_once 'config.php';

$dbConn = mysql_connect ($dbHost, $dbUser, $dbPass) or die ('MySQL connect failed. ' . mysql_error());
mysql_select_db($dbName) or die('Cannot select database. ' . mysql_error());

(line 9)function &dbQuery($sql)
{
    return mysql_query($sql);
}

function dbAffectedRows()
{
    global $dbConn;
   
    return mysql_affected_rows($dbConn);
}

function &dbFetchArray($result, $resultType = MYSQL_NUM) {
    return mysql_fetch_array($result, $resultType);
}

function &dbFetchAssoc($result)
{
 (line25)   return mysql_fetch_assoc($result);
}

function &dbFetchRow($result)
{
    return mysql_fetch_row($result);
}

function dbFreeResult($result)
{
    return mysql_free_result($result);
}

function dbNumRows($result)
{
    return mysql_num_rows($result);
}

function dbSelect($dbName)
{
    return mysql_select_db($dbName);
}

function dbInsertId()
{
    return mysql_insert_id();
}
?>
----------------------------------------------------------------------------------------
Is theire some one to help me?
Yared

Average of ratings: -