in my desperate attempts to try and do this damn php site, i have yet again come across another problem (which is pribably another one of those problems that ould be easily solved with one line of code).

Anyway here i go.

If u have looked at my previous posts you would know that i always seem to have trouble with the site that i have o make (im getting better, but not quick enough).

Ive gone though my book from cover to cover, and i find the odd bit of code, but it never ever works for me, im sure im doing something wrong. Anyway what im trying to do is to basically show the customer details on a page all by itself, so that the customer can view (and maybe edit, but that seems a long way off yet).

<? // Include function files for this page require_once("timbmet_function.php"); session_start(); // Start a session for this user

if ($userid && $password) // They have just tried to log in { if (login($userid, $password)) { // If they are in the database register the userid $valid_user = $username; session_register("valid_user"); } // End of if else { // Unsuccessful login do_html_header("Problem"); echo "You could not be logged in. You must be logged in to view this page."; do_html_url("login.php", "Login"); do_html_footer(); exit; } // End of else } // End of if

Ive only done a few customer details like phone and name just to test them out. Anyway, all i get is the bit at the bottom that says The details of this customer ..... at this time.

Obviously ive done something wrong along the way. Is there someother method that would be infinately easier to carry out. There has to be asim pretty much pulling out my hair at the moment as i know this should be simple, but ive tried alot of other ways and well they all failed. PLEASE, PLEASE, PLEASE help me.

markie :lol:

(ps, if u can solve this for me could u please consider going to the next post, i dont think that one is as hard, but ive been pulling my air out about that one aswell).