RE: [PHP-DB] date conversions

2004-12-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 December 2004 06:00, neil wrote: Hi I am needing to convert a d/m/y date such as 30/11/2004 into the format that mysql can use ie. 2004-11-20 If I try the following:

RE: [PHP-DB] MYSQL Maximum Time Exceeded

2004-12-16 Thread aNNa
This not be what you need, but I think there are some squiggle brackets missing. The curly brackets aren't the problem as they're not needed for just one statement. Examples at: http://www.php.net/manual/en/language.control-structures.php#control-structures.if anna -- PHP Database Mailing

[PHP-DB] Pagination

2004-12-16 Thread David Ziggy Lubowa
Hey guys, I am working on an internal db and i have a script[below] which does some searching for me, now i am no expert in php but atleast i can always read up, i want to add some kind of pagination because just incase i search for somethign in particular i dont want it to display 100

Re: [PHP-DB] Pagination

2004-12-16 Thread Ignatius Reilly
have a look at the PEAR Pager class. very useful. _ - Original Message - From: David Ziggy Lubowa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 16 December 2004 23:38 Subject: [PHP-DB] Pagination Hey guys, I am working on an internal db and i have a

Re: [PHP-DB] Pagination

2004-12-16 Thread Bruno B B Magalhães
Hi you all, here is how I am doing in a veery big class of mine.. Course that uses class's specific terms, but it's very easy to understand. = /* * Fetch paginated results

RE: [PHP-DB] PHP 4.3.10RC2 - Any change in the way rows are fetch ed ?

2004-12-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 December 2004 12:51, Vincent KONIECZEK wrote: Hi there, I was testing PHP 4.3.10RC2 with a well-tested web application when I saw it failed badly. After a little

[PHP-DB] PHP 4.3.10RC2 - Any change in the way rows are fetched ?

2004-12-16 Thread Vincent KONIECZEK
Hi there, I was testing PHP 4.3.10RC2 with a well-tested web application when I saw it failed badly. After a little debug, I have found that the problem comes from this SQL query: SELECT CONCAT(num) AS k FROM user WHERE uid LIKE '%%' where user is a table with num as the PK and uid as a

RE: [PHP-DB] mysql Index table

2004-12-16 Thread Bastien Koert
for inserts , yes, it does for lots of update, deletes it might be worth to periodically drop and rebuild the indeces bastien From: Yemi Obembe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-DB] mysql Index table Date: Thu, 16 Dec 2004 04:59:40 -0800 (PST) just want to know if mysql

[PHP-DB] apparent mysql float behavior change from 4.0 to 4.1 (without any warning?)

2004-12-16 Thread Norland, Martin
I've got some strange mysql behavior, wondered if anyone encountered it. I have a database with some float(4,3) fields. I have a version of this running on mysql 4.0[.23], and another running on mysql 4.1[.7]. When I insert, for example, 12 into it - the 4.0 version stores '12.00' - but the 4.1

RE: [PHP-DB] Spot the deliberate mistake...

2004-12-16 Thread Norland, Martin
-Original Message- From: Mark Benson [mailto:[EMAIL PROTECTED] The following SQL statement returns an error. What is wrong with it? The error is stated as being near 'ON DUPLICATE KEY UPDATE foo_no='$data[1]', alt_no='$data[2]', descript='$data[3]', pr' INSERT INTO `foobar2` SET

Re: [PHP-DB] odbc_connect() parameters help please

2004-12-16 Thread Greg Jackson
Thanks, no luck tho... Here's the code: if($_SESSION[VIEW] == private) if (($odbc_conn = odbc_connect(D3_ACTIVE,,)) === false) die(ODBC connect call failed); and the result: Warning: odbc_connect(): SQL error: [Raining Data][ODBC D3 Driver]Logon failed. Check D3 connection parameters and

Re: [PHP-DB] Pagination

2004-12-16 Thread Graham Cossey
Try heading over to www.phpfreaks.com, they have a couple of tutorials/examples on how to achieve this. HTH Graham. On Thu, 16 Dec 2004 14:38:29 -0800, David Ziggy Lubowa [EMAIL PROTECTED] wrote: Hey guys, I am working on an internal db and i have a script[below] which does some

Re: [PHP-DB] Looping within a string?

2004-12-16 Thread Jason Wong
On Friday 17 December 2004 10:33, Chris Payne wrote: Im having to send an email with looped results, but Im having problems. I can send an email no problem, and this code works OUTSIDE of the string, but not inside, can anyone see what is going wrong? Please explain what you are doing. A

RE: [PHP-DB] Looping within a string?

2004-12-16 Thread Chris Payne
Hi there, Well basically I have a list of items and their prices etc . which have to be sent via email, so I need to store the data in a string. I THOUGHT I could execute the loop with all the elements (Such as table rows etc ...) inside a string, but I was wrong, so how can I store the data

RE: [PHP-DB] Looping within a string?

2004-12-16 Thread David Robley
On Fri, 17 Dec 2004 13:54, Chris Payne wrote: Hi there, Well basically I have a list of items and their prices etc . which have to be sent via email, so I need to store the data in a string. I THOUGHT I could execute the loop with all the elements (Such as table rows etc ...) inside

Re: [PHP-DB] Looping within a string?

2004-12-16 Thread Jason Wong
On Friday 17 December 2004 11:24, Chris Payne wrote: Please do not top post. Well basically I have a list of items and their prices etc . which have to be sent via email, so I need to store the data in a string. I THOUGHT I could execute the loop with all the elements (Such as table rows

[PHP-DB] characters problem

2004-12-16 Thread Panos Yahoo
Dear All, I am using php and mysql the last two years, and I still cannot find the way to update a field on mysql from php that containts the single quotes ( ` and ' ) Examples Here is an example of my index.php file. I have to type something on Comments field

[PHP-DB] Re: characters problem

2004-12-16 Thread Nadim Attari
$myquery=INSERT INTO `$table` (`comments`) VALUES ('$mycomments'); $mycomments = addslashes($mycomments); $myquery = INSERT INTO $table (comments) VALUES ('$mycomments'); See: http://www.php.net/addslashes Hope it solves the problem. nadim attari -- PHP Database Mailing List

[PHP-DB] mysql Index table

2004-12-16 Thread Yemi Obembe
just want to know if mysql automatically update an index table if new datas are inserted into the original table. for example, if i insert a row of data to a table I'have already created an index table for, would mysql add the row to the table? - A passion

[PHP-DB] Spot the deliberate mistake...

2004-12-16 Thread Mark Benson
The following SQL statement returns an error. What is wrong with it? The error is stated as being near 'ON DUPLICATE KEY UPDATE foo_no='$data[1]', alt_no='$data[2]', descript='$data[3]', pr' INSERT INTO `foobar2` SET part_no='$data[0]', foo_no='$data[1]', alt_no='$data[2]',

[PHP-DB] html display

2004-12-16 Thread Kevin Russell
Hi list, and yes I am a newcomer to this list but not to the realm of lamp's deve, any who I would like to know if any one has any good resources for making a web page display at 800x600 fix res, no matter what the display is set to in their machine, I'm moving to php5, just a simple

RE: [PHP-DB] Spot the deliberate mistake...

2004-12-16 Thread Mark Benson
On Thursday, December 16, 2004, at 05:21PM, Norland, Martin [EMAIL PROTECTED] wrote: INSERT INTO `foobar2` SET part_no='$data[0]', foo_no='$data[1]', alt_no='$data[2]', descript='$data[3]', price='$data[4]', unit_sale='$data[5]', unit_issue='$data[6]', weight='$data[7]', brand='$data[8]',

RE: [PHP-DB] Spot the deliberate mistake...

2004-12-16 Thread Norland, Martin
-Original Message- From: Mark Benson [mailto:[EMAIL PROTECTED] If I try that it returns: You have an error in your SQL syntax near 'ON DUPLICATE KEY UPDATE' at line 1 so I guess something doesn't work there. I also tried it with and without the line ending and it didn't work either

RE: [PHP-DB] html display

2004-12-16 Thread Bastien Koert
for displays bigger than 8x6 you can use a div to border the page. for displays with res smaller, you're s.o.l. you cannot force the browser to a smaller res. bastien From: Kevin Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-DB] html display Date: Thu, 16 Dec 2004 11:02:15

[PHP-DB] html display

2004-12-16 Thread Kevin Russell
for displays bigger than 8x6 you can use a div to border the page. for displays with res smaller, you're s.o.l. you cannot force the browser to a smaller res. bastien that's ok, I want it to display 8x6 if you have your display set to that, or if you have it set to a higher resolution I want

Re: [PHP-DB] html display

2004-12-16 Thread Jochem Maas
sorry but this has nothing to do with: 1. DBs 2. PHP 3. LAMP what your talking about is rather trivial clientside (browser) content styling. making a page display at a fixed width can be done in any number of ways, the oldest way would be to use a simple table set at the correct width and place