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 7885579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:06:28+00:00 2026-06-03T05:06:28+00:00

I have a booking system, in which once a user books a flight, their

  • 0

I have a booking system, in which once a user books a flight, their details are sent to a mySQL table called OABS_customers.

It’s structure is the following:

Name         Type(Length)    Null     Default

name         varchar(60)     No       noname
address1     varchar(60)     No       noaddress
address2     varchar(60)     No       noaddress2
county       varchar(60)     No       nocounty
postcode     varchar(32)     No       nopostcode
customer     tinyint(4)      No       
seats        varchar(11)     No       0
number       tinyint(4)      No       0
class        varchar(11)     No       noclass
username     varchar(60)     No       nousername

Now, my script adds all of the details with no problem – except for one column – the username column. I’m using this code: $query = "INSERT INTO OABS_customers (username) VALUES ('$user')"; (provided kindly by eggyal) to take the logged in users name (which is stored in the cookie ID_my_site and $user = $_COOKIE['ID_my_site'] – and I have tested that and it does contain the username of the logged in user) and add it into the username table, however this doesn’t seem to work, and it instead displays the default value of nousername.

If anyone could help amend this issue I would greatly appreciate it.

  • 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-03T05:06:29+00:00Added an answer on June 3, 2026 at 5:06 am

    You need to modify you login mechanism to track the user ID for the session.
    Store the ID in memory or in a cookie.

    Once you can store the user id now you can save it to the DB.

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

Sidebar

Related Questions

So I have a booking system where I have a 'lesson_type' table with 'lesson_type_id'
I have php mysql calneder for my hotel room booking system. but it shows
I have a form in a booking system which contains a subform which is
For a booking system I have a table with rooms, arrival and departure. Example
I have a booking system in which I need to select any available room
I'm developing a booking system in Rails 3.1. I have created a model for
Iam working on small booking room system. In my solution I have a Reservation
I'm writing a simple little application, which is a booking system. In the system
I have created a web user control (MemberDetails.ascx) which is loaded dynamically on a
Imagine that you want to design a tennis booking system. You have 5 tennis

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.