473,779 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

attendance register

13 New Member
Am so glad someone atleast wroteback ! I am trying to set up an attendance register where time someone comes into an office and leaves is recorded...a php based timecard/punchcard kind of thing.

Ive got to get the mysql table to record the time in and time out and the ip address from which the person logged in or logged out each day.
That is where the parse error is cropping up in file2 that i posted below.


if $myrow1=mysql_f etch_array($res ult1){

//This if statement above gives a parse error: parse error, unexpected T_VARIABLE, expecting '(' in /home/virtual/site126/fst/var/www/html/attendance2.php on line 43.

So any suggestions on what i could do with the code i have written ?

Thanks !!
Attached Files
File Type: txt timesheet php file.txt (3.4 KB, 690 views)
Aug 28 '09 #1
1 3629
Markus
6,050 Recognized Expert Expert
Conditionals need to be wrapped in parentheses.

Expand|Select|Wrap|Line Numbers
  1. // wrong
  2. if true {
  3.  
  4. }
  5. // correct
  6. if (true) {
  7.  
  8. }
  9.  
Aug 28 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2851
by: crier_67 | last post by:
Hello all, I'm relatively new to Access and could use some direction on this task. I have a group with a FoxPro 2.6 for DOS membership & attendance database with about 200 member records. The group operates on a 28 week schedule, with meetings once each week. At the end of 6 months they create a new 28 week schedule, but preserve the prior 6 month attendance values. They view & edit attendance records for the "current period" and...
0
1254
by: shun | last post by:
Hello I strated a project "attendance register". consiists of user login and logintime and logout time using ASP.net. can any one help me, or any sites which have free source code about this. Thanks in advance. regards Shun
3
6458
by: gold casper | last post by:
Hi I'm working in oracle9i form developer and report developer I'm doing school attendance system to take the attendance for students but I don't know how many tables I need and how to make all the forms correctly I've done a form for registering new students, for classes, attendance and reports form attendance form here we should take the attendance I've used student and class table but it doesn't work with me even the reports I...
1
2570
by: Shun | last post by:
Hello, My requirement is to develop an Employee Attendance Register. For ex: I am in some X country and my office is in Y country. now my requirement is i want to check the employees present and also there previous days attendance(i.e complete Month employee Attendance). I am farwarding in 2 ways, 1. By searching in Google for any free attendance register software.
0
2268
by: spattarkine | last post by:
How to create daily attendance system for students which create warning after each 3 absents.idea is as soon as the class and section are selected,names and roll no of all the students of that class will appear and by clicing the checkbox a student is marked present.At the end of the month the ateendance report should appear like a snapshot of attendance register.
2
2875
by: timgeitz | last post by:
I would like to design a drop down option box on a form which gives me several choices for putting in an attendance date to record church attendance. Typically, a church secretary would record a member's attendance sometime after the date of attendance (eg. Monday or Tuesday after the Sunday's attendance). On my attendance form, I need to have an option box that would put in last Sunday's attendance date even though it's now Monday or Tuesday or...
0
2864
by: Bill | last post by:
I've searched comp.databases.ms-access for a solution and found help but still haven't got my problem solved. I want to record weekly attendance and print an attendance "check off" sheet where attendees simply check on their name row and class date column to record their attendance. The marked attendance sheet is later used to update the database and print an updated attendance sheet for the following week's class. I'm working with...
4
2375
by: Digitallad | last post by:
Hi I am a self thought in access and been creating a couple of data bases for my farm.I am now building a attendance register and is keeping it as simple as possible.Table is as follow: id(auto) : Date (=now()) : Employee 1 : Employee 2 : Employee 3 ................ What I need is to insert the value 1 into the field when a command button is clicked.The plan is to make a command button with the employee's picture on it that needs to be...
5
8913
by: Lindie | last post by:
We use a spreadsheet to record attendance for pupils with special needs. They live-in so we need 365/365 attendance details. The spreadsheet is getting too cumbersome, a Db is needed. I would like to turn the spreadsheet into a database. In the spreadsheet we have every day listed and then simply enter an attendance code. for the Db I have 3 tables StudentDetails Attendance TeacherDetails I use a StudentID as the primary key...
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.