Re: [PHP-DB] button control

2002-09-05 Thread Gurhan Ozen
PHP is a server-side scripting language, there is no way for it to know what is going on client window, that's a job for Javascript. But if you are using them in a form you can give them name/value to use them as form variables which can be used in the form action. This is a general PHP question,

[PHP-DB] button control

2002-09-05 Thread Meltem Demirkus
Hi , Does anybody know how php understand which button is pushed on a page ..? Is there anyway to do different applications according to the different 2 button on a page?.. thanks... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: mysql_connect

2002-09-05 Thread Bryan McLemore
Sorry about the private email didn't mean too. The email header shows you as it being from you and when I hit "reply" it defaults to go to you. Sorry bout that. Well on the goodside I got it fixed. Thanks for the feedback. The thing that got me was not having "root" has the user. Well thanks

FW: [PHP-DB] Re: mysql_connect

2002-09-05 Thread Brent Houle
Sorry, I think I orignially sent reply to wrong poster. That was confusing I might have missed the first of your posts and may be repeating someone else's suggestions but have you checked the hosts that the mysql user account that your are using can connect from the right areas. In the user tab

RE: [PHP-DB] Re: mysql_connect

2002-09-05 Thread Brent Houle
I might have missed the first of your posts and may be repeating someone else's suggestions but have you checked the hosts that the mysql user account that your are using can connect from the right areas. In the user table of the mysql database insure that the user account you are using has the p

Re: [PHP-DB] PHP htaccess username grab

2002-09-05 Thread Rasmus Lerdorf
$REMOTE_USER On Thu, 5 Sep 2002, Keith Spiller wrote: > Hello, > > If I were to use a plain old htaccess file with a htpasswd file for user >authentication, rather than php files, could PHP somehow later retrieve the username >used through some system or browser variables? > > I would assume t

[PHP-DB] PHP htaccess username grab

2002-09-05 Thread Keith Spiller
Hello, If I were to use a plain old htaccess file with a htpasswd file for user authentication, rather than php files, could PHP somehow later retrieve the username used through some system or browser variables? I would assume that the browser keeps the username and password as long as the ses

Re: [PHP-DB] Re: mysql_connect

2002-09-05 Thread David Robley
On 3 Sep 2002 at 23:00, Bryan McLemore wrote: > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 03, 2002 9:31 PM > Subject: [PHP-DB] Re: mysql_connect > > > > In article <000c01c253b2$506d7530$0101a8c0@fwcmain>, > > [E

Re: [PHP-DB] Table formatting a link from a mysql query result

2002-09-05 Thread Aaron Merrick
Brad, Thanks a million! That does the trick. Aaron On 9/5/02 3:38 PM, "Brad Bonkoski" <[EMAIL PROTECTED]> wrote: > $variable_to_be_passed = 'some value'; > echo "I am a > link"; > > I think this should do it, not quite sure what you mean by wrappinga > table cell in a anchor tag? Of course i

Re: [PHP-DB] database result: tables with 2 coloumns

2002-09-05 Thread Brad Bonkoski
How's this? (MYSQL example) $query = "select NAME from table_name"; $result = mysql_query($query) or die("Invalid Query: $query"); $num_rows = mysql_num_rows($result); $counter=1; echo ""; //start of table for ($i=0;$i<$num_rows; $i++) //loop through the number of records { $row = mysql_

[PHP-DB] database result: tables with 2 coloumns

2002-09-05 Thread rainydays_sunshine
Hi.. I'm creating a database result in a table, but I need to put it into 2 columns of looping row like this: |name1|name2| |name3|name4| |name5|name6| |name7|name8| |name9|name10 | etc... can anyone help me please... iman -- PHP Database Mailing List (

Re: [PHP-DB] Table formatting a link from a mysql query result

2002-09-05 Thread Brad Bonkoski
$variable_to_be_passed = 'some value'; echo "I am a link"; I think this should do it, not quite sure what you mean by wrappinga table cell in a anchor tag? Of course if you need to use the results of a database, this can be done too with the same method. HTH -Brad Aaron Merrick wrote: > All

[PHP-DB] Table formatting a link from a mysql query result

2002-09-05 Thread Aaron Merrick
All, How can I display the results of a table so that the first field (column) is a link to another page that shows the details of that row? Issue #1, I have to wrap the cell contents in an http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] MySQL order by in greek

2002-09-05 Thread Gurhan Ozen
Hi you have to restart your mysqld server with --default-character-set=greek option. You can either do this by explicitly giving it in the command line when restarting your mysqld, or you can add that line to your global my.cnf file. See: http://www.mysql.com/doc/en/Command-line_options.html

Re: [PHP-DB] Form question.......

2002-09-05 Thread Ignatius Reilly
Another way is to refresh the page everytime the user has filled a field in and moves to another: function submit_field( i ) { document.myform.field_to_check.value = "field" + i ; document.myform.submit() ; } The idea is that the "onchange" event is triggered when the

RE: [PHP-DB] data by link

2002-09-05 Thread Hutchins, Richard
You have to append the data to the href then access the variable and its value on a resulting page. In general, it would look like this (I'm sure the list will point out any syntax errors I have made): To send the data to another page: Click here To use the variable on another page (page.php): $

RE: [PHP-DB] Form question.......

2002-09-05 Thread Hutchins, Richard
Another option would be to break your one form into two separate forms where the first form asks for this number, checks the database, then transfers to user to the next logical page (rest of form or re-enter data) based on the results of that query to the db. I'm not saying it's anywhere near th

[PHP-DB] data by link

2002-09-05 Thread Meltem Demirkus
Hi, Is there any way to carry a data by using linking ...I mean can I put a data on ?...If so how ?.. thanks meltem demirkus -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Form question.......

2002-09-05 Thread Cal Evans
That's a toughie. I've done it once where I used a small popup window (opening it with JavaScript) to go to the server, perform the query to retrieve the information, stuff it into a JavaScript array and then return the array to the calling page and close the window. It works but the user will s

Re: [PHP-DB] header

2002-09-05 Thread Martin Adler
That's wrong!!! the output starts erlier everything and i mean realy everything outside is output!!! remember that it's php native behavior to send stuff outside to the client with the standard header for plain text greet Martin - Original Message - From: "Devrim GUNDUZ" <[EMAIL PROTE

Re: [PHP-DB] header

2002-09-05 Thread Devrim GUNDUZ
Hi, On Thu, 5 Sep 2002, Meltem Demirkus wrote: > > Warning: Cannot add header information - headers already sent by (output > started at C:\FoxServ\www\debugger\project_module\start_html.php:5) in > C:\FoxServ\www\debugger\project_module\project_add_.php on line 11 > > start_html.php file inc

Re: [PHP-DB] header

2002-09-05 Thread Meltem Demirkus
I tried but it gave this error Warning: Cannot add header information - headers already sent by (output started at C:\FoxServ\www\debugger\project_module\start_html.php:5) in C:\FoxServ\www\debugger\project_module\project_add_.php on line 11 start_html.php file includes: There is no o

Re: [PHP-DB] header

2002-09-05 Thread Devrim GUNDUZ
Hi Meltem, On Thu, 5 Sep 2002, Meltem Demirkus wrote: > hi, > I am new on php Just want to know I am using mysql and php on a page .. > and after the page do what it should do , I want it to go to another > page..so I though about using header ("Location:...") but it is giving > error m

[PHP-DB] header

2002-09-05 Thread Meltem Demirkus
hi, I am new on php Just want to know I am using mysql and php on a page .. and after the page do what it should do , I want it to go to another page..so I though about using header ("Location:...") but it is giving error message iii.. can anybody help me?... thanks a lot meltem demirku

[PHP-DB] Re: pg_query creates wrong query

2002-09-05 Thread Sascha Alexander Jopen
Thank you. I forgot to use the "'s to force mixed-case. Know it works fine. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: pg_fetch_result returns something other than boolean???

2002-09-05 Thread Yasuo Ohgaki
Matthew Newby wrote: > Many thanks for the info. I "discovered" that test yesterday. However, if > that is indeed the way I should test it, then something probably needs to > change in the PHP docs. On the page > http://www.php.net/manual/en/function.pg-fetch-result.php it explicitly > states: I

[PHP-DB] Re: pg_query creates wrong query

2002-09-05 Thread Yasuo Ohgaki
Sascha Alexander Jopen wrote: > Hi there, > > I'm new to PHP, especially to the db-functions. > I've got a problem querying my PostgreSQL server using pg_query. > The Tables i'm working on contain colume names with uppercase letters. > Working on those tables directly with psql, the client progra