hi:) I want the script to check the db table to see if there is the same username as what the user has submit with the register form, then stop the script from registering, but if the user has submited a new username, then registering. I think the script should chack db and store all usernames in Array, and then in the If part check the value of $username with all values of that Array but i don't know how to do that. This is my script but it need to be edited: $username = $_POST['username']; $sql = ("SELECT Username …

Member Avatar
Member Avatar
+0 forum 2

Hi! Newbie on Java. I'm doing this assignment for a cash register program. Our professor just explained what we're gonna do and stuff. Here's what i understood: 1.)Sales report (my code appears on the first diag box) Product ID Product Name Quantity Price 2 Stuff 100 3 Stuff 100 4 Stuff 100 5 Stuff 100 2.)Prompt the user to enter product ID and quantity needed. ex: ID: 2 Quantity needed: 5 3.)Present the new sales report. ex: Product ID Product Name Quantity Price 2 Stuff 95 3 Stuff 100 4 Stuff 100 5 Stuff 100 -------------------------------------------------------------------------------------------------------------------- Here's what i've done …

Member Avatar
Member Avatar
+0 forum 5

I am trying to register two different userinfo with dropdown but getting some error when i click on submit butto. I am newbie in php.Please help me solving this error... My database is: id int(2) Primary Key type char(2) cname varchar(55) uname varchar(55) mail varchar(55) pswd varchar(55) address varchar(255) zip int(6) regtime datetime conn.php file <?php $host = 'localhost'; $user = 'root'; $pass = ''; $dbname = 'star'; $con = mysql_connect( $host,$user,$pass ) or die('Unable to connect'); mysql_select_db( $dbname ) or die('Unable to select database'); ?> register.php <?php require('include/conn.php'); //include db connection $error = array(); //define $error to prevent error …

Member Avatar
Member Avatar
+0 forum 8

please send me the code to generate an auto mail once the user clicks on the register button my register fields are first name,last name,date of birth,emailid i need the code to generate the password from the form information and send password and username to this emailid provided by the user.... the password generated should be valid for 3 days so once the user clicks on the link in the email he should be asked to change the password just lik how daniweb does please help me to do this using php please send the code

Member Avatar
Member Avatar
+0 forum 2

Heelloooo good day. Thanks for seeking to help. I am creating a Java program(obviously). At the end of my work I wish to install it as (a)an .exe file. However I wish that after its installation, file type association would have been setup automatically(I phrased that latter part of the statement like that, because I'm not sure if file association can be coded, or if it must be accomplished via other tools). I have ruled out JWS(Java Web Start) though. SO once again: 1. Program must be a(an) .exe file. 2. And the installation process should seamslessly create the file …

Member Avatar
Member Avatar
+0 forum 6

# Creating a register and login page, by creating a mysql database and all php files. # ## I was reading a [thread that is dead](http://www.daniweb.com/web-development/web-design-html-and-css/threads/97183/to-create-a-registration-page-and-login-page) now, so i started this one: ## **Simple PHP login:** Create a database (mysqladmin) Name the table "dbUsers." It will need 4 fields: Name Type Addition id int(10) Primary Key, AUTO_INCREMENT username varchar(16) Unique password char(16) email varchar(25) **Create a new file and name it dbConfig.php** This will file will connect to the database <? // Replace the variable values below // with your specific database information. $host = "localhost"; $user = "UserName"; $pass …

Member Avatar
Member Avatar
+0 forum 7

I am trying to figure out the way to use the nested loop in a proper way but so far i am failed, The loop run to infinity when i run the program which i definitely don't want to do, here is my code, .MODEL SMALL .STACK 100H .DATA var1 DB '*$' .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX MOV CX,10 LEA DX, var1 ; load the string MOV AH, 9 L2: L1: INT 21H Loop L1 DEC CX JNZ L2 MOV AH, 4CH ; return control to DOS INT 21H MAIN ENDP END MAIN …

Member Avatar
Member Avatar
+0 forum 7

This program asks the user to enter pricer for items. The user enters a price of 0 to stop. The program then prints a reciept including a list of items bought arranged from least to most expensive, and a total that includes 5% sales tax. I am lost can anyone help?

Member Avatar
Member Avatar
+0 forum 3

Hello, I am solving the assignment by Faculty Dean.but I face with that problem CS=1000; AX=0001; IP=0006; SP=0038; DS=2000; BX=0004; BP=0005; ES=4000; CX=0005; SI=0008; SS=5000; DX=4477; DI=0009; SUB [BX],CL; and another problem ADC DL,[BX]; footnote:these problems do not depend on each other

Member Avatar
Member Avatar
+0 forum 3

hai everyone..i have run this file in my server.the following error is display Notice: Undefined index: name in F:\wamp\www\examples1\register.php on line 8 Notice: Undefined index: username in F:\wamp\www\examples1\register.php on line 9 Notice: Undefined index: emailid in F:\wamp\www\examples1\register.php on line 10 Notice: Undefined index: password in F:\wamp\www\examples1\register.php on line 11 Notice: Undefined index: cpassword in F:\wamp\www\examples1\register.php on line 12 Anyone help me.. <?php $host ='localhost'; $user ='root'; $password =''; $database ='dta'; $conn = mysql_connect($host,$user,$password)or die ('server is not connect'); mysql_select_db($database,$conn); $name = mysql_real_escape_string($_POST['name']); $username = mysql_real_escape_string($_POST['username']); $emailid = mysql_real_escape_string($_POST['emailid']); $password = mysql_real_escape_string($_POST['password']); $cpassword = mysql_real_escape_string($_POST['cpassword']); if(isset($_POST['submit'])) { $query = " insert …

Member Avatar
Member Avatar
+0 forum 8

I have a a few callback functions. i need to register them as a list. And callback all the registered functions in a main after a certain task is done. I am new to callback functions. Please shed some insight on this xcallback(register_callbackfunctions); ycallback(register_callbackfunctions); register_callbackfunctions()//not too sure what goes in as the parameters here { //create the list of the functions } int main(){ if( certain_task_is_done){ //callback all the functions in the list that was registered } }

Member Avatar
Member Avatar
+0 forum 2

Hello community, I was wondering if there is a free way to get website traffic for my websites. ##lol i have 6 websites:## [snipped] And i was wondering if there is a way to get people to want to register. Please help.

Member Avatar
Member Avatar
+0 forum 6

When i am trying to register the DLL(php_printer.dll) using regsvr32 the error which i come across is -- (Loadlibrary failed. The specified module could not be found). Why i am not able to install? I really struck with this problem. Any help is really appreciated.

Member Avatar
Member Avatar
+0 forum 1

Here's the problem, I was wondering if i am right to assume that when a three-digit input is entered, i.e. 123, then the string 1 will be stored to al, 2 to ah, but i'm not sure where the 3 goes, or if ever it's plain wrong to look at the problem that way. Here's my plan, ask for 3-digit number, access the digits separately, convert to integer, manipulate the digits separately, then check if greater than 100, 175, and so so.

Member Avatar
Member Avatar
+0 forum 5

Hi, i am trying to learn how to create login and register page on my own. But i am having any luck with it. can any one help me from start to finish? and by start to finish i mean just the login, register and database part, not the whole website. you will be also helping me with debuging php code. If any one is interested just send me a private message and we can go from there.

Member Avatar
Member Avatar
+0 forum 2

Hello, I would like to know how can I put a binary number such as 110 in a register in MIPS? Thanks,

Member Avatar
+0 forum 0

need to check an SQL Server database (not asp.net membership) to see if an email is already in use before allowing the user to register. I have tried using the information in this website but it does not seem to work. Your help will be much appreciated

Member Avatar
Member Avatar
+0 forum 2

Greetings! I have what I guess is a simple problem with a simple php code. What I want, is that with a simple form, the name and the password that are entered, are saved in a database. I have a form, and the action ="Process_Form.php" calls this file. Then, with $_POST array I can retrieve the data. With these data saved in variables, I want to move them to a database. Here's the problem. I'll show you both codes, and I hope you can see the mistake. Code from the form: [CODE] <? echo "<form id='form1' name='form1' method='post' action='Procesar_Orden.php'> <label>Usuario …

Member Avatar
Member Avatar
+0 forum 5

I have the following CashRegister class where i must implement 3 methods: -getSalesTotal total up sales for the day -getSalesCount total number of sales for the day - rest a reset method that returns all instance variables to 0 Here is my code any help on mistakes i may have made is great, but my real problem is that i keep getting missing return statement when i try to compile the program. TY [CODE]/** A cash register totals up sales and computes change due. */ public class CashRegister { private double purchase; private double payment; private double purchaseTotal; private double …

Member Avatar
Member Avatar
+0 forum 4

Hey everyone, I am having difficulty parsing digits in java. By that I mean that I am trying to make a program print out the number of bills the user recieves when he/she recieves change after there payment, (Cash register). Here is the code i've created to do this for me, it runs perfectly but it always ends up giving out the wrong amount of change. double change = payment - totalcost ; double hundredbills = change/100; change = change%100; double fiftybills = change/50; change = change%50; double twentybills = change/20; change = change%20; double tenbills = change/10; change = …

Member Avatar
Member Avatar
+0 forum 1

hello I am making a login/register system for my website so far for the register php code i have: [CODE] <?php include ("config.php"); /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $username = $_POST[username]; $password = $_POST[password]; $email = $_POST[email]; $conf_email = $_POST[confirm_email]; $query = "INSERT INTO site_users_info (username, password, email, confirm_email) VALUES('$username', '$password', '$email', '$conf_email')"; $stmt = $mysqli->prepare($query); if(!$stmt){ echo "Problem Preparing Query!"; } $stmt->execute(); $validatequery = "SELECT * FROM site_users_info "; $result = mysql_query($validatequery) or die(mysql_error());; $num_rows = mysql_num_rows($result); ?> [/CODE] and here is the config file: …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone. I have a program that is driving me crazy. It is a cashier change return where the user enter the amount owed and the amount paid and when he/she press calculate the program should display the change due as well as the number of Dollars, Quarters, Dimes, Nickels, and pennies returned to the customer. When I run the program sometimes it gives me the right output and others it gives wrong output and it rounds the output. I just want to let you know that I have the option strict on. I will paste the code below please …

Member Avatar
Member Avatar
+0 forum 4

Hello, like before, I'm still trying to make a register page with login and logout. Here's the link to my server (If I'm not allowed to share links please remind me.) [url]http://fifarulez.dyndns.org/hacks4all.wapzan.com/registration/[/url] After the registration it will give 2 warnings. ( ! ) Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 40 and ( ! ) Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 40 I tried to fix it by changing the code in: [CODE] // dbConfig.php is a file that contains your // …

Member Avatar
Member Avatar
+0 forum 9

I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It should have the following methods: AddTransaction(amount) – add an amount to a running total and increments the number of transactions TransactionCount() – returns the number of transactions received Total() – returns to total amount of the orders ResetTransactions() – sets the total amount and transaction count to 0 Register Count() …

Member Avatar
Member Avatar
+0 forum 3

Hello! I am trying to create a simple register/log in menu which allows users to enter the system using that username and password. I have already created the 'Register' section but I have difficulty linking it with the Username and Password in the 'Log in' section. Do I have to create a database which stores Usernames and Passwords in order to do so? Thanks in advance. [code=php] import java.util.*; public class Menu { public static void main (String[] args){ Random generator = new Random(); Scanner sc = new Scanner(System.in); char[] Email, Username, Password, pass1, user1; String Name, Surname, Ans; int …

Member Avatar
Member Avatar
+0 forum 15

[B]ERROR RECEIVED:[/B] [B][COLOR="Red"]NullReferenceException was unhandled [/COLOR][/B] Object reference not set to an instance of an object. And it points on the particular line: [B][I]dsNewRow = ds.Tables("Employees").NewRow()[/I][/B] [CODE]Imports System.Data.OleDb Public Class Register Public cn As New OleDbConnection Public rd As OleDbDataReader Public da As New OleDbDataAdapter Public ds As New DataSet Public str As String Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Close() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim cb As New OleDb.OleDbCommandBuilder(da) Dim dsNewRow As DataRow dsNewRow = ds.Tables("Employees").NewRow dsNewRow.Item("Given Name") = txtGivenName.Text dsNewRow.Item("Last Name") = …

Member Avatar
Member Avatar
+0 forum 12

Hey, I'm fairly new to java. I was hoping someone could give me a pseudo code like description of what I'm trying to do so I know where to start my researching. In my program: -Users will register a username, password, and weblink to their account. -There will be restrictions to the password in length and similarity to username. -There will be restrictions to the username in length and availibility. -There will be restrictions to the weblink in availibility. -All 3 of these things to be saved to an online database that only I have access to. How should I …

Member Avatar
Member Avatar
+0 forum 1

i have a register and a log in page and it will not work. Here is the script for the register:[CODE]$myusername=$_POST['user']; $mypassword=$_POST['pass']; $cleanpwd=md5('$mypassword'); $myusername = stripslashes($myusername); $cleanpwd = stripslashes($cleanpwd); $myusername = mysql_real_escape_string($myusername); $cleanpwd = mysql_real_escape_string($cleanpwd); $sql="SELECT * FROM $tbl_name WHERE email='$myusername' and password='$cleanpwd'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ setcookie('username', '$myusername'); setcookie('password', '$cleanpwd'); session_register("myusername"); session_register("mypassword"); header('location:memberspage.php'); } else { echo "Wrong Username or Password"; } ?>[/CODE] and the html for it is: [CODE] <table><td style='font-weight: bold; color: white; margin-left:auto; margin-right: auto;'><p>Class Manager Log-In</p> <form name=login method=POST action="checklogin.php">User:<input type='text' name='user'><br />Pass:<input type='password' name='pass'><br /><input type='submit' value=Login class=emailbutton></form></td></table>[/CODE] also the code for the register page …

Member Avatar
Member Avatar
+0 forum 4

Ok, i have a couple of questions. I am learning php and i built a log in and a register page. When u register it auto-increments the id row and the user name goes to row "user" in a mySQL database. now how would i make it so it says you are logged in as "user name"? now once they are logged in, how do i call their user id? example: i want to let them change their password. How do i call their id to make sure i have the write table row? last question, how do i make …

Member Avatar
Member Avatar
+0 forum 1

Ok, so i have a log in and a register script. Today i put a md5() encoding mechanism on it so it encodes the password when it is sent to the database. Now, how do i encode all of the passwords that were already inside the database? if anybody could help i would be extremely appreciative

Member Avatar
Member Avatar
+0 forum 7

The End.