Hey whats up guys? I was using thenewboston tutorials on youtube and I am stuck. I was trying to connect to my database that i made.
<?php
//opens connection to mysql server
$dbc=mysql_connect('localhost','kybo13','****');
if(!$dbc)
{
die('Not connected: ' . mysql_error());
}
//select database
$db_selected=mysql_select_db("kybo13_game",$dbc);
if(!$db_selsected)
{
die("Cant connect: " . mysql_error());
}
//test
$query="UPDATE game SET email='hopethisworks' WHERE username='kybo13'";
$result=mysql_query($query);
?>
Thanks for your help guys.