473,385 Members | 1,344 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.

login

ich habe auf der seite ein loginskript gefunden und das mal
nachgebaut. leider bekomme ich immer fehlermeldungen.
Select * from User where Username='marco' and
Password='101186a9a44bc0354ed997696a6aefba'
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
result resource in /usr/local/httpd/htdocs/kunden/web770/html/test/login.php
on line 14
Unknown column 'marco' in 'where clause'Username or Password incorrect

das skript findet ihr hier:
http://www.4websites.de/tricks/artikel/133

ich denke es haut was nicht hin in diesen zeilen
$query="Select * from Table User where
Username='".$_POST["username"]."' and
Password='".md5($_POST["password"])."'";
$result=mysql_query($query, $connection);
$row=mysql_fetch_array($result);
if($row["id"])

aber habe nicht die ahnung und das nötige wissen. vielleicht weis
jemand von euch eine einfache lösung, wenn ja mailt mir an
lu*****@web.de

danke
Jul 17 '05 #1
2 1885
Someone translate...
Jul 17 '05 #2
Hi MArco!
Most of the people here do not speak german, so you might wanna try
de.comp.lang.php.datenbanken

On 25 Nov 2003 12:41:55 -0800, lu*****@web.de (Marco) wrote:
ich habe auf der seite ein loginskript gefunden und das mal
nachgebaut. leider bekomme ich immer fehlermeldungen.
Select * from User where Username='marco' and
Password='101186a9a44bc0354ed997696a6aefba'
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
result resource in /usr/local/httpd/htdocs/kunden/web770/html/test/login.php
on line 14
Unknown column 'marco' in 'where clause'
I'm surprised about that.
Username or Password incorrect

das skript findet ihr hier:
http://www.4websites.de/tricks/artikel/133

ich denke es haut was nicht hin in diesen zeilen
$query="Select * from Table User where
Username='".$_POST["username"]."' and
Password='".md5($_POST["password"])."'";
Can you do a var_dump($query) here please and post that (in english)
$result=mysql_query($query, $connection);
$row=mysql_fetch_array($result);
if($row["id"])

aber habe nicht die ahnung und das nötige wissen. vielleicht weis
jemand von euch eine einfache lösung, wenn ja mailt mir an
lu*****@web.de


Answers only in this newsgroup.

HTH, Jochen
--
Jochen Daum - CANS Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: koolyio | last post by:
Hey, could you please tell me what is wrong with my login script. I just started learning php. CODE: login.php <? session_start(); header("Cache-Control: private"); ?>
5
by: Simon | last post by:
Hi, I have a Login.php page that logs the user in and out. I has two forms within the page, (depending on what we are trying to do), either one to log in or out. The form calls itself using a...
1
by: Tom Jones | last post by:
Hi, I am using the HttpWebRequest and HttpWebResponse classes to pull information from a web server on the internet. I have an account on one of the webservers that I need to log into...
2
by: Beginner | last post by:
I know this is an old question, but searching all over the internet plus several MS security conferences, still haven't got a straight anwser. Basically, the login.aspx is on one dedicated server...
4
by: nicholas | last post by:
Hi, Got an asp.net application and I use the "forms" authentication mode defined in the web.config file. Everything works fine. But now I would like to add a second, different login page for...
2
by: IdleBrain | last post by:
Hello All: I used a Login control to authenticate a user to login. The problem is that when I login with good username & password, the login view would say that the login was successful. But...
6
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in...
4
tolkienarda
by: tolkienarda | last post by:
Hi all I work for a small webdesign company and we have remote hosting. i built a mysql database with phpmyadmin on the server. i then downloaded and modified a php login page. i am continuing to...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
13
by: Apostle | last post by:
Hi all, after thinking for sometimes, I thought it will be great opportunity to learn if I will start from scratch and build my own register/login system. Here is the thread that I will be posting...
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.