Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Pages: 1
[EDIT] Deleted.
Last edited by SamToJa (May 11 2014 7:19:34 am)
All code is wrong.
Try this:
<?php $db = mysql_connect (?localhost?,?root?,??) or die(?Could not connect to db?); mysql_select_db(?tutorial?,$db)or die(?No Database Selected?); ?>
Dont fogot to +rep because i have -4...
Last edited by The Doctor (May 2 2013 12:46:24 pm)
Everybody edits, but some edit more than others
Offline
I believe your problem is those quotations marks. When you replace all your funny quotation marks ? with normal looking ones " then all the errors go away.
$db = mysql_connect("localhost", "root", "") or die("Unable to connect to $site"); if(!$db) die("no db"); if(!mysql_select_db("tutorial",$db)) die("No Database Selected");
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
Pages: 1
[ Started around 1738846996.3221 - Generated in 0.038 seconds, 13 queries executed - Memory usage: 1.39 MiB (Peak: 1.49 MiB) ]