I have an application system, and on my summary page (myaccount) I have the list of pages a user has to fill in. However I want to show an image next to each link (a cross at default) but when a user saves that particular page and the database field 'complete' in changes from 0 to 1, the image should change to my tick image. Meaning that page is complete. If anyone can help that would be great. I'm still learning!
Your question isn't complete and not specifying your problem. I am assuming that you need to know how to do it. In which case, you will probably be doing something like following,
As soon as the user saves the page, you will be storing that information in some kind of database, that information will tell you which image to show.
When you open the home page, just go to database and check if a record for that page exists in database. If it does then show tick else show cross.
UPDATE:
You will run a select query. eg. Your table is PAGE and page name is "page1" (or any other field that identifies the page uniquely.) Your query will be soemthing like,
"SELECT complete From PAGE where Unique_Field = 'unique_page_field'"
And then you would have an if check, check if complete == 1 then show tick else show cross.
If you have a really large collection of pages then instead of hitting database for every page, you can run one single query, such as SELECT complete, Unique_Field From PAGE and for every page, you will just check this collection for given record. So if given page is in the collection then show tick else show cross.
UPDATE For IF Statement: Assuming you will go for first approach :
and now you have the value in $isComplete variable, here's what you will do in your HTML side code,
<img src='<?php if($isComplete) echo "tick.jpg"; else echo "cross.jpg"; ?>' />
make sure that your image paths are correct.