whats wrong with this? help please

Shrinath

Member
Oct 27, 2007
238
36
0
im following a video tutorial and they type these stuff. i did the same as them, but its not working for me. any idea why?:(:(:(

db_config file is like this.

<?php
$db_host = "localhost";
$db_user = "php";
$db_password = "f00";
$db_name = "mydb";
?>


and when i open this, nothing appears on the page. anything wrong in this?

<?php
require ($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die ("error connecting");
echo "connection made";
?>
 

cm2004cm4ever

Member
Aug 21, 2008
1,079
88
0
im following a video tutorial and they type these stuff. i did the same as them, but its not working for me. any idea why?:(:(:(

db_config file is like this.

<?php
$db_host = "localhost";
$db_user = "php";
$db_password = "f00";
$db_name = "mydb";
?>


and when i open this, nothing appears on the page. anything wrong in this?

<?php
require ($_SERVER["DOCUMENT_ROOT"]."/config/db_config.php");
$connection = mysql_connect($db_host, $db_user, $db_password) or die ("error connecting");
echo "connection made";
?>


hari ithin ena error eka mokakda uba database eka heduwada?

mehema try karapan
$db_host = "localhost";
$db_user = "root";
$db_password = "";
$db_name = "mydb";
 

Shrinath

Member
Oct 27, 2007
238
36
0
tutorial eke inna ewun oka gahuwama "connection made" kiyala enawa. mama gahuwata monawath enne nane :baffled:
nikan page eka blank
 

navara89

Junior member
  • Oct 6, 2010
    60
    1
    8
    database eka haduwada balanda. "connection made" kiyana eka nam display wenda one. php page eka load karama error ekak enne nadda..??
     

    Shrinath

    Member
    Oct 27, 2007
    238
    36
    0
    database eka haduwada balanda. "connection made" kiyana eka nam display wenda one. php page eka load karama error ekak enne nadda..??

    ow database ekak haduwa. kisima ekak enne na. connection error kiyala enneth na :dull:
    mama video tutorial ekak follow karagena yanne. eke inna ewun gahapu widiyatama thamai mamath kare. unge eka wada karanawa. mage wada karanne na.
    mama wena tutorial site ekakin code ekak copy karala aran baluwa, ewa gahuwata hariyanneth na.
    can it be an issue with my browser or OS?
     

    cm2004cm4ever

    Member
    Aug 21, 2008
    1,079
    88
    0
    maybe with your server, xampp or whatever
    if you are running multiple servers such as asp.net support, you have to stop this servers; otherwise apache won't start and displays a blank page.. if you are running skype, try disabling "Use 80 or 443 as alternative......"
    hope this will help you
     
    Last edited: