[PHP] problem with my recursive function

2005-05-13 Thread p80
I'm trying to display messages on my forum recursively, each message can have answers, the id of the parent post is in parentmessageid, the problem is that it only displays post that don't have answers ie post that have parentmessageid null /* here is my table: ++---+-

[PHP] problem with my recursive function

2005-05-13 Thread p80
you can check it out there: http://www.hashmysql.org/paste/viewentry.php?id=249 also here it is: /*I'm trying to display messages on my forum recursively, each message can have answers, the id of the parent post is in parentmessageid, the problem is that it only displays post that don't have an

[PHP] noob need help for sessions

2005-04-06 Thread p80
I'm having problem with my session, when I login my session is registered ok but when I click on another page it's canceled again. I use that kind of link: index.php?menu=voyage&sid=$sess_id then on top of the page I use: if(session_id()){ session_id(strip_tags($_GET['sid'])); session_start();

[PHP] (noob) listing folder content

2005-04-03 Thread p80
I have a folder let's call it "/rep" and would like to list all files in it and for each file $f I would like to check if "$f == $some_value" and if it does "echo $f" any idea how to do that? thanx in advance Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] newbie php/mysql need help

2005-03-13 Thread p80
I do a mysql request like this one: SELECT DISTINCT (brand), COUNT( brand )FROM `machines` where category like 'sold' group by brand" I get this from mysql: brand COUNT( brand) brandx4 brandy12 how can I echo this result in php? thanx in advance Pat -- P

[PHP] inserting arabic into mysql

2005-03-13 Thread p80
I have a text area form and when I insert it into mysql I get letters like this: Ã"ÃÅÃÂÃÂÃâÃ"ÃâÃâÃÂÃÅÃÂÃ" ÃâÃÅÃÂÃ" ÃÂÃÅ Ã"ÃÂÃÂÃÅ... instead of arabic letters. anything I know do to get it right? thanx in advance

Re: [PHP] free php live chat with visitor/customer script

2005-03-11 Thread p80
t, leave a message if offline, push urls, quick responses, Customizable graphics, and multiple operators. runs on your server and is open source GPL. " cheers Pat On Friday 11 March 2005 01:17 am, p80 wrote: > I was recently visiting a commercial site and suddunly a window chat popped >

[PHP] free php live chat with visitor/customer script

2005-03-10 Thread p80
I was recently visiting a commercial site and suddunly a window chat popped up and some assistant asked me if I needed some help. I thought this was pretty cool and I was wondering if such a thing existed in php, i know there are lots of php live chat script out there but I'm not sure if they al

[PHP] upload and resize image script

2005-03-03 Thread p80
hey all I'm looking for a simple script that would upload an image and resize it to thumbnail using a form to upload the picture. anyone has a good script for that? thanx in advance Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [noob] can't submit simple form, need help

2005-03-03 Thread p80
any idea why this simple peace of code is not working? http://hashphp.org/pastebin?pid=1880 thanx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread p80
On Sunday 12 December 2004 05:15 pm, Jason Wong wrote: > On Sunday 12 December 2004 22:33, p80 wrote: > > > eg do you want to only make available > > > specific pre-defined bits of data to client websites, > > > > yes this is how I'd like to proceed > &g

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread p80
>> I have several website that use mysql as a database and I would like them >>to access each other DB. The problem is that I can't connect to each other >>mysql >> DB so I'm looking for a way to do so. >Why aren't you able to connect to the other databases? cause hosters forbid it. -- PHP Gener

Re: [PHP] sharing info between websites with XML?

2004-12-12 Thread p80
On Sunday 12 December 2004 03:16 pm, Jason Wong wrote: > On Sunday 12 December 2004 21:35, p80 wrote: > > I have several website that use mysql as a database and I would like them > > to access each other DB. The problem is that I can't connect to each > > other mysql D

[PHP] sharing info between websites with XML?

2004-12-12 Thread p80
I have several website that use mysql as a database and I would like them to access each other DB. The problem is that I can't connect to each other mysql DB so I'm looking for a way to do so. I'm thinking of droping the mysql database in xml files that could be parse using php xml parser but I'

Re: [PHP] PHP Working With Excel File ?

2004-11-03 Thread p80
With excel, export your exel file to CSV (by doing save as...) then you can import your CSV file to mysql using the phpmyadmin import interface On Tuesday 02 November 2004 04:11 am, Sejati Opreker wrote: > Yes, I'm planning to work with MySQL, but the problem > accour from the first time, 'cause

Re: [PHP] PHP Working With Excel File ?

2004-10-31 Thread p80
On Monday 01 November 2004 02:58 am, Sejati Opreker wrote: > Hi, > Can PHP work with Excel files as database ? > If not, how can I conver it to MySQL format and > reconvert it to Excel 'coz I need it to report it > in Excel format, > Thx With exel, export your exel file to CSV (by doing save as...

Re: [PHP] PHP Working With Excel File ?

2004-10-31 Thread p80
On Monday 01 November 2004 02:58 am, Sejati Opreker wrote: > Hi, > Can PHP work with Excel files as database ? > If not, how can I conver it to MySQL format and > reconvert it to Excel 'coz I need it to report it > in Excel format, With exel, export your exel file to CSV (by doing save as...) then

[PHP] need advice on an i18n english to arabic function

2004-06-02 Thread p80
I have a website in English, it is translated in many languages already (Spanish, french, German...), and i wanna translate it in Arabic, everytime i have a word in English i use a function like this i18n(MyEnglishWord) and the i18n function look up in an arabic.inc that contains a list of Engli

[PHP] writing meta information into png

2004-03-07 Thread p80
is there a class or a function that makes it possible to write meta information into a png or jpeg image? any suggestion? thanx in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php