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
https://forums.phpfreaks.com/topic/5196-designer-in-trouble-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.