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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:15:52+00:00 2026-05-28T03:15:52+00:00

Doing a university course in web development and I’ve been sick all the time

  • 0

Doing a university course in web development and I’ve been sick all the time we went thru databases. I’ve read up on most stuff, like connect to mysql, select DB and that. But something I can’t figure out is how to add data in the columns of a table.

I’ve tried what i could find online but I haven’t found anything useful really… So I was wondering if anyone here could be so kind to show me how write stuff to a table with these columns: http://imageshack.us/photo/my-images/851/sqla.png/

I don’t need help to select DB etc, just how to write those data into the db. Or a link to a guide for dummies like myself… I’ve tried a lot of different ways with

mysql_query(INSERT INTO *** VALUES ****)

But I cannot get it to work..

Any help would be really appreciated, feeling totally lost.

Thanks in advance!

  • 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-05-28T03:15:52+00:00Added an answer on May 28, 2026 at 3:15 am

    My guess is that song_id is related to some other table so you would need to have a valid song_id in your insert request, but something like this should work:

     INSERT INTO `your_table` VALUES(NULL,'Your Text',song_id,CURRENT_TIMESTAMP);
    

    Notice that the song_id should be replaced with a valid id if it’s related to another table:

     $song_id = 1;
     $text = "Sample text";
     mysql_query("INSERT INTO `your_table` VALUES(NULL,'$text',$song_id,CURRENT_TIMESTAMP)");
    

    You should also try checking the mysql documentation for this kind of questions.

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

Sidebar

Related Questions

I've been spending some time doing JavaCC parser generation for assignments at University and
I'm doing a c# course at university, and now I'm beginning linQ to xml,
I'm doing a project on filesystems on a university operating systems course, my C
I'm doing a project in a course at my university on distributed systems. I'm
I've been doing all my work in Git and pushing to GitHub. I've been
I am doing OO javascript for the first time. I have read about inheritance
For this university project I'm doing (for which I've made a couple of posts
I was doing an exercise for university where I had to return a value
I'm doing a Java software-project at my university that mainly is about storing data-sets
I have three tables STUDENT, DEPARTMENT and COURSE in a University database... STUDENT has

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.