Hi.
I have a page using sessions to obtain data from my database.
For example -
session_start();
echo("Your balance is $_SESSION[points] ");
So if a user has 10 points, it will display 'Your balance is 10'.
If the session picks up nothing in the database (I mean an empty field, not 0 points) is there a script I can implement so that the page doesnt display an empty line.
Thanks for reading and I will donate all my NP$ to any one who finds a solution!
I have a page using sessions to obtain data from my database.
For example -
session_start();
echo("Your balance is $_SESSION[points] ");
So if a user has 10 points, it will display 'Your balance is 10'.
If the session picks up nothing in the database (I mean an empty field, not 0 points) is there a script I can implement so that the page doesnt display an empty line.
Thanks for reading and I will donate all my NP$ to any one who finds a solution!
Last edited:








