if (!function_exists('mysql_connect('localhost', 'root', 'sushma')'))
{
    die(
        '<span class="fatalError">Fatal error: ' .
        'MySQL extension is not loaded. Check your settings in php.ini.</span>'
    );
}

line 67 is where the parse error is reported..where is
the error????cann anyone help me??

Recommended Answers

All 2 Replies

Try:

if (!function_exists(mysql_connect('localhost', 'root', 'sushma')))
{
    die(
        '<span class="fatalError">Fatal error: ' .
        'MySQL extension is not loaded. Check your settings in php.ini.</span>'
    );
}

Look up the function_exists in php manual, it takes one parameter -- a function name, so:

if ( !function_exists('mysql_connect') )
{
    die(
        '<span class="fatalError">Fatal error: ' .
        'MySQL extension is not loaded. Check your settings in php.ini.</span>'
    );
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.