Insert values in table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Mudassar
Forum Newbie
Posts: 1
Joined: Tue Jan 04, 2011 9:03 am

Insert values in table

Post by Mudassar »

Dear members i am new in php development. I am working on a project. I have tables: Students, classes,subjects, student_test, i want to assign a test to all students of the class and a test assign to particular student in class.
how can in insert tests in student_tests table???? :banghead:
Neilos
Forum Contributor
Posts: 179
Joined: Fri Nov 19, 2010 2:07 am

Re: Insert values in table

Post by Neilos »

You will need to familiarise yourself with the mysql_query command;

http://php.net/manual/en/function.mysql-query.php

You can use this command to select table entries, update table entries, create table entries etc...
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Insert values in table

Post by social_experiment »

@Mudassar: Have you created any code that you can paste? It's no problem creating the code but spoonfeeding is not the way to learn.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply