PDA

View Full Version : when creating a high score table in php. do i include the database name


hansolo
06-15-2010, 06:27 PM
<?php


$host= localhost
$user = me
$pass = mine ( i guess this is the password used on my machine)

$table



?>

when creating a high score in php on a localhost machine
do i include the databasename.im not sure i have a database name
as it is local

in the tutorial its include the "$database ="

Im not sure if i should. i dont know what the database number is. dont know how to include the database if it important to include.

hansolo
06-20-2010, 07:44 PM
yes you do forum closed

$host= localhost
$user = 'username'
$pass = 'password'
$db_name ='datbase name here'
$table='tablename in ur database'

thread closed

This is the information to connect to the database ok. i have answered it just in case any 1 has a similar problem.