[PHP] Re: sending variables

2001-02-20 Thread Ifrim Sorin
In test1.php you shoul have ? $qry=getenv("QUERY_STRING"); $rosen=substr($qry,6); print("$rosen"); ? Sorin Ifrim Rosen [EMAIL PROTECTED] wrote in message 96tdvp$oo7$[EMAIL PROTECTED]">news:96tdvp$oo7$[EMAIL PROTECTED]... Hi, I have two simple php files: main.php: A

Re: [PHP] php variables in sql statements.

2001-02-19 Thread Ifrim Sorin
It is possible, but the syntax is : $sql = "select businessname from main where businesstype = 'consultancy' and " .$community." != '0'"; This is the case where $comunity is the name of a field. Regards Sorin Ifrim - Original Message - From: Matt Davis [EMAIL PROTECTED] To: Php

Re: [PHP] Is it possible to send a html page via mail()???

2001-02-18 Thread Ifrim Sorin
Hi, Try this : ? $qry=getenv("QUERY_STRING"); $sirarg=explode("",$qry); $url_adr=$sirarg[0]; $mail_adress=$sirarg[1]; $fcontents = join ('', file ($url_adr)); $posta=mail($mail_adress ,"Requested URL: ".$url_adr, $fcontents ,"From: [EMAIL PROTECTED]\n"."MIME-Version:

Re: [PHP] REgular expression....difficult is it?

2001-02-18 Thread Ifrim Sorin
The ? meta-character is used for matching zero or one occurence of the preceding character , in this case , l . T'his means that you'll match all words that begin with 'Wi' and continue with one or zero 'l' . HTH Sorin Ifrim - Original Message - From: Dhaval Desai [EMAIL PROTECTED] To:

Re: [PHP] Dir? Can I get a dir listing of the current dir my php file is in?

2001-02-17 Thread Ifrim Sorin
Hi, You could try this: $script_name = getenv("PATH_TRANSLATED"); $dir_name = dirname($script_name); $d = dir($dir_name); $i = 0; while ($file = $d-read()) $file_array[i] = $file ; } HTH Sorin Ifrim - Original Message - From: Brandon

Re: [PHP] parse error driving me nuts ...

2001-02-15 Thread Ifrim Sorin
Try to use == instead of = Sorin Ifrim - Original Message - From: Andrew [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 15, 2001 5:33 PM Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot the parse error? It's throwing up on the first

Re: [PHP] hidden form field.

2001-02-13 Thread Ifrim Sorin
Hello, The reason is that you might want to pass to PHP script that process the form information that is not found in any other shown field of the form , for example an id code. HTH Sorin Ifrim - Original Message - From: Angerer, Chad [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Return ODBC Results to an array

2001-02-13 Thread Ifrim Sorin
You can use mysql_fetch_array() for each row returned in the cursor. Sorin Ifrim - Original Message - From: Karl J. Stubsjoen [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 7:32 PM Subject: [PHP] Return ODBC Results to an array Is there a

Re: [PHP] Return ODBC Results to an array

2001-02-13 Thread Ifrim Sorin
For ODBC, the function is odbc_fetch_into(). Sorin Ifrim - Original Message - From: Karl J. Stubsjoen [EMAIL PROTECTED] To: PHP Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 7:32 PM Subject: [PHP] Return ODBC Results to an array Is there a way to return the results

Re: [PHP] rewriting this SQL query to remove subselect

2001-02-11 Thread Ifrim Sorin
You could try a two step query: $querywords="CREATE TABLE temptable SELECT ... "; $sel_querywords=mysql_query($querywords); $search = "SELECT count(search_table.word) as score, search_table.qid,page_data.contents FROM search_table,page_data,temptable WHERE page_data.pID =