[PHP-DB] Re: How to Make a Pop Up Window and show there a mysql table?

2003-01-20 Thread Edwin Boersma
I use this: function CopyValue(ChangeWhat,ValueToCopy,aForm) { changer = window.opener.document.+ aForm + . + ChangeWhat + .value=' + ValueToCopy.toUpperCase() + '; eval(changer); submitme = window.opener.document. + aForm + .submit(); eval(submitme); window.close(); }

[PHP-DB] Array Issue help please

2003-01-20 Thread Dave Carrera
Hi All I have nearly got this working but it dose not seem to loop though or return the result I have done something wrong and I ask one of you coders that are much cleverer that I to glance over my code to see the obvious mistake / s. Thank you in advance for any help Dave Carrera //

Re: [PHP-DB] Array Issue help please

2003-01-20 Thread Jason Wong
On Monday 20 January 2003 17:50, Dave Carrera wrote: I have nearly got this working but it dose not seem to loop though or return the result I have done something wrong and I ask one of you coders that are much cleverer that I to glance over my code to see the obvious mistake / s. Can you

RE: [PHP-DB] Echo with extra characters

2003-01-20 Thread Boaz Yahav
In case the string is always Language you can use : $mainarea = substr($mainarea,2,8); If not, than you need Regexps berber -Original Message- From: Alex Francis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:41 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Echo with extra

RE: [PHP-DB] php - excel

2003-01-20 Thread Boaz Yahav
In case you are on a windows machine : http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1820 berber -Original Message- From: David Rice [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 19, 2003 5:14 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] php - excel Just a question,

[PHP-DB] ghost parse error?

2003-01-20 Thread Addison Ellis
hello, if you could check this code that would be awesome. i am getting a parse error on line 16 but line 16 has nothing on it and my eyes are missing something... maybe my mind. anyway... thank you again. best, addison ? session_start(); if

[PHP-DB] getting client browser info

2003-01-20 Thread Mignon Hunter
Hello all, I need a quick script to get the client's browser make and model. ie 5 ns 4.7 etc. I've found some info in two books but no examples of how to use it to get your visitors info. Not coming up with anything helpful on the php site - will continue to look. If anyone has done this

RE: [PHP-DB] ghost parse error?

2003-01-20 Thread zmn
Why in the first place do you break you php and start it over again? I mean the ? and the ? you might just as well keep it going. Please try to get the code in one long row :) zmn -Oorspronkelijk bericht- Van: Addison Ellis [mailto:[EMAIL PROTECTED]] Verzonden: maandag 20 januari

[PHP-DB] Re: header?

2003-01-20 Thread Bayu Susiloadhy
there is a lot ways to do it,this is one and not the best of them create link in the particular category file: a href=subcat.php?category=1subcat=1subcat 1/a a href=subcat.php?category=1subcat=2subcat 2/a then in subcat.php: include(subcat.$category.$subcat..php); when you click the 2nd link

Re: [PHP-DB] getting client browser info

2003-01-20 Thread Jeffrey_N_Dyke
$_SERVER['HTTP_USER_AGENT'] - contains most/all of what you need. if you want color settins etc,. you'll have to include some javascript. hth jeff Mignon

Re: [PHP-DB] getting client browser info

2003-01-20 Thread bbonkosk
Well, it is a global variable/defined by PHP write a script like this: ?php phpinfo(); ? and run it. This shoudl shed some light on the situation... -Brad Hello all, I need a quick script to get the client's browser make and model. ie 5 ns 4.7 etc. I've found some info in two books but

RE: [PHP-DB] ghost parse error?

2003-01-20 Thread Hutchins, Richard
Could you please identify which line of code is line 16? -Original Message- From: zmn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 10:16 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] ghost parse error? Why in the first place do you break you php and start it over

RE: [PHP-DB] getting client browser info

2003-01-20 Thread zmn
Use this to get the array in which you can find the var you need: ?php print pre; print_r($_SERVER); print /pre; ? So this is the var you're looking for: $_SERVER[HTTP_USER_AGENT]; -Oorspronkelijk bericht- Van: Mignon Hunter [mailto:[EMAIL PROTECTED]] Verzonden: maandag 20 januari

[PHP-DB] Problem in the returnvalue of a function

2003-01-20 Thread Ruprecht Helms
Hi, I have a problem in the response of a php-function. Here the query on the mysql-prompt. mysql select * from product_price where product_id=7 and from_price =5; +--++---++--+---

[PHP-DB] Re: ghost parse error?

2003-01-20 Thread Bayu Susiloadhy
actually your script shows like a mess in my mail, so i don't know where line 16 is,but i looking for the error by eliminating lines that i considered it's right while ($scrow = mysql_fetch_object($scobj); and i think may be your problem is here! -- STOP doing things that the computer

RE: [PHP-DB] Problem in the returnvalue of a function

2003-01-20 Thread Philip Zee
Your last line in the function returns True, which is 1 internally. This makes the function return 1 always. Philip -Original Message- From: rhelms@linux [mailto:rhelms@linux]On Behalf Of Ruprecht Helms Sent: Monday, January 20, 2003 3:37 AM To: [EMAIL PROTECTED] Subject: [PHP-DB]

[PHP-DB] Re: Problem in the returnvalue of a function

2003-01-20 Thread Bayu Susiloadhy
Ruprecht Helms writes: function select_price($product_id,$quantity) { --cut-- return True; } --cut-- $price=$ps_product_price-select_price($cart[$i][product_id],$cart[$i][quanti ty]); //printf(%.2f, $price[product_price]); printf(%.2f,$price); you set the

[PHP-DB] getting client browser info

2003-01-20 Thread Mignon Hunter
Thanks everybody. That is what I was needing. Question: Why is it that from an IE client I get the following: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Why does it say mozilla ??? Here's my code: Your are currently using: br ?printf ($_SERVER[HTTP_USER_AGENT]); ?br You are using :

Re: [PHP-DB] getting client browser info

2003-01-20 Thread Mignon Hunter
Hey guys, Does anyone know of script or tutorial to point me to that can obtain client browser info, (got that part) but then using php, be able to use if statements to distinguish what they're using. example msie 5.1 - netscape - aol...And act upon it. I know the logic but am clueless on the

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Mignon Hunter [mailto:[EMAIL PROTECTED]] Sent: 20 January 2003 16:32 Question: Why is it that from an IE client I get the following: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Why does it say mozilla ??? The clue here is in the next word:

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Mignon Hunter [mailto:[EMAIL PROTECTED]] Sent: 20 January 2003 17:05 Does anyone know of script or tutorial to point me to that can obtain client browser info, (got that part) but then using php, be able to use if statements to distinguish what they're

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Mignon Hunter
Ah, but I wasnt at a mozilla browser, I was accessing this script from a ie browser client. From my mozillia client I get the following: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020918 browser The script sits on an apache web server? On Mon, 2003-01-20 at 12:29, Ford, Mike

[PHP-DB] Count AND sum columns values

2003-01-20 Thread Cesar Aracena
Hi all, I have this table which stores products and quantities ordered by customers, and for billing purposes, I need to fetch not only how many products but also how many where ordered for each one but not detailed, but as one big result, so later I can charge for individual gift packages and

RE: [PHP-DB] getting client browser info

2003-01-20 Thread Ford, Mike [LSS]
-Original Message- From: Mignon Hunter [mailto:[EMAIL PROTECTED]] Sent: 20 January 2003 18:40 Ah, but I wasnt at a mozilla browser, I was accessing this script from a ie browser client. Let me repeat -- that was the IE browser *masquerading* as Mozilla-compatible. ALL versions

[PHP-DB] Php and mysql, a rookie problem.

2003-01-20 Thread Rafael Santos Garcia
Hi, I had already install mysql and php, the apache was in my linux distribution (Mandrake) and also one php, but i have install the last version in rpm. I have stop and start the apache, and the php works without any problem. But when i call to a mysql function in the php code its give to me

[PHP-DB] not a valid MySQL result resource

2003-01-20 Thread Addison Ellis
hello and thank you for your time. can you tell me why the below: i think this whole section is line 22 because whatever i change in these first four lines still has the error message point to line 22. $cobj = mysql_db_query($dbname,select * from category where id=$category); //line 22 $crow

Re: [PHP-DB] Php and mysql, a rookie problem.

2003-01-20 Thread bbonkosk
Make a script to dump phpinfo() ?php phpinfo(); ? I don't think mysql support was part of your PHP binary. Just get the Apache source and PHP source and re-build it, then you KNOW what is in there and what is not. -Brad Hi, I had already install mysql and php, the apache was in my linux

[PHP-DB] elseif with header

2003-01-20 Thread Addison Ellis
hello and thank you... i have two pages where on 1-category is selected. on 2 subcategory is selected. on submit from page two it goes to direct.php. there i have if ($category = 2 and $subcategory = 52) { header(Location: http://www.vanderbilt.edu/register/ca/vacation_rentals.php;); }

Re: [PHP-DB] elseif with header

2003-01-20 Thread Larry E. Ullman
if ($category = 2 and $subcategory = 52) { header(Location: http://www.vanderbilt.edu/register/ca/vacation_rentals.php;); } elseif ($category = 2 and $subcategory = 50) { header(Location: http://www.vanderbilt.edu/register/ca/rentals.php;); } , etc. for some reason all the elseifs

[PHP-DB] Sybase_Connect

2003-01-20 Thread Cameron Powell
Im trying to figure out Sybase and I cant even seem to get past the first step of connecting Heres my code: ?php $con = sybase_connect(localhost, EXP, SQL); sybase_select_db(EXPADMIN); $qry = sybase_query(select * from EXP.access, $con);

Re: [PHP-DB] Sybase_Connect

2003-01-20 Thread Buics
try to look at your php.ini file, then uncomment this line extension=php_sybase_ct.dll and also make sure that you setup your extension directory. ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\ after that, restart your web server. best regards --buics

RE: [PHP-DB] not a valid MySQL result resource

2003-01-20 Thread John W. Holmes
When you get that error, it generally means your query failed, or you have the wrong variable in a mysql_fetch_*() function. Use mysql_error() to see what the error is if the query failed. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today.

[PHP-DB] Unable to load dynamic library php_oci8.dll on Windows XP SPK1

2003-01-20 Thread Andre Matos
Hi, I am receiving the mensage Unable to load dynamic library C:\ApacheGroup\PHP\extensions\php_oci8.dll I am using Windows XP SPK1 with Apache2.0.43 with PHP4-4.2.3. I tried to use with Oracle but when I uncomment the line: extension=php_oci8.dll I started to receive this mensage: Unable to

[PHP-DB] Re: Unable to load dynamic library php_oci8.dll on Windows XP SPK1

2003-01-20 Thread Edin Kadribasic
You need to have Oracle client on the machine where PHP is installed. Edin Andre Matos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am receiving the mensage Unable to load dynamic library C:\ApacheGroup\PHP\extensions\php_oci8.dll I am using Windows

RE: [PHP-DB] elseif with header

2003-01-20 Thread zmn
You can just as simply include the files you need, there is no need for using the headers. Did the script return any errors? -Oorspronkelijk bericht- Van: Addison Ellis [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 21 januari 2003 1:19 Aan: [EMAIL PROTECTED] Onderwerp: [PHP-DB] elseif

[PHP-DB] postgresql primarykeys foreignkeys tablenames screenfieldlength

2003-01-20 Thread Kevin Gordon
Any suggestions or improvements to the following code would be much appreciated. Please send me an email: function kgtables () { if ($this-connection) { $tablelist = ; $sql = SELECT