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

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>'
    );
}
Jump to Post

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.