Monday, September 24, 2007

Websystems 2: PHP CGI error

Problem: An CGI error kept occuring when inserting data to the database and could not find the problem

Solution: Missed some simple code

oci_free_statement($stmt);

The statement was not closed which created errors. Fairly simple error but may happen again

Websystems 2: PHP and database occuring problem

I had thought that it maybe a good idea to blog what I am doing over and over incorrectly.


When retrieving attributes from the database:

while ($row = oci_fetch_array ($stmt))
{
? >
Breed: < value = "">
< ? echo $row["BREED_NAME"]; ? >
< /option >



Attributes have to be in capitals or else errors occur. My problem is that I write what the attribute of the database case is for which is in lower case.

Problem solved

Websystems 2: PHP Session problem

Problem: I wanted to use sessions for an login so it remembers username and password. i had used the code:

< ? ob_start(); session_start(); ? >


but kept getting errors about already defined header.

Solution: The code was put in the incorrect position. This code needs to be above the html header as I found out after 20mins of pulling my hair out.

Tuesday, September 18, 2007

Ipod Nano Freeze Alert

Problem- Ipod Nano had frozen with the screen lit up and no ways in communicating or controlling the IPod.

Solution - The way to restart the Ipod is by select the menu and middle button and holding both down for 10 seconds which then fixed the problem

-- Only a small issue but I need something for my blog.

Tuesday, September 4, 2007

Getting Started

Hello World

Getting started on this blog to help me record all my issues that I have found in my IT career, hopefully helping me out if issues occur again in which I can refer to it. Hopefully you can make sense of my work and it may help you out in solving your issues.

Initially this blog is going to hold issues in my assignment at University. The headings will specify the subject that the problem will occur.

Visit my profile page on http://lukejpocock.googlepages.com

Happy blogging world