Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8940635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:05:09+00:00 2026-06-15T11:05:09+00:00

Well, im developing a CMS based form with a copy-center-system ( this is the

  • 0

Well, im developing a CMS based form with a copy-center-system (this is the form), but i need the $cookie->id_customer.
But i get an error:

Fatal error: Call to a member function isLogged() on a non-object in /home/papelari/public_html/modules/mymodule/submit.php on line 13

<?php 
/*
 $con = mysql_connect("localhost","papelari","509494218");
 if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

 mysql_select_db("papelari_Veloso", $con); */

 global $cookie;

if(!$cookie->isLogged())
{
 echo 'Please login';
 exit;
}
else
{
 echo 'Hi, ' . $cookie->customer_firstname. ' ' .$cookie->customer_lastname . '<br/>';
 echo 'We contact to you: '. $cookie->email;
}

/* $sql="INSERT INTO ps_copias (id_customer, file, cor, copias, pags, papel, gramagem,       flag) VALUES('$cookie-            >id_customer','$_POST[file]','$_POST[cor]','$_POST[copias]','$_POST[pags]','$_POST[papel]','$_POST[gramagem]', 0)";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "Enviado com sucesso!"; 

mysql_close($con); */
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:05:11+00:00Added an answer on June 15, 2026 at 11:05 am

    Your problem is that $cookie is not defined. Paste this at the beginning of your script :

    <?php
    include("../config/config.inc.php");
    $cookie = new Cookie("ps");
    
    if ($cookie->isLogged()) {
        // your code
    }
    

    You may have to adapt config.inc.php include path depending on your own script

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I´m developing a wpf application and I got a strange error on design
Well, I have a application which somehow requires some system resources, but how do
well to begin with I'm sure this is a simple question. I am developing
Well, im developing and app for api 8 with TabActivity but i found out
I am developing a very simple CMS system for my brother's web site. I
Well... This is my case: I'm developing a framework and I'm current developing the
I will try to explain this as well as I possibly can. I'm developing
So, on 64-bit Ubuntu I'm developing with LWJGL, but code that worked perfectly well
A few general questions to those who are well-versed in developing web-based applications. Question
I am developing a form that allows the user to upload images as well

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.