php-general Digest 30 Jun 2007 13:16:14 -0000 Issue 4877

Topics (messages 257999 through 258006):

implementation of guest book
        257999 by: Shiv Prakash

Re: Handling animated GIFs with GD?
        258000 by: Manuel Lemos

Re: simple OCR in php
        258001 by: Manuel Lemos

Selecting Rows Based on Row Values Being in Array
        258002 by: kvigor
        258003 by: Jim Lucas
        258004 by: kvigor
        258005 by: Jim Lucas

Re: HELP - I have tried to unsubscribe from this listmutipletimes but cannot.
        258006 by: Brian Seymour

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Sir,
   
  I have implemented the guest book in web site successfully and its working 
also without any problem but administration side is asking for ID and Password, 
my request is how do I get that because I have tried my level best to find it 
in the site but I couldn’t get it ,there was not any option for that and as of 
downloading is concern it was free, therefore I request you to help me out of 
this and solve my problem,
   
  Thank you
   
  Shiv Prakash
  Email Id 2. [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hello,

on 06/26/2007 06:38 AM Tijnema said the following:
> Is it possible to parse animated GIFs with GD, just frame by frame?

Try Laszlo Zsidi GIF animation classes:

http://www.phpclasses.org/gifmerge

http://www.phpclasses.org/gifsplit

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Hello,

on 06/29/2007 01:24 PM Ray said the following:
> Hello all,
> I am looking for a way to incorporate some simple OCR into a php script. The 
> user will bulk scan a pile of invoices. I want the php script to look at each 
> invoice and read a number off the invoice. The image will then be renamed, 
> and be organized into a directory and the file name will be added to a 
> database. (all of these steps are straight forward once the number is read.) 
> I have no problem with a system that requires a special OCR font and/or some 
> sort of registration mark to help locate the Invoice number. Can anybody tell 
> me of any tools out there that can do this?

I think you are looking for something like this:

http://www.phpclasses.org/phpocr

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
Hello All,

I'm attempting to return rows from a mysql DB based on this criteria:

I have a list, in the form of an array that I need to compare against each 
row
in the table.  Where theres a match I need that entire row returned.

e.g.    $varListof 3outOf_10Fields = array(6blue40lbs, 7orange50lbs, 
8orange60lbs, 9purple70lbs);

The array contains 3 of the db row fields in 1 value. However there are 10 
fields/columns in the table.

===============
what table looks like  |
===============
                  size       color    weight
ROW 1    | value1 | value1 | value1 | value1 | value1 | value1 |

So how could I set up a query that would SELECT the entire row, if the row 
contained $varListof 3outOf_10Fields[1].

Open to any suggestions or work arounds.  I'm playing with extract() but 
code is too crude to even post.

--- End Message ---
--- Begin Message ---
kvigor wrote:
Hello All,

I'm attempting to return rows from a mysql DB based on this criteria:

I have a list, in the form of an array that I need to compare against each row
in the table.  Where theres a match I need that entire row returned.

e.g. $varListof 3outOf_10Fields = array(6blue40lbs, 7orange50lbs, 8orange60lbs, 9purple70lbs);

The array contains 3 of the db row fields in 1 value. However there are 10 fields/columns in the table.

===============
what table looks like  |
===============
                  size       color    weight
ROW 1    | value1 | value1 | value1 | value1 | value1 | value1 |

So how could I set up a query that would SELECT the entire row, if the row contained $varListof 3outOf_10Fields[1].

Open to any suggestions or work arounds. I'm playing with extract() but code is too crude to even post.

I would suggest approaching the problem with a slightly different thought.

just have the sql concat() the columns together and then compare.

something like this should do the trick

$list = array(
                '6blue40lbs',
                '7orange50lbs',
                '8orange60lbs',
                '9purple70lbs',
                );

$SQL = "
SELECT  *
FROM    my_Table
WHERE   CONCAT(value1, value2, value3) IN ('".join("','", $list)."')
";

mysql_query($SQL);

this should take, for each row in the DB, value1 + value2 + value3 and create one string from them, then it will compare each string in the
IN (...)  portion to each entry in the $list array().

Let me know if you need any further help

--- End Message ---
--- Begin Message ---
Will do.  Thanks.


----- Original Message ----- From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "kvigor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 30, 2007 1:46 AM
Subject: Re: [PHP] Selecting Rows Based on Row Values Being in Array


kvigor wrote:
Hello All,

I'm attempting to return rows from a mysql DB based on this criteria:

I have a list, in the form of an array that I need to compare against each row
in the table.  Where theres a match I need that entire row returned.

e.g. $varListof 3outOf_10Fields = array(6blue40lbs, 7orange50lbs, 8orange60lbs, 9purple70lbs);

The array contains 3 of the db row fields in 1 value. However there are 10 fields/columns in the table.

===============
what table looks like  |
===============
                  size       color    weight
ROW 1    | value1 | value1 | value1 | value1 | value1 | value1 |

So how could I set up a query that would SELECT the entire row, if the row contained $varListof 3outOf_10Fields[1].

Open to any suggestions or work arounds. I'm playing with extract() but code is too crude to even post.

I would suggest approaching the problem with a slightly different thought.

just have the sql concat() the columns together and then compare.

something like this should do the trick

$list = array(
'6blue40lbs',
'7orange50lbs',
'8orange60lbs',
'9purple70lbs',
);

$SQL = "
SELECT *
FROM my_Table
WHERE CONCAT(value1, value2, value3) IN ('".join("','", $list)."')
";

mysql_query($SQL);

this should take, for each row in the DB, value1 + value2 + value3 and create one string from them, then it will compare each string in the
IN (...)  portion to each entry in the $list array().

Let me know if you need any further help

--- End Message ---
--- Begin Message ---
K. Hayes wrote:
Will do.  Thanks.


----- Original Message ----- From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "kvigor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 30, 2007 1:46 AM
Subject: Re: [PHP] Selecting Rows Based on Row Values Being in Array


kvigor wrote:
Hello All,

I'm attempting to return rows from a mysql DB based on this criteria:

I have a list, in the form of an array that I need to compare against each row
in the table.  Where theres a match I need that entire row returned.

e.g. $varListof 3outOf_10Fields = array(6blue40lbs, 7orange50lbs, 8orange60lbs, 9purple70lbs);

The array contains 3 of the db row fields in 1 value. However there are 10 fields/columns in the table.

===============
what table looks like  |
===============
                  size       color    weight
ROW 1    | value1 | value1 | value1 | value1 | value1 | value1 |

So how could I set up a query that would SELECT the entire row, if the row contained $varListof 3outOf_10Fields[1].

Open to any suggestions or work arounds. I'm playing with extract() but code is too crude to even post.

I would suggest approaching the problem with a slightly different thought.

just have the sql concat() the columns together and then compare.

something like this should do the trick

$list = array(
'6blue40lbs',
'7orange50lbs',
'8orange60lbs',
'9purple70lbs',
);

$SQL = "
SELECT *
FROM my_Table
WHERE CONCAT(value1, value2, value3) IN ('".join("','", $list)."')
";

mysql_query($SQL);

this should take, for each row in the DB, value1 + value2 + value3 and create one string from them, then it will compare each string in the
IN (...)  portion to each entry in the $list array().

Let me know if you need any further help
one other thing, make sure that you run each of the values in the $list array() through mysql_real_escape_string(). That way it is all nicely encoded for the SQL statement.
--- End Message ---
--- Begin Message ---
Patrick, did you trying going to http://www.php.net/unsub.php yet?

 

=D

 

Brian Seymour

AeroCoreProductions

http://www.aerocore.net/

 

-- 

PHP General Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php

 


--- End Message ---

Reply via email to