0

This is the beginnings of a login script that I've been working on, and I can't seem to figure out why I have this error. The error is said to be on line 10. Any help would be appreciated. I've changed the info in the variables used for connection just for security reasons. Thanks!

<?php
session_start();
/* Database config */

$db_host = //host;
$db_user = //username;
$db_pass = //password;
$db_database = //database; 

$link = mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_database, $link);

$username = $_REQUEST['username'];
$password = $_REQUEST['password'];

$data =  mysql_query("SELECT * FROM $tbl_name  WHERE username=$msuser AND password=$mspass");
$count = mysql_num_rows($data);


$username = $_SESSION['username'];
$password = $_SESSION['password'];


?>

Edited by rfrapp: n/a

3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by diafol
0

what's the error say?

Here's what it says:

Parse error: syntax error, unexpected T_STRING in /home/a1142446/public_html/php/login_process.php on line 10

0
$db_host = //host;
$db_user = //username;
$db_pass = //password;
$db_database = //database;

just to double check you got values instead of //host, and if so you have closed all your apostrophes and speech marks?

0
$db_host = //host;
$db_user = //username;
$db_pass = //password;
$db_database = //database;

just to double check you got values instead of //host, and if so you have closed all your apostrophes and speech marks?

Yeah, there are actuall pieces of information in place of the comments, and I've made sure that everything is closed

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.