[PHP] PDF error with pdf_open_png

2001-01-11 Thread Jared Howard
I'm trying to include images in my PDF file using pdf_open_png. (I've also tried using pdf_open_gif and pdf_open_image_file.) But when I add the line: $logo = pdf_open_png($pdf, "$CFG->imagedir/logo.png"); I get the error: Cannot find server or DNS Error (The page cannot be displayed), and

Re: [PHP] PDF error with pdf_open_png

2001-01-11 Thread Jared Howard
>Its also very handy when you get an error like that to check you log files, >usually when you get no error and no page like that, php has segfaulted >apache, might want to check :) there might be other errors in the log files >to help you too. > >Chris Lee >Mediawaveonline.

[PHP] MYSQL start an auto_increment at a certain number

2001-01-11 Thread Jared Howard
In MySQL, I need to know how to create a row in a table that is an auto_increment and starts at a certain number. I've tried using: CREATE TABLE something ( id_numberint default '5000'auto_increment, UNIQUE id_number (id_number) ); but it sets the default to NULL. How do I do that?

[PHP] rewriting the browser's url

2001-01-13 Thread Jared Howard
I need to know how to be able to eliminate the querysting portion of the URL that is displayed on the users browser. I don't want it possible to click refresh and reenter in the same querystring that was used previously (eg. php runs a mysql query of INSERT based on the querystring which only sho

[PHP] firewalls & MySQL sessions

2001-02-26 Thread Jared Howard
I'm having trouble establishing MySQL sessions when the client is running from behind a remote firewall. (I.e., the MySQL server has a static internet IP, but the remote client which is accessing, or better said, attempting to access the MySQL database via PHP in their browser can't seem to estab

[PHP] Shorten String or encode/decode a string

2001-05-03 Thread Jared Howard
I want to shorten a string that I'll be throwing through the url. It's not so much that it's too long, but it's ugly. What it is, is my query string that I need to pass through to different pages, i.e. viewing multiple pages. Anyway, I was looking at encode and decode features but not really s

[PHP] MySQL function in a Table's Column

2001-11-24 Thread Jared Howard
I'm not really sure what I should be looking for in the MySQL manual. I basically want to make a column that will do math to other columns, like in a spreadsheet program. Is it possible? And if so, what do I look for? And if you can give me an example that would be great. -- PHP General Mail

[PHP] MySQL "DISTINCT" query

2001-03-21 Thread Jared Howard
I need to retrive all column information from a DISTINCT query. But so far, I only can get one column to show by using this: SELECT DISTINCT my_column FROM my_table; which then gives me a list of my_column information and is correct, but I need all information from all columns. Querying this:

[PHP] FORM with a posting value

2001-04-06 Thread Jared Howard
I have a page with multiple form submit buttons that carry different values to do different functions and such. ... Which works great!! However, I grow tiresome of the typical button "look", and in my attempt to use an image instead: failed. Is there a way to do this? I have changed

[PHP] Retrieve HTML page

2001-02-01 Thread Jared Howard
I've been looking through the manual but I keep on missing the function or it doesn't exist. I need to know if there is a way to get a specified HTML page (as if you were to go to the page by typing in the url in your browser) and either turn it into a string or array or something that I would be

Re: [PHP] converting a date to a string format

2001-02-13 Thread Jared Howard
date("Ymd", mktime(0,0,0,date("d"),date("m")-14,date("Y"))); At 03:57 PM 2/13/01 -0500, Don wrote: >Does someone have a snippet of code that retrieves today's date, >subtracts 14 days and converts the result to a string in the form >"MMDD"? > >If possible, please reply to my email. > >Thanks,

[PHP] object/array with repeating values

2001-02-20 Thread Jared Howard
I'm make an object or an array from the results of a query to my MySQL database. The value returned is entered in s and any repeated values are unwanted. Is there a way to remove them easily? eg. this?> I was thinking of creating an array before the while, then in the while add each "$r->t

Re: [PHP] object/array with repeating values (WORKS)

2001-02-20 Thread Jared Howard
doff, I knew there had to be a simple answer. Works great, thanks. At 02:26 PM 2/21/01 +1300, Simon Garner wrote: >From: "Jared Howard" <[EMAIL PROTECTED]> > >> I'm make an object or an array from the results of a query to my MySQL >> database. The