/    Sign up×
Community /Pin to ProfileBookmark

I can’t seem to find my error

Hi, I need another pair of eyes to look over this as I have been seeing code for too long and I am missing my mistake. It is probably something obvious that I just can’t see. Thanks,

[code=php]

$new_user = “INSERT INTO `users` (`user`, `pass`, `email`, `admin`)
VALUES (‘” . $_POST[‘name’] . “‘, ” . md5($_POST[‘new_pass_1’]) . “‘, ‘” . $_POST[’email’] . “‘, ‘0’)”;

mysql_query ($new_user) or die (“Error in query: $query. ” . mysql_error());

[/code]

The error I am recieving is:
Error in query: . You have an error in your SQL syntax near ”, ‘[email protected]‘, ‘0’)’ at line 1

Thanks for any help!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@CapitalCauthorAug 31.2005 — Damn, found it... sorry for wasting time/bandwidth.
×

Success!

Help @CapitalC spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...