Official Everybody Edits Forums

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.

#1 Before February 2015

SamToJa
Guest

Is there any php master?

[EDIT] Deleted.

Last edited by SamToJa (May 11 2014 7:19:34 am)

#2 Before February 2015

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,658

Re: Is there any php master?

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

#3 Before February 2015

Tako
Member
From: Memphis, Tennessee, USA
Joined: 2015-08-10
Posts: 6,663
Website

Re: Is there any php master?

Moved to Off-topic.


Yeah, well, you know that's just like, uh, your opinion, man.

Offline

#4 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,575

Re: Is there any php master?

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

SamToJa 1423676058285374

Board footer

Powered by FluxBB

[ Started around 1738846996.3221 - Generated in 0.038 seconds, 13 queries executed - Memory usage: 1.39 MiB (Peak: 1.49 MiB) ]