[PHP] OOT - postgress help

2001-05-20 Thread toto

First, i'm sorry if this is an out of topic subject, but i've try to post
this email to one of postgres mailing list, and i can't find any help there.
i wish, if one of you know the solutions of my problem, you can share it
with me.

i create a little stored procedure using plpgsql from pgaccess. function
input is table name where the function will simply iterate along each record
in the table and raise notice for each of them.

when i run this function from shell command using : select
browse_table('sex'), the function error with error message 'ERROR:  parser:
parse error at or near "$2"'. As i concern, this error came from the line i
mark because the function can't receive variable 'table_name' to generate
query.

i'm new here, so can some body help me, please

the source code is below.
===
DECLARE
table_name ALIAS for $1;
each_row RECORD;
BEGIN
FOR each_row IN select * from table_name LOOP ==> i believe this's an
error source
raise notice 'row';
END LOOP;
END;
===
function description :
function name : browse_table
returns   : bpchar
parameters: bpchar
language  : plpgsql


-toto-



-- 
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] saving uploaded image as file Vs. directly to database

2001-03-29 Thread toto

what's the difference between them, i mean for effectiveness and performance
?


-toto-
Imagination is more important than knowledge.



-- 
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] Web Directory

2001-03-21 Thread toto

Hi all,

can some body tell me where can i find articles and technical support about
develop web directory ?

thanx.


-toto-



-- 
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] Send & Receive SMS from handphone from/to PC

2001-03-09 Thread toto

First of all, i'm sorry if my email is OOT.

I want to connect my pc to handphone, say siemens c25. What kind of hardware
should i have to build this application ? do i need to use GSM Modem/PC Card
? or there is/are other way to do that more easily ?

BTW, i've try to install gsmlib downloaded from
www.pxh.de/fs/gsmlib/download/, and succeed, but when i try to use one of
the sample included to send sms (using command gsmsendsms), there's nothing
happen to my pc. Can some body help me with this ?


TIA.
-toto-






-- 
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] file listener

2001-02-22 Thread toto

Hi...

I have a file, say temp.txt. It's just a kind of logging file. When my
system write one line data to this file, is there any real time way to know
this event from php (or other scripting language) ?


TIA
-toto-



-- 
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] smtp protocol

2001-02-20 Thread toto

Hi...anybody can help me about sending email directly using local smtp port
(25). I've read some articles, still, i don't have a clear explanation. i.e
: some using \n to separate between each header, but others use \r\n.


-toto-



-- 
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]




RE: [PHP] Multiple Selection.

2001-02-18 Thread toto


the solution is javascript-based rather than php-based.

Just put this codeand when you submit, the value you'll process stored
in variable hidden_list_selected. each value selected are separated by comma
delimiter.




function insert(thisObject){
thisForm = eval("document.frmInput");
thisForm.hidden_list_selected.value = "";

// flag to put comma as separate variable for each 
selected category
flag_first = true;


for(counter=0;counter