Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:34
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  General Conversation (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis, Mattias Robo)
| | |-+  Problem!
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Problem!  (Read 1150 times)
Chris
Server what's that
*
Posts: 1



View Profile Email
« on: 03/28/02, 12:39 »

Hi

Can someone please give me the SQL Query to the Resgister and Login script.

I have tried looking at the picture and taking out the query but it never seems to work when i try to create the table!

Any help would be great.

Chris!
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 03/28/02, 18:50 »

What login and registration script?


An simple example of a registration SQL statement would involve the "INSERT" function such as:

//Connect to DB
$connect = mysql_connect($DBhost, $DBuser, $DBpass);
mysql_select_db($DBName, $connect);

// example Register SQL
$result = mysql_query("INSERT INTO yourtableName (UserName, Password, Email) VALUES ('$username' , '$password', '$email')", $connect);

// example Login SQL
$result = mysql_query("SELECT * FROM yourtableName WHERE UserName = '$userame' AND Password='$password'", $connect);

Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!