[PHP-DB] Fetch Array, Display and Update, all in one ?

2004-09-07 Thread GamCo - Gawie J Marais
Hi All,

I have designed a debit-system database with a PHP frontend. The amounts
need to be updated on a monthly basis. now i have 10 clients in the system.
i can get all the fields and display them, but next to that, i need to
insert a field where we can enter an amount per client and after all the new
amounts have been filled in, i need to update the database with those
amounts entered.

I know that by using html forms to enter the info, i can submit the info and
do a update statement but the problem is, is that i need to dynamically add
the field to update the amount according to the amount of results resturned
from the database...

Hope you guys understand what i mean here... !





Regards,

Gawie J Marais
Systems Administrator
GamCo
--- 
Phone :: +27.11.312.0481
Fax   :: +27.11.312.0483
Mail  :: [EMAIL PROTECTED]
---
Yesterday it worked. Today it is not working. Windows is like that.
---
http://www.linuxonline.za.net
---
Important Notice:

Important restrictions, qualifications and disclaimers (the
Disclaimer) apply to this email.

To read this click on the following address:

http://www.gam.co.za/legal/email_disclaimer.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Wait Statement... ?

2004-07-20 Thread ..: GamCo :..
Hi all,

I would like to add a line of code in PHP that will execute a wait before
executing the next set of code. How do i do that ?

Regards,

GM

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Wait Statement... ?

2004-07-20 Thread ..: GamCo :..
hhhmmm...

ok, i added the sleep() function in my page. what i'm basically doing is :-

i have a .php page where people log-in from. from there i send the form to
another .php page that actually checks the login and registers a session
with the username and password as session variables. then on the page that
actually does the validation, i have something that says : validating
login... sleep 1 funtion. then, i have another line that says validation
successfull... sleep 1 function and then i have another line that says
redirecting... with sleep 1 function and then header redirects to the actual
logged-in.php file. the redirect and validation works perfectly as well as
the sleep functions, but it now doesn't display the validating login... blah
blah blah stuff which is done in normal html code...

any idea ?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Getting data from mysql db for html form

2004-06-09 Thread GamCo - Gawie Marais
Hi,

Could someone help me out here...

I have a mysql database with a table that conatains names. I am setting up a
html form and I would like to create a multi-listing with those names so
that you can choose one and then submit the form.




Regards,

-
Gawie Marais
GamCo
Tel: +27 11 312 0481
Fax: +27 11 312 0483
E-Mail: [EMAIL PROTECTED]
Web: www.gam.co.za
-
...:: Beauty is one of the rare things which does not lead to doubt of God.
::...
-
http://www.techweb.za.net/
http://www.linuxonline.za.net/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Internal server error

2004-03-18 Thread ..: GamCo :.. Gawie Marais
Hi,

Whenever I try and run this .php file 

?php
$p = getcwd();
echo $p;
?



I get:-

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.






Apache/1.3.28 Server at www.stream.co.za Port 80






This is what I get in the log:-

[18/Mar/2004:10:12:54 +0200] GET /mambo/db_path.php HTTP/1.0 500 596 -
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)


Any idea ?




Regards,


Gawie Marais
..: GamCo :..

--
Tel: +27 11 312 0481
Fax: +27 11 312 0483 / +27 82 239 2986
http://www.gam.co.za
--
if(empty($beer)) 
{ getbeer() } 
else 
{ consume($beer) }

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Php datetime

2004-03-04 Thread ..: GamCo :.. Gawie Marais
hi,

i have created a mysql table where i would like to store the date and time
whenever a user logs into a web site. the login is done through php/mysql as
well but i'm not sure what the php code is to add the current date/time into
a mysql database. the field in the db is created as a 'datetime' field.









Regards,


Gawie Marais
..: GamCo :..

--
Tel: +27 11 312 0481
Fax: +27 11 312 0483 / +27 82 239 2986
http://www.gam.co.za
--
if(empty($beer)) 
{ getbeer() } 
else 
{ consume($beer) }

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php