Author Topic: Errors within login form HELP  (Read 2006 times)

0 Members and 1 Guest are viewing this topic.

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #15 on: March 15, 2009, 09:19:13 PM »
Change
$sqlmembers mysql_query($qry);
to
$sqlmembers mysql_query($qry) or die(mysql_error());


now I get a similar error to what I have before
Unknown column 'username' in 'field list'

yet everything is set as uname.
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #16 on: March 15, 2009, 09:38:52 PM »
It's done guys, just little bits to cover,

Code: [Select]
      <?php require 'dbc.php';
if (
$logged_in == 0) {
 
?>

 <center> You must be logged in to access this area; <a href="http://www.jeanies-poetry.com">Login</a> </center>
<?php } else { ?>
<center><p>Logged as <?php echo $_SESSION['username']; ?> | <a href="http://www.jeanies-poetry.com/settings.php">Account Settings</a>
  | <a href="http://www.jeanies-poetry.com/logout.php">Logout</a> </p></center>
<?php ?> 

It doesn't display the username logged in.
« Last Edit: March 15, 2009, 09:43:23 PM by JeanieTallis »
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Offline Solar

  • Enthusiast
    • View Profile
Re: Errors within login form HELP
« Reply #17 on: March 15, 2009, 10:30:08 PM »
Code: [Select]
    <?php require 'dbc.php';
if (
$logged_in == 0) {
 
?>

 <center> You must be logged in to access this area; <a href="http://www.jeanies-poetry.com">Login</a> </center>
<?php } else { ?>
<center><p>Logged as <?php echo "$_SESSION['username']"?> | <a href="http://www.jeanies-poetry.com/settings.php">Account Settings</a>
  | <a href="http://www.jeanies-poetry.com/logout.php">Logout</a> </p></center>
<?php ?> 

Does an echo need quotations around itself? Like above?

Offline Solar

  • Enthusiast
    • View Profile
Re: Errors within login form HELP
« Reply #18 on: March 15, 2009, 11:41:03 PM »
^ Nevermind about my above post, I tried it myself and it works fine for myself. "<?php echo $_SESSION['username']; ?>"

So its not displaying because you didn't include.. Check_login.php?

Online KingPhilip

  • Just another freak
  • Addict
  • Gender: Male
    • View Profile
    • Savefile Hosting
Re: Errors within login form HELP
« Reply #19 on: March 15, 2009, 11:48:26 PM »
Do you have session_start(); at the very top of the page you're trying to use the session with?
$Yummy = $_COOKIE['choc_chip'];
Please note: I will not reply to Personal Messages or Instant Messages asking for help

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #20 on: March 16, 2009, 05:18:56 AM »
I do not have session_Start()
should that be included at the top of the page im trying to get the username in (the post i put) or the dbc.php file?

and check_login, is in dbc.php
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #21 on: March 16, 2009, 06:00:24 AM »
I tried session_Start(); and it doesn't work ether.
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Online KingPhilip

  • Just another freak
  • Addict
  • Gender: Male
    • View Profile
    • Savefile Hosting
Re: Errors within login form HELP
« Reply #22 on: March 16, 2009, 07:37:12 AM »
It should be like this:
main.php
Code: [Select]
<?php
session_start
();
include 
somefile.php;
echo 
'hi';
?>

somefile.php
Code: [Select]
<?php
echo $_SESSION['name'];
?>

Also, add error_reporting(E_ALL); at the very top of your script
$Yummy = $_COOKIE['choc_chip'];
Please note: I will not reply to Personal Messages or Instant Messages asking for help

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #23 on: March 16, 2009, 08:11:39 AM »
It should be like this:
main.php
Code: [Select]
<?php
session_start
();
include 
somefile.php;
echo 
'hi';
?>

somefile.php
Code: [Select]
<?php
echo $_SESSION['name'];
?>

Also, add error_reporting(E_ALL); at the very top of your script


Thanks, i have a file

http://www.jeanies-poetry.com/JeaniesPoetry.rar

it has a text file of all the errors,
would you kindly fix it all for me and make it all look 'tidy' in designer mode too, and send it back.
Thanks.
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Offline Crayon Violent

  • Staff Alumni
  • 'Insane!'
  • *
    • View Profile
Re: Errors within login form HELP
« Reply #24 on: March 16, 2009, 04:49:51 PM »
Thanks, i have a file

http://www.jeanies-poetry.com/JeaniesPoetry.rar

it has a text file of all the errors,
would you kindly fix it all for me and make it all look 'tidy' in designer mode too, and send it back.
Thanks.


Yeah KingPhilip, and he wants it on his desk by Friday, or you're fired!

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #25 on: March 16, 2009, 04:55:02 PM »
I actually do need it by saturday :) Lol
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Offline Crayon Violent

  • Staff Alumni
  • 'Insane!'
  • *
    • View Profile
Re: Errors within login form HELP
« Reply #26 on: March 16, 2009, 04:56:30 PM »
sarchasm ftw.

Online Maq

  • Freak!
    • View Profile
Re: Errors within login form HELP
« Reply #27 on: March 16, 2009, 05:06:10 PM »
I actually do need it by saturday :) Lol


Chop Chop!
ini_set ("display_errors""1"); 
error_reporting(E_ALL);

Quality Scripts

Offline JeanieTallisTopic starter

  • Enthusiast
  • Gender: Male
    • View Profile
    • Jeanies Poetry
Re: Errors within login form HELP
« Reply #28 on: March 20, 2009, 12:47:17 PM »
I dont need this sorting anymore, I changed my design of the site so I no longer will need a login, would be nice for it to be corrected those files, just incase I need it again or other people do.
I'm not the one for helping people with codes, I'm the one who could help by giving them ideas on what to do (:

Offline Crayon Violent

  • Staff Alumni
  • 'Insane!'
  • *
    • View Profile
Re: Errors within login form HELP
« Reply #29 on: March 20, 2009, 02:40:43 PM »
I think the point of the last couple of posts that you seem to have missed is that we aren't here to do your work for you and it doesn't help that many of us (myself included) took your posts as you going beyond even asking for someone else to do it (not okay), and demanding/expecting it (even worse).

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.