[PHP] table troubles

2001-10-30 Thread Nikola Veber
Hi ! I'm making a web site which allows user to add his own news, or other data to the page via the form. The user inputs the data into the textarea and the data is placed into a table. The problem is that all the text is placed into a single line ! Is there a html catch to prevent this, or

Re: [PHP] table troubles

2001-10-30 Thread Morten Winkler Jørgensen
NV Hi ! NV I'm making a web site which allows user to add his own news, or other data to the page NV via the form. The user inputs the data into the textarea and the data is placed into a NV table. The problem is that all the text is placed into a single line ! NV Is there a html catch to

Re: [PHP] Fatcow and MySQL-Front

2001-10-30 Thread Nikola Karoviæ
Hi, can't you do that with phpMyAdmin. If you dont have that on fatcow, you can put it your self and then load a database file. - volim popit, volim zagalamit - Original Message - From: René Fournier [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: 30. listopad

Re: [PHP] virtual

2001-10-30 Thread Nikola Karoviæ
you could try using require(/cgi-bin/folder/program.pl); instead - volim popit, volim zagalamit - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 30. listopad 2001 04:41 Subject: [PHP] virtual What would cause a fatal error using

[PHP] table troubles

2001-10-30 Thread Nikola Veber
Hi ! I'm making a web site which allows user to add his own news, or other data to the page via the form. The user inputs the data into the textarea and the data is placed into a table. The problem is that all the text is placed into a single line ! Is there a html catch to prevent this, or

[PHP] cookie, port 80

2001-10-30 Thread php-general
How can i send a cookie and specify the server port ? (i try www.mydomain.com:2000 but don't work) franck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] unsubscribe josh@gfunk007.com

2001-10-30 Thread Josh McDonald
unsubscribe [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] DB wrapper

2001-10-30 Thread Alberto
Any1 knows about a good class for DB abstraction? I need some scripts to work with mysql/pgsql. Thnx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP] Re: DB wrapper

2001-10-30 Thread _lallous
try http://phpclasses.upperdesign.com Alberto [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Any1 knows about a good class for DB abstraction? I need some scripts to work with mysql/pgsql. Thnx -- PHP General Mailing List (http://www.php.net/) To

[PHP] Greetings from Online Email Telphone Psychics at absolutelypsychic.com

2001-10-30 Thread Jackie W
Hi Greetings from http://www.absolutelypsychic.com I hope you are doing well. Our site has Professional, Ethical, and Accurate Psychics, Astrologers and Tarot Card readers that have been tested by management to assure authenticity. Our readers do not promise any false prophesies nor do they

[PHP] Re: DB wrapper

2001-10-30 Thread Julio Nobrega Trabalhando
There are a few: I use and I believe more in Pear. Metabase is huge. PhpLib, simple but effective. ADODB, nicely done. -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net Alberto [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Any1 knows

[PHP] ICQ activelist on PHP???

2001-10-30 Thread NetView Media
Isen't there an active ActiveList on ICQ where you can talk/chat about PHP-programming? /ReinerICQ: 22245643 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: downloading images

2001-10-30 Thread Moloko
Save the full size images as a file format that will not open automatically in the browser, such as TIF or BMP, then the image will automatically start downloading. Though I would't really worry about it, in my experience, most users seem fairly comfortable with the the old 'save picture as'

[PHP] Dir-list - FTP with fopen?

2001-10-30 Thread Reiner
If the FTP-module (ftp_nlist) is not enabled, how do I get a directorylist from a remote dir? /ReinerICQ: 22245643 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] query string

2001-10-30 Thread Richard Baskett
Ok I am pulling my hair out! Why if I pass error=5 through a query string like index.htm?error=5 and then echo it, it's correct, but when I do error=25 it echos 2T and when I do error=500 it echos 5TP? What the heck is going on here? I pass strings easy enough and I cant remember ever having

[PHP] sybase_query

2001-10-30 Thread André Castanheira
Hi, How can I get the error message from sybase_query ? It sends the message to the browser, but I'd like to treat it. Obrigado, André Castanheira Carioca Engenharia S.A. +55 21 3891-2200 r; 2325 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] close windows

2001-10-30 Thread André Castanheira
Hi, Is there a php command to close a window or return to the previous one ? Obrigado, André Castanheira Carioca Engenharia S.A. +55 21 3891-2200 r; 2325 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Different fonts in PHP generated images

2001-10-30 Thread Daniel BI
Hi all! Does anyone know how to put a text in other font than latin ones (Chinese, for example), on a PHP generated image? Do I need to install some new fonts? A different freetype library? Any clue greatly appreciated :) Daniel BI -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Fatcow and MySQL-Front

2001-10-30 Thread Wesley Furgiuele
Rene: This is a pain with FatCow -- I just went through this myself. The only method I was finally able to use was to SELECT ... INTO OUTFILE for all my tables; manually recreate the tables using their MySQL tools; then LOAD DATA INFILE for each of the outfiles I had created. Overall, their

[PHP] String handling with special char?

2001-10-30 Thread Andrew Cowles
Hi Guys Gals, Sorry to re-post this but I'm still stuck and have had no reply. I receive via HTTP GET a string variable in encoded HEX format, for example; script.php?text=%0A%01%00%B1%B2 My problem is that PHP sees the first occurance of %00 as a field terminator and so anything after it is

Re: [PHP] query string

2001-10-30 Thread Frewuill Rodriguez
hey take it easy men.. it's not you.. it's the encoding.. what's happening is that =20 =25 etc means a special caracther blank space etc.. try using url_encode() function to pass your parameters.. something like this would help $parameters = url_encode(error=25); index.htm?$parameters hope

Re: [PHP] String handling with special char?

2001-10-30 Thread Frewuill Rodriguez
just use url_encode() to encode your parameters and then pass them It's just like richard basket problem a few emails behind $parameters = url_encode(error=25); index.htm?$parameters Hope this helps - Original Message - From: Andrew Cowles [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Stefan Rusterholz
Hi Does someone out there know, how I can zip a folder with some files in it? It should be readable for Winzip. Enviroment: Win2000 Server. VB was available if useful. Additional Components (applications, dll's or whatever) could be loaded if needed. I didn't find a usable entry in the manual,

Re: [PHP] table troubles

2001-10-30 Thread Frewuill Rodriguez
just define a width for your table - Original Message - From: Nikola Veber [EMAIL PROTECTED] To: php forum [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 5:04 PM Subject: [PHP] table troubles Hi ! I'm making a web site which allows user to add his own news, or other data to the

Re: [PHP] close windows

2001-10-30 Thread Richard S. Crawford
window.close() It's JavaScript. PHP is a server-side language and cannot affect anything on the browser itself. PHP cannot: 1. Close a browser window 2. Spawn new windows 3. Produce pop-up boxes 4. Do form verification before the form is submitted 5. Do anything to a

Re: [PHP] String handling with special char?

2001-10-30 Thread Andrew Cowles
Hi Frewuill, Thanks for the mail. The parameters are passed from an end user via HTTP GET and on receipt I use urlencode($parametername) but, the parameter only contains data up to the 1st occurance of %00 and then ends. Calling the following code with 'script.php?text=%0A%01%00%B1%B2' would

RE: [PHP] Fatcow and MySQL-Front

2001-10-30 Thread René Fournier
Sorry, stupid question, but how do I load phpMyAdmin onto Fatcow? Won't that be as time-consuming as recreating all the tables in my database by hand, using their lame tools? (If there is an easy way, please let me know. Thanks.) ...Rene -Original Message- From: Nikola Karoviæ

Re: [PHP] String handling with special char?

2001-10-30 Thread Frewuill Rodriguez
well then you have to work on client side...doing urlenconde after receive parameters is useless. So i guess your client (end user) is not using a html form but sending parameters via HTTP GET as you said.. if you were using a html form you won't have this problem... so if you want to pass the

Re: [PHP] String handling with special char?

2001-10-30 Thread Andrew Cowles
Thanks Frewuill, You are a STAR! Andy On Tue, 30 Oct 2001, Frewuill Rodriguez wrote: well then you have to work on client side...doing urlenconde after receive parameters is useless. So i guess your client (end user) is not using a html form but sending parameters via HTTP GET as you

[PHP] Win98 + Apache + PHP4

2001-10-30 Thread p.whiter
Hi I have the above configuration installed along with mySQL, all works fine on my local machine except for error/warning messages whenever previewing the page in my browser where I am calling/setting a cookie variable... Does anyone know if there are any config settings I can change

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
I have the above configuration installed along with mySQL, all works fine on my local machine except for error/warning messages whenever previewing the page in my browser where I am calling/setting a cookie variable... A little more info re the error message would be useful. Make sure

Re: [PHP] virtual

2001-10-30 Thread Gary
Tried that, same result. looks like I am going to have to strip off the php from that page and change it to shtml Gary Nikola karoviæ wrote: you could try using require(/cgi-bin/folder/program.pl); instead - volim popit, volim zagalamit - Original Message - From:

Re: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Frewuill Rodriguez
check your php.ini and look for /tmp dir and change it for c:\php or c:\temp or c:\windows\temp or whatever you want - Original Message - From: p.whiter [EMAIL PROTECTED] To: PHP - GENERAL [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 11:20 AM Subject: [PHP] Win98 + Apache + PHP4

Re: [PHP] lesson in NOT how to run your php website ...

2001-10-30 Thread DL Neil
I teach law at a university .. I also run the website here ... Thankfully Tasmania is not considered part of Australia. :) *troll bait away* =but are you trolling for bad lawyer jokes to wind up brendan, or inviting the rest to take on the Aussies? =Tasmania advertises itself as the

Re: [PHP] \n's

2001-10-30 Thread Mike Frazer
Remember, those functions have return values. Gotta assign the return to a variable! $variable = [replacement_function]($args ... ); They don't change the value of the variable in the argument list, they take that value and put a new value in a new memory space. Unfortunately, they don't

[PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Julio Nobrega
Well, you could use exec(); or system(); to call a command line zipping application to compress the directory. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Stefan Rusterholz [EMAIL PROTECTED] wrote in message

Re: [PHP] editor for working with php

2001-10-30 Thread EDUMEXICO
Use Emacs, I think this is the best IDE. On Thu, Oct 25, 2001 at 11:10:36PM -0500, Ray Todd Stevens wrote: I ahve been using go-live (4.0) to edit pages containing php scripts. this is not really working well. Is there a better way or a better editor to use for this?

Re: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread p.whiter
Thanks for the replies, I think it has more to do with configuration settings than anything else as all the scripts work fine on remote Linux server, it is just on my win98 set-up the problem occurs.. I am looking in the php.ini, file the only reference to a tmp directory I can see is

Re: [PHP] editor for working with php

2001-10-30 Thread Henrik Hudson
No, use VIM :) There are PHP highlight rules available for it, look on the VIM site (www.vim.org) On Tuesday 30 October 2001 08:43, EDUMEXICO wrote: Use Emacs, I think this is the best IDE. On Thu, Oct 25, 2001 at 11:10:36PM -0500, Ray Todd Stevens wrote: I ahve been using go-live (4.0)

Re: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Stefan Rusterholz
Well, I would do that but I don't know such an application. Please, can you suggest me one? Stefan Rusterholz, [EMAIL PROTECTED] - Original Message - From: Julio Nobrega [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 4:40 PM Subject: [PHP] Re: Zipping a folder

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
Thanks for the replies, I think it has more to do with configuration settings than anything else as all the scripts work fine on remote Linux server, it is just on my win98 set-up the problem occurs.. I am looking in the php.ini, file the only reference to a tmp directory I can

RE: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Williams
Well, I would do that but I don't know such an application. Please, can you suggest me one? pkzip of course :) M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] PHP General Archive

2001-10-30 Thread John S. Huggins
Hello folks. I am yet another person having difficulty with 4.0.6 and GD graphic support. It has been a while since I have been on this list so I want to search the archives of this group. Where are the archives? I remember some archive last year with a black background. Thanks.

[PHP] Weird caching problem with PHP4/Apache

2001-10-30 Thread René Fournier
Having successfully uploaded my PHP4+MySQL site finally to Fatcow (and the MySQL stuff IS there--thanks for the help), I'm now left with making it actually work online. One curious problem: For every page in the site (*.php4), I include three parts, a header.inc (common to all), a body.inc

RE: [PHP] PHP General Archive

2001-10-30 Thread Matt Williams
http://www.progressive-comp.com/Lists/?l=php3-generalr=1w=2 M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Problem getting imagemagick to work with php...

2001-10-30 Thread Brian Aitken
Hiya I need to be able to automatically change the format and size of an image when a user uploads it and using imagemagick's tools seems like the way to go about it. Unfortunately the server I'm using is Windows based and it doesn't have imagemagick installed. I downloaded the Windows

Re: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Julio Nobrega Trabalhando
Well, (things are going pretty good, aren't they ;-)) Oh, old Dos memories coming Got it, pkzip was the name: http://www.google.com/search?sourceid=navclientq=pkzip -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net Stefan Rusterholz [EMAIL PROTECTED] wrote in

[PHP] Re: Weird caching problem with PHP4/Apache

2001-10-30 Thread Julio Nobrega Trabalhando
These lines will do what you asked, but I am unsure if they will resolve your problem (since I don't know Fatcow and how they configured the server). Anyway, here it is: header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');// Date in the past header ('Last-Modified: ' . gmdate('D, d M Y

[PHP] Re: DB wrapper

2001-10-30 Thread Manuel Lemos
Hello, Alberto wrote: Any1 knows about a good class for DB abstraction? I need some scripts to work with mysql/pgsql. If you are looking for a database abstraction package that lets you write applications that are absolutely database independent, ie, you don't need to handle database

Re: [PHP] Problem getting imagemagick to work with php...

2001-10-30 Thread Mark
On Tue, 30 Oct 2001 16:05:42 -, Brian Aitken wrote: Hiya I need to be able to automatically change the format and size of an image when a user uploads it and using imagemagick's tools seems like the way to go about it. Unfortunately the server I'm using is Windows based and it doesn't have

RE: [PHP] Re: Weird caching problem with PHP4/Apache

2001-10-30 Thread René Fournier
Thanks for the help, but I'm afraid it hasn't solved the caching problem, at least not with respect to the PHP random function... It's not as if the entire page get's cached, since there is an SQL query that selects a random row from a table--and that is random. But the PHP part of it--that is,

[PHP] PHP to MySQL and Date field

2001-10-30 Thread Jason
Here is my problem once again... =P I am wondering if I should change the date table to something other than date... maybe something like date_1? Would doing that resolve my issue, because of the fact that the date variable in php is function? Thanks in advance... Jason /* Form to supply

[PHP] Bug ? Script download problem if user abort download

2001-10-30 Thread Gianluca Morello
I have a download script on IIS 5 and Php 4.0.6 as cgi: $filename=PDF_PATH.$codfile..pdf; $fp=fopen($filename,rb); if ($fp) { header(Content-type: application/octet-stream\n ); header(Content-transfer-encoding: binary\n); header(Content-length: . filesize($filename) . \n);

[PHP] Re: header(Location:);

2001-10-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Alberto) wrote: Ok, it works fine for me, i can redirection, but I don't want the browser to load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN B.PHP, I know i can use include('a.php') or require('a.php') but I'm sure theres a way to say php parser to run

Re: [PHP] Re: header(Location:);

2001-10-30 Thread Steve Cayford
On Tuesday, October 30, 2001, at 11:41 AM, Henrik Hansen wrote: [EMAIL PROTECTED] (Alberto) wrote: Ok, it works fine for me, i can redirection, but I don't want the browser to load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN B.PHP, I know i can use include('a.php') or

[PHP] Installing ODBC

2001-10-30 Thread webmaster uva
Hello, I have problems compiling libiodbc-3.0.5 I have tried to compile being root and being a normal user and I get the same error. I execute $ ./configure --prefix=/usr/local --exec-prefix=/usr/local --with-iodbc-inidir=/etc --build=i686 and it works properly

RE: [PHP] Installing ODBC

2001-10-30 Thread Andrew Hill
Hi, You should compile --with-iodbc pointing to the odbcsdk directory, not just the libiodbc file. The SDK is available at www.iodbc.org. You will also need your LD_LIBRARY_PATH varible set to include the directory where libiodbc is. Best regards, Andrew Hill Director of Technology Evangelism

[PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
I am trying to pass a variable to a popup window, to do a search in a database, and display an image based on the results... Here is what I have messed up so far (this is the 1st time I have used php/mysql no userID/Pswd on local host) The script that passes the variable (variable does

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 10:13 am, turtle wrote: ? $link = mysql_connect('localhost')or die (Could not connect); mysql_select_db('img760')or die (Could not select database); $query = select ('imglocation','height','width') from img where imgname=$getimg; $imglocation = 'imglocation';

[PHP] Quick array question

2001-10-30 Thread David Yee
Hi. Is there an array function that deletes an array element (that's not at the beginning or the end of the array) and return the resultant array? E.g. this is what I want to do: $a = array(1, 2, 3, 4, 5); $b = array_element_delete_function($a, 2); $b now has 4 elements with the following

Re: [PHP] need coments...

2001-10-30 Thread Kurt Lieber
Well, my first comment would be to not send attachments to mailing lists. --kurt On Tuesday 30 October 2001 11:40 am, Galkov Vladimir wrote: Good day! I try to wrote Web-interface for DNS. Only simple test version now. I'd like to listen your comets to make real good and useful thing.

RE: [PHP] Quick array question

2001-10-30 Thread Matt Williams
Just found this in the manual notes http://www.php.net/manual/en/ref.array.php To delete an element from an array in an easy way, use unset($array[element]);... Funny those... manuals M: -Original Message- From: David Yee [mailto:[EMAIL PROTECTED]] Sent: 30 October 2001 19:03

Re: [PHP] Quick array question

2001-10-30 Thread David Yee
That doesn't seem to do what I want. That would only unset the value for the element, but the element is still there. E.g. $a = array(1,2,3,4,5) unset($a[2]); $a now = (1, 2, NULL, 4, 5), but I want (1, 2, 3, 4). David - Original Message - From: Matt Williams [EMAIL PROTECTED] To:

Re: [PHP] Quick array question

2001-10-30 Thread David Yee
Got it- thanks Philip. David - Original Message - From: Philip Olson [EMAIL PROTECTED] To: David Yee [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 11:27 AM Subject: Re: [PHP] Quick array question Check out this post:

Re: [PHP] Quick array question

2001-10-30 Thread David Yee
Well for that example I'm using 0 as the index for the first element of the array, so deleting element #2 results in 3 being deleted. BTW to correct myself in the second example I gave I want: $a = (1,2,4,5) instead of (1,2,3,4). $a = array(1,2,3,4,5) unset($a[2]); $a now = (1, 2, NULL,

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
. No reading that section of the manual did me no good. I do not understand other than I cannot store the results as a variable. Is there any of what I have done that is usable? A recommendation for a book that covers this would be helpful... the manual on this area is way to abbreviated for

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 11:58 am, turtle wrote: No reading that section of the manual did me no good. I do not understand other than I cannot store the results as a variable. yes, you can. Is there any of what I have done that is usable? yes, there is. see below. It's probably not

[PHP] Tree View

2001-10-30 Thread Ing. Gustavo Edelstein
Hi, Has anybody a snippet or something to build a treeview with data from a MySQL table ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus Argentina S.A. __ Visit us On Line at www.equiplus.com Email addresses: Operations: [EMAIL PROTECTED] Consulting:

[PHP] Re: Tree View

2001-10-30 Thread Philip Hallstrom
Check www.zend.com in the code gallery... On Tue, 30 Oct 2001, Ing. Gustavo Edelstein wrote: Hi, Has anybody a snippet or something to build a treeview with data from a MySQL table ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus Argentina S.A.

[PHP] does array sorted like you show in example?

2001-10-30 Thread Galkov Vladimir
Good day! ;-) does array sorted like you show in example? then the shortest way will be: $a = array_element_delete_function($a, 2); ... function array_element_delete_function($a, $ind) { $a[$ind] = $a[0]; unset($a[0]); return sort($a); } ofcourse if count($a) not criticaly

Re: [PHP] virtual

2001-10-30 Thread Nikola Karoviæ
no wait, try require or but not using apsolute path like require(../../cgi-bin/folder/program.pl); for eg. - volim popit, volim zagalamit - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 30. listopad 2001 16:30 Subject: Re: [PHP]

[PHP] Mail Handling Question

2001-10-30 Thread Reggie White
Hi. I'm new to PHP, and forgive me if I sound ridiculous but I have to ask. I'll be as clear as possible. I'm trying to do mail handling in php. I know already about the mail( ) function, but what it does isn't exactly what I need. I have an html form that posts the contents of it's field to a

Re: [PHP] Mail Handling Question

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 01:56 pm, Reggie White wrote: Now here's where I'm stuck. When the user is finished previewing the html letter, I want two things to happen: When the user submits, I want the page itself (with the variable in it) to be emailed to a specified recipient. I also want a

[PHP] Re: does array sorted like you show in example?

2001-10-30 Thread Galkov Vladimir
Good day! my fingersrun faster my head ;-) ofcourse... MUST be (not in one string...) function array_element_delete_function($a, $ind) { $a[$ind] = $a[0]; unset($a[0]); sort($a); // return $a; // } - Galkov Vladimir [EMAIL PROTECTED] ICQ 8487396 -- PHP General

[PHP] Re: Mail Handling Question

2001-10-30 Thread Mike Frazer
Create a template file with the letter text in it and something like %%variable%% where the variable text would go. After you've done that, set up your preview page like: html body form action=script.php method=post !-- Do this for each variable in the letter or one big variable for $contents

Re: [PHP] Searchengine friendly URLs

2001-10-30 Thread Chris Hayes
I heard google does follow links with the ?var=value part, others don't. So some people now work with page.html/var/value/var2/value2 don't ask me how it works though -- C.Hayes Droevendaal 35 6708 PB Wageningen the

RE: [PHP] Searchengine friendly URLs

2001-10-30 Thread Joseph Blythe
Not sure if you have seen this, it has been around for a while: http://www.phpbuilder.com/columns/tim2526.php3 Regards, Joseph -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Saturday, 27 October 2001 3:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Searchengine

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
. It is starting to make sense. I see the correlation between the manual example and the code you show. Surprisingly (and equally confusing) the book I have also uses a while loop with mysql_fetch_array to display a list. The getimg variable comes in from the javasript function on the other

Re: [PHP] table troubles

2001-10-30 Thread David Robley
On Tue, 30 Oct 2001 19:13, Morten Winkler Jørgensen wrote: NV Hi ! NV I'm making a web site which allows user to add his own news, or other data to the page NV via the form. The user inputs the data into the textarea and the data is placed into a NV table. The problem is that all the text

[PHP] Problems inserting single quote into Oracle database

2001-10-30 Thread Kevin Dewsnup
I am having problems with inserting single quote's into an oracle 8.1.7 database through a form. When inserting 'its' it works fine. When inserting 'it's' I get this error: OCIParse: ORA-01756: quoted string not properly terminated in blah... So then I try 'it''s' (which works in SQL*Plus) I

[PHP] show png in the browser

2001-10-30 Thread Luz Lopez
Hi All I configured the php with thelibrary GD, zlib, jpeg and libpng, I hae a program that generate a image, I can to save this png image but in my borwser I can't to see this image, the browser send me to save to my hard disk this image. I need to show this image in the browser, How can I

Re: [PHP] show png in the browser

2001-10-30 Thread Tyler Longren
It might just be your browser. I've viewed png's in IE before and it tried to make me download them instead of displaying them. Tyler - Original Message - From: Luz Lopez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 31, 2001 12:38 AM Subject: [PHP] show png in the

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 02:53 pm, you wrote: It is starting to make sense. I see the correlation between the manual example and the code you show. Surprisingly (and equally confusing) the book I have also uses a while loop with mysql_fetch_array to display a list. You would use a while

[PHP] mysql prob w/ php

2001-10-30 Thread sc
Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1; $p = 24; $p++) { $test =

Re: [PHP] Problems inserting single quote into Oracle database

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:01, Kevin Dewsnup wrote: I am having problems with inserting single quote's into an oracle 8.1.7 database through a form. When inserting 'its' it works fine. When inserting 'it's' I get this error: OCIParse: ORA-01756: quoted string not properly terminated in

Re: [PHP] show png in the browser

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:08, Luz Lopez wrote: Hi All I configured the php with thelibrary GD, zlib, jpeg and libpng, I hae a program that generate a image, I can to save this png image but in my borwser I can't to see this image, the browser send me to save to my hard disk this image. I

[PHP] mysql php prob...

2001-10-30 Thread sc
Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1; $p = 24; $p++) { $test =

[PHP] php mysql prob...

2001-10-30 Thread sc
Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1; $p = 24; $p++) { $test =

Re: [PHP] php mysql prob...

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:25, sc wrote: Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1;

Re: [PHP] php mysql prob...

2001-10-30 Thread Jason Brooke
Or the single quotes around the table name in the sql string Your query is probably broken - do some error checking after your database call with mysql_error() and see what the problem is. Guess; the table name. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] php mysql prob...

2001-10-30 Thread sc
Yeah sorry about that, didn't mean to send out 3... Ok i got it working... thanks for all the replys... -sc David Robley [EMAIL PROTECTED] wrote in message 01103111392904.28397@www">news:01103111392904.28397@www... On Wed, 31 Oct 2001 11:25, sc wrote: Hi; i keep getting an error of:

Re: [PHP] php mysql prob...

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:47, Jason Brooke wrote: Or the single quotes around the table name in the sql string Your query is probably broken - do some error checking after your database call with mysql_error() and see what the problem is. Guess; the table name. That's what I meant - but I

Re: [PHP] show png in the browser

2001-10-30 Thread Luz Lopez
Hi David, of course, I send of header: header(Content-type: image/png); But the send me to save the file Thanks, Regards, From: David Robley [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Luz Lopez [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] show png in the browser Date: Wed,

Re: [PHP] php mysql prob...

2001-10-30 Thread sc
ok i thought it would be working, but on testing it more it still isn't going for me i took off the ' ' from the table name and its still coming up with an error on line 17 with the same error message... the mysql_error() isn't echoing anything that has gone wrong.. (did before).. Any ideas?

Re: [PHP] show png in the browser

2001-10-30 Thread Jim Lucas
what type of browser are you using to view this image? jim - Original Message - From: Luz Lopez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 31, 2001 1:56 AM Subject: Re: [PHP] show png in the browser Hi David, of course, I send of header: header(Content-type:

Re: [PHP] php mysql prob...

2001-10-30 Thread sc
mysql_error returns nothing, mysql_errno returns 0 Jim Lucas [EMAIL PROTECTED] wrote in message 03ad01c161b0$026caee0$[EMAIL PROTECTED]">news:03ad01c161b0$026caee0$[EMAIL PROTECTED]... mysql_error() and mysql_errno() return the value. $error = mysql_error($dblink); $errno =

[PHP] date problem

2001-10-30 Thread Steve Tsai
For reference: OS: OpenBSD 2.9 Web Server: Apache1.3.19 PHP Version: 4.0.6 My problem is that date() and all the other time functions return GMT instead of localtime. system(date) returns the correct localtime. Those functions used to return localtime since GMT. The problem seems to have

Re: [PHP] php mysql prob...

2001-10-30 Thread Jim Lucas
are you pass the two functions you return link from mysql_connect() or mysql_pconnect() ?? jim - Original Message - From: sc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 30, 2001 6:15 PM Subject: Re: [PHP] php mysql prob... mysql_error returns nothing, mysql_errno

Re: [PHP] show png in the browser

2001-10-30 Thread Luz Lopez
Hi, I use Internet Explorer 5.003 Windows 2000 Profesional Regards, From: Jim Lucas [EMAIL PROTECTED] To: Luz Lopez [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] show png in the browser Date: Tue, 30 Oct 2001 18:00:09 -0800 what type of browser are you using to view this image?

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
Kurt Lieber You would use a while loop if/when you have multiple records to retrive. From your original code example, it seemed as though you would only have one record. (though, for safety's sake, you should code a LIMIT into your sql statement) Yes I only need one image location with

  1   2   >