- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
#Parse error: syntax error, unexpected '$Email' (T_VARIABLE) in C:\xampp\htdocs\test1\connect.php on line 3 <?php if(isset($_POST ["password"]) $Email=$_POST['email']; $password=$_POST['password']; $conn = new mysqli('localhost','root','','test1'); if($conn->connect_error){ die('Connection Failed : '.$conn->connect_error); } else{ $stmt = $conn->prepare("insert into login(email,password) values(?,?)"); $stmt->bind_param("ss",$Email,$password); $stmt->execute(); echo "login Sucessfully..."; $stmt->close(); } ?> |
|
hi!!m doing my college project on "online digital photo printing"where a customer can upload,edit and order photos at home the problem i am facing is:-i want to provide my users a "price list of photo type(passport size=rs XXX,stampsize=rs YYY)" and these prices should be entered by "admin"in a form..that gets … |
|
how to show data from database in 10 hours ago ex: Article id | title | date ( using datetime) | 1 | data1 | 2014-02-1 01:00:00 2 | data2 | 2014-02-1 07:00:00 3 | data3 | 2014-02-1 11:00:00 4 | data4 | 2014-02-1 12:00:00 Now = 2014-02-1 12:00:00 query … |
|
I am using the linux OS to create an web application using PHP. In this I want to upload a file and move to a folder.I want to move the file up to the size of 25 MB. I used the code ini_set('max_upload_filesize', '25M'); But its not working. Is there … |
|
OK gang! I have another stumper! I want to add a variable to an array from within a function and I will not know the variables original name so how can I find this? For instance: [CODE] function AddVariable($vartoadd) { $varlist[] = $vartoadd; } $domain = http://www.dodatingsiteswork.com; AddVariable($domain); [/CODE] Once … |
|
[CODE]<? ob_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Guitar Wars - Add Your High Score</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <h2>Guitar Wars - Add Your High Score</h2> <?php require_once('appvars.php'); require_once('connectvars.php'); if (isset($_POST['submit'])) { // Grab … |
|
Hi Sir, My name is tariq , i am intrnee developer in my company . i have project EPS which i will make using joomla cms mvc so i need help more because i am intrnee please must be help me any one thank you very for this kind of … |
|
when i try to access this login page..an empty page open...please help with this coding [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Latest</title> </head> <body> <?php include("db.php"); if (isset($_POST["submit"])) { $username=$_POST["username"]; $password=$_POST["password"]; $query="select * from latest where username='$username' && password='$password'"; … |
|
Firstly, Sorry for the long post :) Im currently creating a training database for use within the business (not done many getting used to coding) I used MySQLMaestro to construct the datagrid and have modified it to suit most my needs. however i have one issue that i cant resolve. … |
|
2day i hve another problem ..this is my code [CODE]<?php $data = mysql_query("SELECT * FROM entries ORDER BY id DESC LIMIT $x , 3") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { echo" <div id=\"containing\">s <h1>".$info['contents']."</h1> <div id=\"parent\" > <p >".$info['author'] ."</p> </div> </div> <?php echo "<a href=\"$info['contents'].php\" >READ MORE</a>"; … |
|
Hello, I'm trying to edit the style of a normal html table in Joomla/K2 that outputs the author, title of the article and date. The problem is (I thought joomla does this automatically) is that the header of the table keeps repeating on every new record. [URL="http://i.imgur.com/sopAi.jpg"]Screenshot[/URL] I realized that … |
|
[B]Good Morning, I have a CSV file with thousands of rows of data, and I want to have this data uploaded into a table in a MySQL database. I also want an area where the file could be selected from the computer for the data to be uploaded. Could this … |
|
Hi all I have been looking at the following upside down and sideways for a day now. I have a PHP page that is making use of a session value in an SQL query. The query requires an integer (it's searching on the numeric index of a table in the … |
|
Hi i have problem in my login code. Firts someone fill in login informations this is checking code [CODE] // mysql connection $username=$_POST['username']; $password=md5($_POST['password']); $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $sql="SELECT * FROM users WHERE username = '$username' and password = '$password'"; $result=mysql_query($sql); $count=mysql_num_rows($result); … |
|
Hi, I am new to PHP. I have installed apache, PHP 5.2 and MySql. Plz tell me How I run PHP programs?? Thanks & Regards, Revathi |
|
Hi Everyone I was just wondering what would be the cost of average website (images/text/etc) that contains frames and 15 webpages which incorporates HTML and CSS and minor FLASH? Then seperately how much would it cost if it was connected to a database using PHP and MYSQL. The database would … |
|
I had written javascript calculation for hotel accommodation system. The calculation part is working in Mozila fire fox, but it is not working in IE6. I checked the internet options in IE6 and enabled active scripting, still it is not working.Is there any other option. Please give me the solution … |
|
Well, I am making an upload for people who make games with the Unity game engine. Basically, the engine will build the game and produce an html file and .unity3d file. here is my html form: [CODE]<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Index file:</label> <input type="file" name="file" id="file" /> … |
|
Hi guys Wondering if someone could give me a hand with another problem I'm currently having. A little background first... I'm trying to pick up a daily report which is in XML format via a URL. I then need to parse that data and insert it into a MYSQL table. … |
|
|
I have a text file and i want it to open and add all the line to an array. Which function is used in php for that task?? Which separator is used for a new line..?? Can any one help... |
I've got what I think must be a pretty simple question, but it's my first time doing something like this. Here's my situation. I have a simple database. It's a dictionary of words. I want to have a form that I can enter a word into. Once I do that, … |
|
Hey, I have yet another question, so here it is. I have a roster page, and i have multiple players on the page. The players each have a unique playerid stored in the database. Now what i want to do is link up their name on the roster list that … |
|
I have been working on this for a while now and have had no luck. I have tried this code on 2 servers and they both render the same results: everything loads up to the title and description. Does anyone know what could possibly be the problem and help me … |
|
Dear All, I am new to PHP. I would like to include video (Flash Videos) in the website using PHP. Can u please help by giving the code. Saji |
|
i saw that most of the facebook applications are developed on php so i also want to create a social networking application so i wanna know which language is suitable for social networking application PHP or .NET <URL SNIPPED> |
|
[code] <?php if(isset($_POST["send"])) { $name = $_POST["name"]; $email = $_POST["email"]; $msg = $_POST["msg"]; echo(" Hello!<br />"); if(empty($name)) { echo(" - There was no name!<br />"); } if(empty($msg)) { echo(" - There was no message!<br />"); } // IF THEIR ARE NOT EMPTY if(!empty($name) && !empty($email) && !empty($msg)) { //code for … |
|
I'm interested in learning more about PHP and MySQL. What source would you guys reccomend? I'm looking for something online that can first teach my PHP a bit better then the relation with MySQL. I don't want the main PHP site but some eBook or something maybe you guys can … |
|
Hello, Is it okay to save credit card data in the database. I know it will be password protected but still, it will be a disaster if someone ever hacks in. How do real world companies(mine is school project) save their customer's credit card information? Thank you in advance. |
|
Hello All, Is there a way how we can pass a PHP variable whose value has been retrieved from MySQL database to the next page? Initially I tried this which didnt help me anyway. [code=PHP] // if user login information is CORRECT then redirecting them to the user home page … |
|
Ok short of re-inventing the wheel here i wanna know if there are any features you would like to see implemented in a CMS that perhaps you havent seen elsewhere. I have a final year project to undertake and aswell as this being useful for myself and my own clients … |