Jump to content

Designer in trouble, help!


senz_uk

Recommended Posts

Hi,

I have very basic PHP knowledge, and this problem is driving me nuts!

I recently switched servers and am having trouble displaying a variable. Basically I cobbled together a very simple login system wherby people register and login with there email address only (using a very basic PHP/MySQL system).

When logged in, the page shows the users email address, i.e; Logged in as: "users email address".

The code I had before was as follows:

<?=($email)?>

This grabbed the session variable, the users email, and displayed it fine. Now I have switched servers it doesn't work. I think it is because the new server has PHP 5 an the old one didn't. Anyway, I have tried loads of things, such as:

<?php
echo $email;
?>

…but no joy. As I mentioned, I am a designer and have limited scripting knowledge. Can anyone help, please!

Many thanks in advance…

Senz
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.