Importing data from database into html page

Thread Solved

Join Date: Apr 2009
Posts: 2
Reputation: otooleb6 is an unknown quantity at this point 
Solved Threads: 0
otooleb6 otooleb6 is offline Offline
Newbie Poster

Importing data from database into html page

 
0
  #1
Apr 3rd, 2009
Hi everyone,

I am creating a student timetable. I have the table done in html and I now need to input the values in the database.

I was trying to use something along the lines of

  1. if(DAY = 'Monday' && TIME = '9') {
  2. echo(subject);
  3. }

i keep getting an error of undefined day and time. I also tried

  1. if(sem1week1.DAY = 'Monday' && sem1week1.TIME = '9') {
  2. echo(subject);
  3. }

I got the same error except it was undefined sem1week1.day



appreciate any help
Last edited by Ezzaral; Apr 3rd, 2009 at 3:01 pm. Reason: Added [code] [/code] tags. Please use them to format any code that you post.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,744
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 330
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Importing data from database into html page

 
0
  #2
Apr 3rd, 2009
Originally Posted by otooleb6 View Post
Hi everyone,

I am creating a student timetable. I have the table done in html and I now need to input the values in the database.

I was trying to use something along the lines of

if(day = 'Monday' && time = '9') {
echo(subject);
}

i keep getting an error of undefined day and time. I also tried

if(sem1week1.day = 'Monday' && sem1week1.time = '9') {
echo(subject);
}

I got the same error except it was undefined sem1week1.day



appreciate any help
Please post your code and explain your problem in detail. Use [code] tags to wrap your code.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC