Re: [PHP] Cannot generate system identifier error while validating

2004-05-05 Thread Jeremy Clifton
On May 5, 2004, at 2:24 PM, Richard Davey wrote:
I've been running a web page through the W3C MarkUp Validation Service
and have nailed all the errors bar one (which just happens to occur
460 times!) - but I'm stumped to know how to get around it.
When validating I get loads of:
Line X, column Y: cannot generate system identifier for general entity 
f
Line X, column Y: reference not terminated by REFC delimiter
Line X, column Y: reference to external entity in attribute value
[Cut Some Text Here]
Does anyone know what needs to be done in order to get a Querystring
value like that through the validator?
Richard,
What's happening is the validator is seeing the ampersand in the link 
and expecting it to indicate the beginning of an entity. Change your 
links so that they read like so:

http://www.yourdomain.com/page.php?arg1=1234amp;arg2=4321
Then those validation problems should go away.
Jeremy [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Tables in a pdf files

2004-04-13 Thread Jeremy Clifton
On Apr 13, 2004, at 9:10 AM, Jean-Marie Ferdègue wrote:

Hi,

I would like to generate a table in a pdf file.
I would recommend the PDF class you can find here:
http://www.ros.co.nz/pdf/
It has support for tables and is pretty easy to use, from my 
experience. Previously, I had used another solution called htmldoc (you 
can probably find it on Google) that will convert HTML to a PDF file, 
but it's not as easy to deal with, and the PDFs it creates are, in my 
opinion, not nearly as nice as the ones created by PDF class above.

Jeremy

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


[PHP] PEAR Sequences

2004-04-05 Thread Jeremy Clifton
Greetings,

Has anyone out there transitioned an existing app from using the 
mysql_* functions in PHP to PEAR DB?

I'm re-writing an existing PHP application, and I'm required to utilize 
PEAR's DB class as the database layer. Currently, the application is 
using the mysql_* functions to access the database and the primary 
key/identity column is using AUTO_INCREMENT to calculate the id for 
each record in several tables.

I realize that PEAR doesn't provide direct access to the last insert id 
(like I could get with mysql_insert_id()), and instead utilizes the 
sequences facility to emulate AUTO_INCREMENT (I'm assuming this is to 
provide similar functionality to some engines that don't have 
AUTO_INCREMENT). So, I need to have a seamless way to transition from 
using the AUTO_INCREMENT.

In experimenting, I've seen that when creating a sequence, PEAR DB 
creates a table named {$sequence_name}_seq and that table contains a 
single record with a single column that contains the last used sequence 
id.

So, let's assume I have a table called item_master, and I'm going to 
utilize a sequence I'm going to name item_master as well. Normally PEAR 
would create an item_master_seq table and keep track of the unique ID 
in that table. When I implement the new code, can I just create a 
item_master_seq table in the production database with the appropriate 
characteristics, update the record in that table to the next available 
id for the item_master table, and then turn off AUTO_INCREMENT on the 
table? In experimenting, this appears to be the case, but since I'm 
going to updating a production application, but I want to be absolutely 
sure this isn't going to cause any unforseen problems before I do this.

Thanks in advance,
Jeremy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php