Announcement

Collapse
No announcement yet.

Unconfigured Ad Widget

Collapse

Help Needed (PHP EXPERT)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Needed (PHP EXPERT)

    Assalam-o-Alaikum,

    Brother & sisters,

    main nay aik website banai hay PHP main. ab main us kay sath database file attach karna chahta hoon takey mera data online rehay, Forms to main complete kar chuka hoon, laikun database ki attachment aur coding kaisay karoon yeh samj nehan aa rehay, so please help me in this matter,

    Khalil bhai say specially request kay wo bhi help karen.

    Thanks in advance
    Muazzam Ali

  • #2
    Re: Help Needed (PHP EXPERT)

    Originally posted by almuez View Post
    Assalam-o-Alaikum,

    Brother & sisters,

    main nay aik website banai hay PHP main. ab main us kay sath database file attach karna chahta hoon takey mera data online rehay, Forms to main complete kar chuka hoon, laikun database ki attachment aur coding kaisay karoon yeh samj nehan aa rehay, so please help me in this matter,

    Khalil bhai say specially request kay wo bhi help karen.

    Thanks in advance
    Muazzam Ali
    wa alikum salam bhai waisy to main italy main ap ko phone number dy to doon per menga buhat hay pk sy..
    khair aap ka data base jo hay wo to upload hay aur plz batain k wo kis main banaya hay
    exel access ya pher mysql
    aur jo site upload hay os ka link b dain
    waisy main ap ko code dy raha hun database atach aur unatach karny ka try karian ager na huwa to pher inshaALLAH kuch aur hal nikal aye ga...
    PHP Code:
    mysql_connect(servername,username,password); 
    PHP Code:
    ParameterDescriptionservernameOptionalSpecifies the server to connect to. Default value is "localhost:3306"usernameOptionalSpecifies the username to log in with. Default value is the name of the user that owns the server processpasswordOptionalSpecifies the password to log in with. Default is "" 
    maslann
    PHP Code:
    <?php$con = mysql_connect("localhost","peter","abc123");if (!$con)  {  die('Could not connect: ' . mysql_error());  }// some code?>
    aur last main conection close b karna hay yeh b yaad rakhna bhai
    PHP Code:
    <?php$con = mysql_connect("localhost","peter","abc123");if (!$con)  {  die('Could not connect: ' . mysql_error());  }// some codemysql_close($con);?>
    to creat database
    PHP Code:
    CREATE DATABASE database_name 
    PHP Code:
    <?php$con = mysql_connect("localhost","peter","abc123");if (!$con)  {  die('Could not connect: ' . mysql_error());  }if (mysql_query("CREATE DATABASE my_db",$con))  {  echo "Database created";  }else  {  echo "Error creating database: " . mysql_error();  }mysql_close($con);?>

    Comment

    Working...
    X