PHP Myinvoice Script...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

djreddog
Forum Newbie
Posts: 10
Joined: Fri Sep 29, 2006 12:32 pm

Post by djreddog »

twigletmac | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


it is not that large I will post it below.


this is my login.php

Code: Select all

<?
include("inc/config.php");
$connection = mysql_connect($hostname, $user, $pass) or die ("Unable to connect!");
$query = "SELECT * FROM clients WHERE name = '{$_POST['name']}' AND password = PASSWORD('{$_POST['password']}')"; 
$result = mysql_db_query($database, $query, $connection);
if (mysql_num_rows($result) == 1)
	{
	session_start();

	$_session["client_id"] = $client_id;
	$_session["client_name"]= $client_name;
	$_session["client_email"] = $client_email;
	$_session["client_ref"] = $client_ref;
	$_session["client_title"] = $client_title;
	list($clientid, $name, $pass, $email, $ref, $title) = mysql_fetch_row($result);

	header("Location: menu.php");
	mysql_free_result ($result);	

	mysql_close($connection);
	}
else

	{
	mysql_free_result ($result);	
	mysql_close($connection);

	header("Location: index.htm");
	exit;
	}
?>
twigletmac | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
djreddog
Forum Newbie
Posts: 10
Joined: Fri Sep 29, 2006 12:32 pm

Post by djreddog »

Anyone have any other idea on this. I really need to take care of it badly... Any help would be great.

Thanks
Derek
djreddog
Forum Newbie
Posts: 10
Joined: Fri Sep 29, 2006 12:32 pm

Post by djreddog »

Is anyone around today that might be able to give me some light on what I am missing? Please, I thank you very much.

Derek
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

yes send me pm
Post Reply