Parse Error Help


Posted on 16th Feb 2014 07:03 pm by admin

Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line 21

Heres the code:
Code: <body bgcolor="black">

<head>

<title>Unamed Project</title>

<link rel="stylesheet" type="text/css" href="http://bleej.exofire.net/main.css" />

</head>

<div style="background-color:green; text-align:center">

<a href="index.html">Index</a>

</div>








<?php
@mysql_connect("localhost", "bleej", "*********") or die("Cannot connect to DB!");
@mysql_select_db("tbl_lgin") or die("Cannot select DB!");
[b]$sql="INSERT INTO login_tbl (loginid, password and email) VALUES (".$loginid.”,”.$password.”,”.$email.”)”;[/b]
$r = mysql_query($sql);
if(!$r) {
$err=mysql_error();
print $err;
exit();
}
?>

</body>
</html>

Any help? I can't see anything wrong

No comments posted yet

Your Answer:

Login to answer
216 Like 25 Dislike
Previous forums Next forums
Other forums

Validation
Hello

I know this is a really vag question.

I need to have a input field on a form th

help with Get_
ok some how this is not working i am not sure what i am doing wrong here but what this does is when

Working with Global Variables
hi, I'm not really sure why the following code is returning a "Call to a member function getBan

generating all possible random letters
hi'

how can i randomize the letters a,b,c,d,e all possible ways, and i want to print the res

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

What is SAP Avatar ?
Hi All,

This G.Satish , my boss asked me to explore on SAP Avatar. I searced in internet

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

User feedback after MySQL query has been executed
Hi all, I've just registered on PHPFreaks because I've got a question that I simply can't work out b

PHP & Images [Resize, Crop, Save]
Hey! Well I have a little dilema, hoping I could find some guidance.

I have a CMS and on the

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash