Help - Search - Members - Calendar
Full Version: Help! I Dont Know What To Do...
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Kcoria91
alright so I'm not really brilliant webmaster, in fact i suck lol, but i need help with this. i know the answer is probably gonna make me feel pretty dumb lol but i cant get it to work.

the user who left instructions for the flashbook just left this at the end for us : 4. Open connections.php from includes folder and change the $host, $dbusername, $dbpassword according to your Mysql configuration. That's it!

Now i've tried and tried to get this to work by changing the values this person asked for + more but idk...overall i'm lost. heres what the user wants me to input :

<?php
//connection.php

$host = "localhost";//Replace with your host name
$dbusername = "xxxxxx";//Replace with your database user name
$dbpassword = "xxxxxx";//Replace with your database password
$dbname = "guestbook"; //Replace with your database name

function db_connect()
{
global $host,$dbusername,$dbpassword,$dbname;
if(!($link_id=mysql_pconnect($host,$dbusername,$dbpassword)))
{
echo("error connecting to host");
exit();
}
// Select the Database
if(!mysql_select_db($dbname,$link_id))
{
echo("error in selecting the database");
echo(sprintf("Error : %d %s",mysql_errno($link_id),mysql_error($link_id)));
}
return $link_id;
}

So what exactly do i do? unsure.gif
DroNix
Lets say your website is mysite.uuuq.com you've created a database named db and a user named user. You've also assigned the correct privileges to user. Zymic adds the name of your site to the beginning of your database name and username. So here's how your info would look like if your site was mysite.uuq.com

Website:
mysite.uuuq.com
Database Name: mysite_db
Database User: mysite_user

Back on your connections.php the info would look like this:

$dbusername = "mysite_user";//Replace with your database user name
$dbname = "mysite_db"; //Replace with your database name

Please note that you must change this info according to YOUR site.
Kcoria91
QUOTE(DroNix @ Jul 4 2009, 10:07 PM) *
Lets say your website is mysite.uuuq.com you've created a database named db and a user named user. You've also assigned the correct privileges to user. Zymic adds the name of your site to the beginning of your database name and username. So here's how your info would look like if your site was mysite.uuq.com

Website:
mysite.uuuq.com
Database Name: mysite_db
Database User: mysite_user

Back on your connections.php the info would look like this:

$dbusername = "mysite_user";//Replace with your database user name
$dbname = "mysite_db"; //Replace with your database name

Please note that you must change this info according to YOUR site.


Okay first of all, thanks for replying! I knew that's what i had to be typing in...but it still doesnt work. u get this message when i try to click on admistr.: Warning: mysql_pconnect() has been disabled for security reasons in /www/uuuq.com/k/c/9/kc91/htdocs/Guestbook/webadmin/includes/connection.php on line 12
error connecting to host

and this is all the guestbook does: http://kc91.uuuq.com/Guestbook/index.html

this is exactly what i typed in (i obviously had to take out the password here)

<?php
//connection.php

$host = "kc91.uuuq.com";//kc91.uuuq.com
$dbusername = "kc91_kevin";//kc91_kevin
$dbpassword = " ";//
$dbname = "kc91_guestbookdb"; //kc91_guestbookdb

function db_connect()
{
global $host,$dbusername,$dbpassword,$dbname;
if(!($link_id=mysql_pconnect($host,$dbusername,$dbpassword)))
{
echo("error connecting to host");
exit();
}
// Select the Database
if(!mysql_select_db($dbname,$link_id))
{
echo("error in selecting the database");
echo(sprintf("Error : %d %s",mysql_errno($link_id),mysql_error($link_id)));
}
return $link_id;
}
?>
DroNix
host is localhost

$host = "localhost"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.