Current location: Hot Scripts Forums » General Community » Script Requests » Php Form + mysql + display data sent needed


Php Form + mysql + display data sent needed

Reply
  #1 (permalink)  
Old 10-05-04, 06:45 AM
TheRaider TheRaider is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Php Form + mysql + display data sent needed

Hi there! I looked for a special kind of php form but i couldnt find nothing similar to what i need.. I work with a bunch of people and i need to collect some data from them and deliver them to the administratives.. I need to know when they werent working and why.. A form like this:

Name: John Doe
ID: 12344545
Time of not-working: 11:43
Time Started working: 11:58
Reason: drop down menu with several reasons
Send button

This form would send the data to a mysql database.. And then I would need a page directed to the admnistratives and that page would show:

Name: John Doe
ID: 12344545
Time of not-working: 11:43
Time Started working: 11:58
Total time not working: 00:15
Date: 01-01-2004
Reason: reasons

and they could choose to display the data depending on the date..

i know the basics.. Something like:
<?php

$nome=$_POST["nome"];
$bi=$_POST["bi"];
$mot=$_POST["mot"];
$horai=$_POST["horai"];
$horaf=$_POST["horaf"];
$noname=$_POST["noname"];
$res = mysql_connect([server],[userid],[password]);
@mysql_select_db([enter database name]);
/* SQL CREATE STATEMENT
create table [tablename] (,,,,,)
*/

/* SQL INSERT STATEMENT
insert into [tablename] (nome,bi,mot,horai,horaf,noname) values($nome,$bi,$mot,$horai,$horaf,$noname)
*/

mysql_close($res);

?>
and then call a form.htm with input text.. But i have some problems creating this script and i dont know how to calculate the total time.. etc.. And how to display the data to the admnistratives.. Could anyone help me? thanks in advance..
__________________
<b><i>The Dark Hadou has me..</i></b><br> <img src="http://theraider.do.sapo.pt/ryu.jpg" width="258" height="178">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-06-04, 11:17 AM
RI-VVM RI-VVM is offline
Newbie Coder
 
Join Date: Oct 2004
Location: Zaporizhzhe, Ukraine
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Maybe you will be ineresting in this web software http://easyformit.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-06-04, 02:05 PM
TheRaider TheRaider is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
looks cool.. will give it a go.. thanks alot!
__________________
<b><i>The Dark Hadou has me..</i></b><br> <img src="http://theraider.do.sapo.pt/ryu.jpg" width="258" height="178">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 10-07-04, 02:30 AM
RI-VVM RI-VVM is offline
Newbie Coder
 
Join Date: Oct 2004
Location: Zaporizhzhe, Ukraine
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Welcom
__________________
Redintek Inc.
Advanced Internet Technologies
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
saving data with PHP form sXenoGJ PHP 4 05-01-04 12:25 AM
Apache, MySQL, PHP, PERL, Content Providers Needed! vbgunz Traffic Exchange 0 04-17-04 09:26 PM
help plz: format retrieved Mysql data in HTML with PHP paulj000 PHP 2 10-19-03 09:03 PM
PHP And MYSQL Developer Needed CarBoffin PHP 2 10-13-03 04:31 AM


All times are GMT -5. The time now is 10:04 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.