Unexpected T_string
PHP Code:$query = “select * from users where username=’$username’ and password=’$password’”;

Unexpected T_string
PHP Code:$query = “select * from users where username=’$username’ and password=’$password’”;
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
PHP Code:$query = "SELECT * FROM `users` WHERE `username` = '".$username."' AND `password`= '".$password."'";
unexpected t-string again
I fail to see the issue?$error = “Bad Login”;
the line before the error:
if (mysql_num_rows($result) != 1) {
$error = “Bad Login”;
Last edited by Colin-Roberts; 03-02-2008 at 07:04 PM.
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
Use " not “
You're using the wrong symbol...
You're using “ when it's ".
;p thanks guys.
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
Is it possible using ajax or w.e to submit the form and if successfull show the members navi if not show the login again?
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
yeah..
You can use scriptaculous ajax.updater and QueryString method.
Coming and going...
Highers are getting the better of me
grr what's wrong with this?
How do i make it so it doesn't show the login after member stuff if there logged in?<?
if ($_SESSION['username'] = '".$username."'); {
echo("member stuff.");
}
include("login.html");
?>
Last edited by Colin-Roberts; 03-02-2008 at 07:31 PM.
.:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
.:.: Stand up for what is right, even if you stand alone:.:.
You really don't get PHP, lol.PHP Code:<?php
session_start(); // If this is the full document you require session_start
if ($_SESSION['username'] == $username)
{
echo("member stuff.");
}
include("login.html");
?>
Want to hide these adverts? Register an account for free!