[PHP-DB] Re: Time Question

2002-02-15 Thread Joe Van Meer
Thx Jakob, appreciate the help Cheers Joe :) Lerp <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there. Got a bit of a snag. I'm migrating an ASP app to PHP with a > mssql7.0 backend. The snag is this, I have a 'starttime' field in my db > using the 'date

Re: [PHP-DB] formating w/ table

2002-02-15 Thread Miles Thompson
Jas color=\"33\">\n"; } ?> The is in the loop. Place it outside & you'll be OK. Miles Thompson At 01:35 AM 2/15/2002 -0700, jas wrote: >I am having a little problem formating data retrieved from a database into >table cells... So far after connecting and querying the database table the >

RE: [PHP-DB] formatting w/ table

2002-02-15 Thread Rick Emery
Further, I recommend replacing your echos with the following: echo "Type Of Car: "". $myrow['car_type']."\n"; echo "Model Of Car: ". $myrow['car_model']."\n"; echo "Year Of Car: ". $myrow['car_year']."\n"; echo "Price Of Car: $". $myrow['car_price'."\n"; echo "VIN Of Car: ". $myrow['car_vin']

RE: [PHP-DB] formating w/ table

2002-02-15 Thread Rick Emery
Your is inside your loop. So it is executed once to terminate the table. After that, the browser just sees the rest as straight text. -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 2:35 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] formating w/ tab

[PHP-DB] formating w/ table

2002-02-15 Thread jas
I am having a little problem formating data retrieved from a database into table cells... So far after connecting and querying the database table the data is put into table cells, however after the first entry is displayed in the table all the other entries loose the formating, HELP? Current Inven

Re: [PHP-DB] optimizing script...

2002-02-15 Thread Dan Brunner
Hello... Try this... $pat = array("\", "@", "*", "&", "%"); $with = (_) \\What ever you want... $car_year = str_replace ($pat, $with, stripslashes($car_year)); echo $car_year; This would work with ONE VARIABLE... I suppose maybe you could make the Variables($car_type,$car_mod

Re: [PHP-DB] Time Difference

2002-02-15 Thread Lerp
Sorry Rick, I should've been more clear with my problem, but now it's not a problem anymore. I got it to work perfectly. The two times were the original starttime and then the endtime would be time() (the time now). My problem was with calculating the hours between the two, I got it a few moments

[PHP-DB] optimizing script...

2002-02-15 Thread jas
I have a script that prevents invalid characters from being passed from a html form to a mysql database using php and I am wondering if there is a way to condense it so instead of declaring the ereg_replace for each field in the html form, to simply use one function to remove invalid characters an

Re: [PHP-DB] counting multiple columns based on different values

2002-02-15 Thread John Hawkins
Peter, I totally appreciate the extra effort on this one! Just so you know, the results come back as two records per client. Like this: | ClientName | Status | Count | | Steve | 2 | 25| | Steve | 3 | 83| | Gary | 2 | 12| | Gary | 3 | 33|

RE: [PHP-DB] Time Difference

2002-02-15 Thread Rick Emery
Are you saying you got two different return values with the exact same input values for $hour, $minute, $second, $month, $day, $year?? -Original Message- From: Lerp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Time Difference

[PHP-DB] Time Difference

2002-02-15 Thread Lerp
Hi again. I have a date field in my mssql 7.0 db format : 2/14/2002 12:21:28 PM . I would like to know how to calculate the difference in seconds between 2 such timestamps. $starttime = mktime($hour, $minute, $second, $month, $day, $year); returns :1013776613 endtime = mktime($hour, $minute, $s

[PHP-DB] optimize table problem

2002-02-15 Thread Faye Keesic
Hi again. When I try to optimize a data table, I get this error: Optimize error: The handler for the table doesn't support check/repair. Is there something in mysql's settings that I need to change? -- Faye Keesic -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP-DB] Big speed problem with MySQL

2002-02-15 Thread Miles Thompson
How are you fetching the data? Do you have indexes on the key fields used in queries? Are you doing the work in SQL or sorting /rearranging a lot of arrays? There are many possibilities for slowness, but you have to tell us what you're doing. Regards - Miles Thompson At 11:53 AM 2/15/2002 +010

[PHP-DB] Big speed problem with MySQL

2002-02-15 Thread Arthur CARANTA
Hi everyone. I have a big problem with my billing software. I have coded it using PHP and MySQL as the database. Everything seems ok, but when I do accesses to my DB, it is very slow ! For example, I am able to download the csv file for a specified account (that is not the problem). If I downl