473,385 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Parse error: syntax error, unexpected '$email'

1
how can id fix this error from this code

<!DOCTYPE html>
<html>
<head>

</head>
<body>

<form method="POST">

<input type="email" name="email" placeholder="email" ><br><br>

<input type="submit" name="Delete" value="Delete">


</form>

</body>
</html>


<?php

require connection.php


$email;
$sqlDelete = "DELETE FROM `users` WHERE `email`= ' ".$email." ' ";

$result = mysql_query($con, $sqlDelete);

if($result) {

echo ('Successfully Deleted');
}
else
{
echo('Not Delete Successfully');
}



?>
Jul 24 '19 #1
0 1406

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: FightClubDiego | last post by:
Hey.. I've been working on these sign up / log in forms for my new Game Site, and everything else in the game works but the registration!! I keep ketting the unexpected $end and Im tired of it! Here...
3
by: broll911 | last post by:
I am gettin a error message on this script can someone help me. I am a complete newbie on this stuff. Thanks in advance for any help you can give me. here is the error. Parse error: syntax error,...
1
by: Pete Burns | last post by:
Creating a registration form and am getting a parse error on the line in the html form code for email address?! Any thoughts please. // Check for a first name: if (empty($_POST)) {...
3
by: SUNN | last post by:
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /Users/Sunn/Song/usersong/profile.php on line 113 This is the line 113 <script...
9
by: togoode | last post by:
Hello everyone, I'm new to php and to forums so please be gentle. I'm trying to create my first form and php script for a website that will allow the user to send their info to me in an email....
7
by: aquilina | last post by:
This is my code..unexpected T_VARIABLE in C:\wamp\www\job_detail.php on line 15 <div class="h3">Features</div> <div class="mainbox"> <ul id="features"> <?php $con =...
2
by: vivekphp | last post by:
<?php $auth = 0; if(isset($_SERVER)) { $uname = $_SERVER; $pwd = $_SERVER; $fp = fopen("user.txt","r"); while($line = fgets($fp))
2
by: Cody DeWert | last post by:
My code (from a template) is saying: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' When i open the .php in dreamweaver, it confirms the error. the code is: <?php ...
1
by: petipeti156 | last post by:
Parse error: syntax error, unexpected '$true' (T_VARIABLE) in C:\xampp\htdocs\download\register.php on line 19
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.