Wednesday, January 25, 2012

Login form works again!!!

I have recoded my login form and now it is finally functioning. The basic error was that I have mis-spelt the "session" variable therefore I was unable to store information inside the variable. 

New Entry in database

While I was busy testing my website, I have realized that I don't have a "unique" key. Therefore, I need something that will separate each user by user.  Thus, I have added a "displayname" field in my database. This field has to be different for every user so the web server knows which user to log in. In other words, if the user logs in with its firstname and password, there may be duplicate entries in the database. Therefore it will not be able to process the user's login because there are more than one entries. Although we may use the "limit 1" MySQL statement, the user may be logged in with the wrong account details which may be false if the user views his/her profile and thus leading to infinite MySQL warnings.  

Tuesday, January 17, 2012

Directory too clumped

My directory page has also been too clumped. i.e. The table is too big to fit onto the page. Therefore, some of the content is out of the <div>. Thus, The content is overlapping my sidebar. In order to solve this problem, I must lower the number of fields displayed by taking out some of the <td> tags which will erase a whole field of a table.

The same problem has also occurred with the facebook like box on my website. This is because facebook does let me put the height of the like box to 100%. If the width attribute of my like box was 100% then the content will stay in my sidebar. and this kind of error would not occur. I have tried to do this manually but unfortunately this has not worked since the borders do not show up properly.

In order to resolve this problem, I will put the like box on my main page instead of my sidebar since there is no other way to fix this.

Login form not able to function

In my testing, I have found out that my Login form is unable to create a "Session" variable to log the user in. Therefore, I will continue to work on that error and make sure I found a solution to it. I will also inform my client of this error

Problem with sign up

My sign up mechanism does not work for some reason. Therefore in order to resolve this error, I have shifted my sign up form onto another webpage since everything was clumped onto one page. My client was informed and advised me to change my syntax. Also I have looked at other tutorials in order style my forms. I have therefore learnt a < fieldset >
tag and < legend > which is very effective for creating a good styled form.

Sunday, January 8, 2012

Possitive feedback

According to a survey taken on my main website, I have received very positive feedback from many end users. Many of them have also mentioned that my website was of professional level after being amazed by my User Registration interface.

array() statement

I have recently learnt about the array() in php which holds a set of data and it splits it with a foreach loop. I have learnt this by watching a tutorial online on youtube. This makes things a lot more easier to do such as form validation. I have also learnt PHP form validation is more efficient than javascript.