Member Avatar

I am doing this assignment i have to redirect the login page to the welcome back page to authenticate the use identity but i am getting this error in the welcome_back page in page. i have look everywhere to find the error. the error is the and now here is my code for it. <div id="contentArea"> <?php session_start(); if(!session_is_registered("username")) { header("location:login_user.php") } <--the error is right here Parse error: syntax error, unexpected '}' in C:\wamp64\www\Taylor_Luana_ITEC244_Assignment\php\welcome_back.php on line 43 ?> <?php echo "Welcome back " . $_SESSION['username']; ?> <div id="footerbox"> <div id="footerholder"> <div id=""> <a href="browsenationalwonders.php">Browse National Wonders</a> <a href="updateprofile.php">Update Profile</a> …

Member Avatar
0
24
Member Avatar

hi it is me again, this is my assignemet been trying to fix this php script for a long time first to begin, it was issuing an error, Warning: join(): Invalid arguments passed in C this is the first error and the second error was: notice: undefined index in c. apprently if my html code, i had register a the values when registering but in my php code i had enter instead, so i fix it right now after i finished fixing it, i tried to register a user and now i am getting a blank page, dont know what …

Member Avatar
0
36
Member Avatar

this assignmet call for inserting data into the database and also retrieve. at one time it was inserting into the database but for strange reason it just stop inserting, i have search every noook and cranny within the code to find the error. I know that there is an error there that cause it to stop inserting. but what it is I really dont know. I am almost to the point of pulling out my hair. and another thing error is that I have set it to redirect it to the login page(this is the registration page am talking about) …

Member Avatar
0
14
Member Avatar

I am trying to validate my registration form but my php codes blocking it some how, I keep this error, Notice: undefined index: in gender c and for the life of me cant seem to find the correct way to fix it nothing I tried is working. and also I have been trying to insert data in the database and it is not inserting at all, I knew there is an error somewhere within the codes and I cant find. can someone plzzzzzzzzzzz help me fix this. here is both the php scripts and the html to go with it …

0
9
Member Avatar

in my assignment I trying to create a popup box but someting wrong with my code. it supposed to popup when called and close as it have a close button but the button is not working can something tell me what did i do wrong. here is my code: is there somethings that some else can i and I cant <?php /*session_start(); if(!isset($_SESSION['view'])) { header("location:../xhtml/login.html"); }*/ ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Caribbean Nature Seekers Institute Trinidad and Tobago Chapter</title> <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" /> </head> <body> <div id="container"> <div id="header"> <div id="banner"> <img src="../images/header.jpg" alt="header" /> </div> </div> …

Member Avatar
0
19
Member Avatar

hi am doing this assignment in web develpment. have been trying to run it but for some reason it is not working. maybe a third eye will hope here is the code <?php error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); if(isset($_POST['register_user'])) { //capture the variable from the form and store in php variables $title=$_POST['title']; $fullname=$_POST['fullname']; $lastname=$_POST['lastname']; $screenname=$_POST['screenname']; $email=$_POST['email']; $gender=$_POST['gender']; $address=$_POST['address']; $mypwd=$_POST['mypwd']; //connecting to the server include'db_server.php'; $conn = mysqli_connect($db_host,$db_username,$db_password) or die (mysqli_connect_error()); //select the database you want to query mysqli_select_db($conn, 'national_wonders') or die (mysqli_error($conn)); $sql = "SELECT * FROM members WHERE screenname='$screenname'"; $result = mysqli_query($conn, $sql) or die ("ERROR:" .mysqli_error()); …

Member Avatar
0
52
Member Avatar

I am created a homework tutorial webpage where i have to make an image clickable and what I meant is that when the image is click, it should open up a pdf file and that is where iI am having the problems this is what i have tried on numerous occasion and it is not working. < href="https://www.studentorientation.com and many other like it but none seem to be working. would like to know what is the correct code to get it to work. any help would be much appreciated. thanks in advance

Member Avatar
0
15
Member Avatar

hi everyone I am currently in the process of designing a bank atm machine appliction and I would like to apply a backgrond color to some of the button, I tried some codes but it dont seem to be working, well what I meant was I dont know if the codes I used is the correct form for a background color of a jbutton. I am probably missing codes, can you all tell me if what I have here is the correct thing and could point me in the correct direction here is the codes that I used. do I …

Member Avatar
0
13
Member Avatar

hi people I am building a atm machine but havent actually coding it as yet, just the gui interface part i have done so far because i am doing something else at the moment but in between i would do someting with it. so i have put in an if and else statement. the atm should be work like this, when a person deposit any amount a pop box will tell u the money is deposit. it should also show u your current balance, bal enquiry, be able to get fast cash and able to widthdrawal right. I have started …

Member Avatar
0
39
Member Avatar

hi everyone i have not been here in a while. so here I am practicing building a forensic managment java application but the thing, i am trying to connect to the database, so, like i am importing the codes that would help connect to the database, like I mean the connection, the preparedstatement and the resultset and for some reason am getting errors, is it because that java is not finding the it or wat. the errors stating that it cannot find the symbol, I am only importing.

Member Avatar
0
54
Member Avatar

hi all presently am doing an assignment. for the past hour or have been experiencing one error to the next with it. it is website am doing where a user can register, login, view their profile etc. one part of the assignment is where u have to insert and display images on the site using php. I get thru in some aspect of the assignment concerning the inserting and displaying images. i cant get the images to display, dont know if there is something wrong with the code or what. I am currently getting this errors. have tried everything that …

Member Avatar
0
36
Member Avatar

hi I have a login form, when i tried to login i got this two errors: **Notice: Undefined index: username in C:\wamp64\www\FormTutorial\php\luana_login.php on line 6** ** Notice: Undefined index: password in C:\wamp64\www\FormTutorial\php\luana_login.php on line 7 ** I have been busting my head to figure out how to solve it so I went online to see if I can find a solution to fix the errors and I came across. I dont know how effective it is so I have decide to give a tried to see how it work but this things when i put in my codes the errors …

Member Avatar
0
13
Member Avatar

hi pple I have an question, i am creating a webpage for an assignment and one is that I have to create a page for the users to upload their pictures for other to see and take but I would like to know how do i go about doing that in php. can someone point me in the right direction. or at least give me a head start.

Member Avatar
0
13
Member Avatar

hi there i have this registration page when a user login it should redirect you to a welcome page, I am having a similar problem at to one user who was experiencing the same problem. at one time it was going to the welcome page, but there were errors in the firstname an lasname variable. how to echo it out. apparently i had code it wrong, so it was picking up the error, try fixing and I have no idea I did or didn't know now when i tried registering, it is blank i have a login page also and …

Member Avatar
0
10
Member Avatar

hi there am trying to create a welcome page for when a member register/login but i dont quite know where the error is. i know there is an error there somewhere but as usual, finding my errors in one of my major fault. I am doing it in php the opening tag in php is red as it supposed to be but the closing tag is black which is not supposed to be among other codes in the form I put it in a html form but it is saved as a php. the closing tag of the body and …

Member Avatar
0
19
Member Avatar

hi ah have ah form that when data is inserted it would go to a welcome page which it does but I keep getting this error ( ! ) Notice: Undefined index: first in C:\wamp64\www\luana_itec244\php\welcome.php on line 25 Call Stack #TimeMemoryFunctionLocation 10.0007237872{main}( )...\welcome.php:0 ( ! ) Notice: Undefined index: last in C:\wamp64\www\luana_itec244\php\welcome.php on line 26 Call Stack #TimeMemoryFunctionLocation 10.0007237872{main}( )...\welcome.php:0 is there a way to fix this error. would like to move on. here is my codes that i have used. <?php session_start(); if(isset($_SESSION['user'])) { header('Location:login.php'); } ?> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11.dtd"> <html xmlns="http:www.w3.org/1999/xhtml"xml:lang="en" …

Member Avatar
0
9
Member Avatar

hi all what is the best possible way i can create a members view page (profile page) I am doing ths assignment where i have to create two pages, one is a members view page and a members edit page. the members view page page(profile page is like when u sign up with a website and when u login, your profile page is what you can see. ths members view page(profile page) is where also will display the user personal information which will be stored in the database. and the member edit page will display a populated xhtml form with …

Member Avatar
0
17
Member Avatar

hi all I am doing a form where i have to validate the email, all of the other control is working just the way it is supposed to work but I have been trying to validate the email for the longest while and it is not working properly or better yet it is not validating, I dont know if it is the codes that I am using or if there is an error there that I am not seeing, can someone help me out and let me know if there is an error here is the codes that I am …

Member Avatar
0
45
Member Avatar

hi everyone I am currently practicing my java skills by doing this program called car rental management system. I am creating a login page where when the user login it should bring up a dashboard. but the problems when the user login and it say "credentials match, the dashboard doesnt come up and in the output controls I got this error msg: Sat Jan 13 00:12:21 BOT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For …

Member Avatar
0
19
Member Avatar

hi pple I am building this electronic role using an interface. during the course of designing the interface, tried running it just to see the look and feel of it and it is not showing can someone tell me why this happen. here is the code. havent start coding it yet package AttendanceRecordSystem; public class AttendanceRegistrationForm extends javax.swing.JFrame { public AttendanceRegistrationForm() { initComponents(); } java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { new AttendanceRegistrationForm().setVisible(true); } });

Member Avatar
0
85
Member Avatar

hi this is one of my assignment that I have to do. it is a triangle calculator. everything well with it but it just the calculation. when I run it, it gives a zero output. I think it may be my calculation. can someone take a look at it and tell me what is wrong and point me in the right direciton. thanks in advance. import java.awt.BorderLayout; import java.awt.Color; import java.awt.Container; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class TriangleCalculator extends JFrame implements ActionListener { JTextField side1, side2, side3, displayArea, displayArea2, exit; public TriangleCalculator() { this.setTitle("Triangle Calculator"); this.setSize(400, …

Member Avatar
0
29
Member Avatar

hi james cherril I am doing a voting system application of which I have to hand up today. I am getting a runtime error when I entered a record and try to save it. as I entered one record and when the save button is pressed it give me a runtime error. can someone give me a clear feedback as to why I am getting the error and how it can be fixed. andy help would do. I have three class. here is the code i used. this the is voterinfo class where it is gathering all the information on …

Member Avatar
0
34
Member Avatar

hi I am trying to build a triangle calculator that can tell you if you can form a valid triangle, I have reach the calculation part as yet just the part of the gui and that is the part with the error. something is wrong and i cant seem to figure it . probably a logical error somewhere. I build the gui but it is blank. what it supposed to print is sideA with a txtfield and that goes for b and c. but for some reason it is blank. can some take a look at my codes and tell …

Member Avatar
0
18
Member Avatar

hi james Been a while since I have been here. am trying to do this program for the longest while. I have tried read and writing to a text file in java and i am getting a runtime error. can someone tell me where and why I am getting the runtime error. here is the codes that I have used. import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; /** * * @author luanataylor */ public class NewFile { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException{ StringBuilder sb = new StringBuilder(); File …

Member Avatar
0
20
Member Avatar

hi all I am trying to build a registration form using the bootstrap, design, and I am stuck. i am stuck where the date of birth. it used the drop down list in bootstrap but where I am stuck at is getting it to be side by side on the webpage. it is showing it is on top of one another instead of side by side. i have tried everything that I can think of, I have tried researching on ways on how to do it, found a couple but they not working, becuz i have tried out them, can …

Member Avatar
0
21
Member Avatar

hi all I am doing this thread program and when i run it is not giving any output, can someone tell me why no output is shown. public class RelayRaceDemo { public static Thread runner[]; public static void main(String[]args){ RelayRacer rr = new RelayRacer(); ThreadGroup country[] = new ThreadGroup[5]; country[0] = new ThreadGroup("Tinidad and Tobago"); country[1] = new ThreadGroup("Jamiaca"); country[2] = new ThreadGroup("St Vincent"); country[3] = new ThreadGroup("Barbados"); country[4] = new ThreadGroup("Bahamas"); runner = new Thread[7]; Runnable relayRacer = null; runner[0]= new Thread(country[0],relayRacer,"Trinidad racer 1"); runner[1]= new Thread(country[0],relayRacer,"Trinidad racer 2"); runner[2]= new Thread(country[1],relayRacer,"Tobago racer 1"); runner[3]= new Thread(country[1],relayRacer,"Tobago racer 2"); …

Member Avatar
0
16
Member Avatar

hi this is jus a question. if you are doing a program that uses a GUI, with the radiobutton, checkboxes and so on why do you have add an import for all the jradiobutton and jcheckbox. is is necessary to add an import for each of them

Member Avatar
0
19
Member Avatar

hi everybody I am currently creating a simulation of a pizza ordering system in object oriented program. I have some question. the instruction and guideline is long but I will try and cut it down a lot. the instruction is to create a program that simulate a pizza restaurant using a GUI it has two bakers and one cashier. both bakers has thier own speciality, if one is absent, the other has to fill in and vice versa according to the orders entered. it also I have to read and process a data file, called pizz_mani_orders.txt to the simulate the …

Member Avatar
0
53
Member Avatar

hi all it has been a very long time since I have written anything in here everythings has sicne change, i cant even find the java forum in here but anyway, my problem, i am practing on dis program, jus started it actually. I have two classes only, as I said it is just a practice program. i have followed the instructed as it can tell me to. i did the mutators, accessors and the toString in the account class, which is done, have no problem there. the problem is in the SavingsAccount class is where the error is. I …

Member Avatar
0
15
Member Avatar

hi guys havent been here for a while. I am practicing this program for a few days now I havent seen no syntax error but am not getting any output. the program is about a loan officer for two group of employees for a credit union. the regular staff salaries are generated by the amt of hours work by their rate of pay and the loan officer salaries are calculated by thier commission based system and they received a fixed salary less 3 % interest on all loans issued for the month. this is what I have so far, can …

Member Avatar
0
21

The End.