[PHP] How to get data from database with a click
Dear Friends, When we click a combo box, in a perticular file, the output from the database should display in the same screen, in a text box or a combo box (We want this to happen without pressing the submit button). Any clue please Subodh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:27 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] php, search engine that index via local filesystem? Hi, Do you want to provide a web interface to your local file system? well the easiest would then be to just exec locate, which will make use of the slocate db. Alternatively you can try to exec find. These can be done painlessly and you don't have to install any software. If you need a more sophisticated solution i belive htdig has the facility to index from local files. If you are looking to build a full fledged search engine aspseek and mnogosearch (both open source) are some of the best around. all the best Louie Miranda wrote: >Do you know any? > > >--- - >Thanks, >Louie Miranda > > > > > > > -- Raditha Dissanayake - http://www.radinks.com/sftp/ Lean and mean Secure FTP applet with Graphical User Inteface. just 150 Kilo Bytes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A newbie on Board!
Hi, I have just started off myself to learn PHP. I have installed PHP 4.2.3 and Apache 1.3.27. I have built some sample pages which are running fine. But now I want to integrate PHP with Oracle. Can somebody help me how to do it ? Subodh Gupta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] A newbie on Board!
Hi all, thanks for the prompt reply. The problem is not that I don't know how to use functions and all. I tried using various function. But I get fatal error everytime I use some function. I think, some extensions (dll files are missing in my installation of php.) how can I figure this out? Subodh Gupta "Peter Houchin" To: "Subodh Gupta" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]<[EMAIL PROTECTED]> .au> cc: Subject: RE: [PHP] A newbie on Board! 28/10/2002 12:02 PM jump along to php.net/manual/en and have a look in there and it will show ya how to connect to oracle ( I can't remember :D ) also check out phpbuilder.com and phpbeginner.com they'll both have tutorials for connecting to oracle from memory :) Cheers > -Original Message- > From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] > Sent: Monday, 28 October 2002 5:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] A newbie on Board! > > > Hi, > > I have just started off myself to learn PHP. I have installed PHP 4.2.3 > and Apache 1.3.27. I have built some sample pages which are running > fine. But now I want to integrate PHP with Oracle. Can somebody help me > how to do it ? > > Subodh Gupta > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error connecting to oracle.
Hi all, I get the following error while trying to connect to oracle. Please help me. Fatal error: Call to undefined function: ora_logon() in c:\program files\apache group\apache\htdocs\one.php on line 5 Subodh Gupta Tata Consultancy Services. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error connecting to oracle.
I checked up phpinfo(). It does not have oracle listed. What do I need to do now? Subodh Gupta Tata Consultancy Services. "Faisal Abdullah" To: "Subodh Gupta" <[EMAIL PROTECTED]>, ix.com.my>cc: Subject: RE: [PHP] error connecting to oracle. 28/10/2002 03:21 PM "undefined function" means PHP doesn't know where to get the function from. You probably didn't configure oci_8 libraries correctly. Try phpinfo(), and see under the configuration. Check whether oci8 is available. Regards Faisal -Original Message- From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] Sent: Monday, October 28, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP] error connecting to oracle. Hi all, I get the following error while trying to connect to oracle. Please help me. Fatal error: Call to undefined function: ora_logon() in c:\program files\apache group\apache\htdocs\one.php on line 5 Subodh Gupta Tata Consultancy Services. __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error connecting to oracle.
There is no entry of oracle in any section. The rest of things which you have pointed out are already in place. How do I go aheadnow? Subodh Gupta "Faisal Abdullah" To: "Subodh Gupta" <[EMAIL PROTECTED]>, ix.com.my>cc: Subject: RE: [PHP] error connecting to oracle. 28/10/2002 03:42 PM Where was it listed? In the 'configure command' section? Or the 'configuration' section? If its available in the 'configure command' ONLY, doesn't mean that its working properly. Also, check the following: 1.Copy d:\php\php4ts.dll to c:\winnt\system32 // depends on where your dll file is 2. Modify php.ini file for enable oci8 extension. Uncomment the php_oci8.dll line in c:\winnt\php.ini ;extension=php_mssql.dll extension=php_oci8.dll ;extension=php_openssl.dll 3. Edit extension_dir Location ; Directory in which the loadable extensions (modules) reside. extension_dir = "D:\PHP\extensions" // change this to whatever your extention directory is. Regards, Faisal -Original Message- From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] Sent: Monday, October 28, 2002 5:35 PM To: Faisal Abdullah; [EMAIL PROTECTED] Subject: RE: [PHP] error connecting to oracle. I checked up phpinfo(). It does not have oracle listed. What do I need to do now? Subodh Gupta Tata Consultancy Services. "Faisal Abdullah" To: "Subodh Gupta" <[EMAIL PROTECTED]>, ix.com.my>cc: Subject: RE: [PHP] error connecting to oracle. 28/10/2002 03:21 PM "undefined function" means PHP doesn't know where to get the function from. You probably didn't configure oci_8 libraries correctly. Try phpinfo(), and see under the configuration. Check whether oci8 is available. Regards Faisal -Original Message- From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] Sent: Monday, October 28, 2002 5:18 PM To: [EMAIL PROTECTED] Subject: [PHP] error connecting to oracle. Hi all, I get the following error while trying to connect to oracle. Please help me. Fatal error: Call to undefined function: ora_logon() in c:\program files\apache group\apache\htdocs\one.php on line 5 Subodh Gupta Tata Consultancy Services. __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] error connecting to oracle.
I have checked that all my dll's are in c:\winnt\system32 directory. Further I have un-commented the requisite lines from php.ini and as you said, restarted my apache server after doing all this. Still the problem persists. Subodh Gupta "Faisal Abdullah" To: "Subodh Gupta" <[EMAIL PROTECTED]>, ix.com.my>cc: Subject: RE: [PHP] error connecting to oracle. 28/10/2002 04:00 PM If its not there, than I only see these possibilities: 1. You have not placed the correct dll's in the correct location. 2. You have not edited php.ini to in the extension section for oci8 3. You have not restarted apache after performing item [2] above Regards, Faisal > -Original Message- > From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] > Sent: Monday, October 28, 2002 5:56 PM > To: Faisal Abdullah; [EMAIL PROTECTED] > Subject: RE: [PHP] error connecting to oracle. > > > > There is no entry of oracle in any section. > The rest of things which you have pointed out are already in place. > > How do I go aheadnow? > > Subodh Gupta > > > > > > > "Faisal > > Abdullah" To: "Subodh Gupta" > <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> > ix.com.my>cc: > > Subject: RE: [PHP] > error connecting to oracle. > 28/10/2002 > > 03:42 PM > > > > > > > > > > Where was it listed? > In the 'configure command' section? Or the 'configuration' section? > If its available in the 'configure command' ONLY, doesn't mean that its > working properly. > > Also, check the following: > > > 1.Copy d:\php\php4ts.dll to c:\winnt\system32 // depends on where your dll > file is > > 2. Modify php.ini file for enable oci8 extension. > Uncomment the php_oci8.dll line in c:\winnt\php.ini > ;extension=php_mssql.dll > extension=php_oci8.dll > ;extension=php_openssl.dll > > 3. Edit extension_dir Location > ; Directory in which the loadable extensions (modules) reside. > extension_dir = "D:\PHP\extensions" // change this to whatever your > extention directory is. > > Regards, > Faisal > > -Original Message- > From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] > Sent: Monday, October 28, 2002 5:35 PM > To: Faisal Abdullah; [EMAIL PROTECTED] > Subject: RE: [PHP] error connecting to oracle. > > > > I checked up phpinfo(). It does not have oracle listed. What do > I need to > do now? > > Subodh Gupta > Tata Consultancy Services. > > > > > "Faisal > Abdullah" To: "Subodh Gupta" > <[EMAIL PROTECTED]>, > > ix.com.my>cc: > Subject: RE: [PHP] error > connecting to oracle. > 28/10/2002 > 03:21 PM > > > > > > > "undefined function" means PHP doesn't know where to get the > function from. > You probably didn't configure oci_8 libraries correctly. > Try phpinfo(), and see under the configuration. > Check whether oci8 is available. > > Regards > Faisal > > -Original Message- > From: Subodh Gupta [mailto:Subodh.Gupta@;seepz.tcs.co.in] > Sent: Monday, October 28, 2002 5:18 PM > To: [EMAIL PROTECTED] > Subject: [PHP] error connecting to oracle. > > > > Hi all, > > I get the following error while trying to connect to oracle. Please help > me. > > Fatal error: Call t
[PHP] A simple problem!
Can You figure out the mistake here...?? In the following code... In the function print_entry which I am calling in some other file, I want each entry to printed in a different colour. $colour = array("808080","80","FF00FF","FF","008080"); $colouroffset=0; function print_entry($row,$preserve="") { // walk through any arguments passed in after the first two $numargs = func_num_args(); for ($i = 2; $i < $numargs; $i++) { $field = func_get_arg($i); // This will transform a label string to a valid database // field name - e.g., "Last Name" becomes "last_name" $dbfield = str_replace(" ", "_", strtolower($field)); $dbvalue = cleanup_text($row[$dbfield],$preserve); $name = ucwords($field); print <<\n $name:\n // The problem is here.. the value of $colour[$colouroffset] is not $dbvalue\n // getting substituted. Can you tell me why?? \n\n EOQ; } $colouroffset++; } Subodh Gupta I have learned, Joy is not in things, it is in us. You will ultimately be known by what you give and not what you get.
Re: [PHP] checking url
Hi Dmitry, In case you want a regular expression to check if it is a valid url you can try this... $url = "yoururl"; if(empty($url) && !eregi("^http://[A-Za-z0-9\%\?\_\:\~\/\.-]+$,$url)) $errmsg="$url doesn't look like a valid URL\n"; I hope this helps. Subodh Gupta I have learned, Joy is not in things, it is in us. You will ultimately be known by what you give and not what you get. - Original Message - From: "Dmitry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 25, 2001 2:14 AM Subject: [PHP] checking url Hello all. Can you tell me, how can I check url address? Also I want to know error, which return. Dmitry -- 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 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] How can this be done?
Hi All, I created a table using the create command. create table trivia ( entry_id integer not null auto_increment, trivia text null ); Now I have a fle tvia.txt, the content of which are as follows: The average person's left hand does 56% of the typing. The longest one-syllable word in the English language is "screeched". All of the clocks in the movie "Pulp Fiction" are stuck on 4:20. No word in the English language rhymes with month, orange, silver, or purple. I want to insert each line of the file in a new row in the table. I wrote the following code for it. errorno=".mysql_errno() ."error=".mysql_error() ."query=".$query ); echo "Line $line_num: ". $line . "\n"; } ?> I got the following error. Query failed: errorno=1064 error=You have an error in your SQL syntax near 's left hand does 56% of the typing. ')' at line 1 query=insert into trivia (trivia) values ('The average person's left hand does 56% of the typing. ') Now I know that I got the error because there was ( ' ) in the first line. So how do I prevent this. Or in other words insert into the table text containing ( ' ) and ( " ) or for that matter any metacharacter. Thank You in Advance. Subodh Gupta I have learned, Joy is not in things, it is in us. You will ultimately be known by what you give and not what you get. -- 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] dynamically adding rows to same form.
Hi Rahul A simple solution could be if(empty(num_of_rows)){num_of_rows=some_default_value ;} while (num_of_rows>0){ what you want to do in that row } Well, this is a very raw answer, I haven't even taken care of proper syntax.. But I hope may help you in a small way. If you want do tell me and I will try to write a small example for you. But for that you should tell me the problem in more detail ;-) Subodh Gupta I have learned, Joy is not in things, it is in us. You will ultimately be known by what you give and not what you get. - Original Message - From: "Rahul Bhide" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 28, 2001 12:28 PM Subject: [PHP] dynamically adding rows to same form. Gurus , Problem : my php form has a 4 text field with one row . I want to put an "add another row" button at the end of the row such that clicking will bringup the previous row as well as add a new row below it for further input of data . let me know , thanks and regards, ~Rahul -- 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 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] Hosts.
Check out www.spaceports.com. Subodh Gupta I have learned, Joy is not in things, it is in us. You will ultimately be known by what you give and not what you get. - Original Message - From: "David Bruce" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 7:31 AM Subject: [PHP] Hosts. My host is Windows 98, Xitami and unstable MySQL and Perl/CGI. I'm looking for a *free* host, with CGI, Perl 5+, MySQL access, SSI & PHP. Thanks, Owen -- 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 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]