Jump to content

URGENT HELP!!


jdproject

Recommended Posts

I am creating a member site and I need help with coding the database. Here go the code

 

<?php
function connect(){
$DB_USER =  "root";
$DB_PASSWORD = "";
$DB_HOST = "localhost";
$dbc = mysql_connect ($DB_HOST, $DB_USER, $DB_PASSWORD) or $error = mysql_error();
mysql_select_db("membership") or $error = mysql_error();
mysql_query("SET NAMES `utf8`") or $error = mysql_error();

if($error){echo "<!-- $error -->";}}

function disconnect_data(){
@mysql_close($dbc);
@mysql_close();
}
?>

I am suppose to fill it in with my database info but idk what to fill in! help me please! where do i enter the info!

Link to comment
https://forums.phpfreaks.com/topic/237754-urgent-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.