Dcp-portal Problems

He has: 59 posts

Joined: Mar 2006

Hello everyone,
I am looking for somebodys advice or help on a problem i have installing DCP-Portal. The script has absolutely NO documentation as of yet and im stuck. Basically all you have to do is upload all the files, go to install.php, fill out a couple of details and it should work, YEH RIGHT!!
once i enter all my database settings, (which are definately correct), i push next, and a white page is displayed saying Fatal error: Call to undefined function: mysql_create_db() in /usr/home/fowd/public_html/install.php on line 36'

Can anybody offer any assistance or guidance on what i need to do...if someone is kind enough to perhaps log onto my server, and just get me through the installation bit i will do....errr, either some design work, hostings, links....whatever you want...i just REALLY need to get this sorted out.
Thank you very much!

Kind Regards,
Andy MacDonald

Busy's picture

He has: 6,151 posts

Joined: May 2001

Can you show us lines 35 and 36? if it contains username or password just put xxxx in place of them.

Most scripts require you to create the database first but this is not the error, the error is a missing function

He has: 59 posts

Joined: Mar 2006

lol you guys reply quickly on this forums...thanks for taking the time to help me out mate. the lines are....

$db = @mysql_select_db($_POST['m_name'], $conn);
   if (!$db) {
if (mysql_create_db($_POST['m_name'])) {
   echo "Database created successfully\n";
} else {
'

Kind Regards,
Andy MacDonald

Busy's picture

He has: 6,151 posts

Joined: May 2001

$db = @mysql_select_db($_POST['m_name'], $conn);
if (!$db) {
if (mysql_create_db($_POST['m_name'])) {
echo "Database created successfully\n";
} else {

change to

$db = @mysql_select_db($_POST['m_name'], $conn);
if (!$db) {
$sql = 'CREATE DATABASE $_POST[m_name]';
if (mysql_query($sql, $conn)) {
echo "Database $_POST['m_name'] created successfully\n";
} else {

The function mysql_create_db() is deprecated. It is preferable to use mysql_query() to issue a sql CREATE DATABASE statement instead.
source = http://php.net/mysql_create_db

He has: 59 posts

Joined: Mar 2006

Hello mate,

tried that, as soon as i point my browser to the install.php file now i am getting this error

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/home/fowd/public_html/install.php on line 38'

if you can will you be able to email me direct, or via msn mesenger please? My msn messenger address is [email protected], my email is [email protected]

Cheers mate.

Kind Regards,
Andy MacDonald

Busy's picture

He has: 6,151 posts

Joined: May 2001

make sure this line: $sql = 'CREATE DATABASE $_POST[m_name]';
doesn't have the single quotes around m_name

Is easier to work through it on here, I personally don't get a lot of time and posting on here allows others to pick up at diferent times (time zones).

Posting the code above/on line 38 would be helpful

He has: 59 posts

Joined: Mar 2006

hi mate,

thanks for your response again...after many hours wondering what was wrong all it boiled down to was that i was using the database name as "dcp4" instead of "fowd_dcp4". As soon as i changed this, the installation went through smoothly.

Once again, thanks a lot for your support in trying to get the problem sorted for me. Thank You!

Kind Regards,
Andy MacDonald

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.