RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jon Bertsch
Assuming the snippet is correct, your function is not spelled correctly. You should be using mysql_field_name() or mssql_field_name() (MySQL or MS SQL respectively). Jon Bertsch [snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined func

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Curt Zirzow
* Thus wrote Mark: > I use MySQL: C:\mysql\bin>mysqladmin version status proc > C:\MYSQL\BIN\MYSQLA~1.EXE Ver 8.40 Distrib 4.0.20a, for Win95/Win98 on i32 > Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB > This software comes with ABSOLUTELY NO WARRANTY. This is free software,

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Mark
I use MySQL: C:\mysql\bin>mysqladmin version status proc C:\MYSQL\BIN\MYSQLA~1.EXE Ver 8.40 Distrib 4.0.20a, for Win95/Win98 on i32 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to mod

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Mark
Thanks for the tips. I do not know what you mean by a DESCRIBE table query. I hope that my "problem" is clear to you. I want to be able to use queries for MySQL. I am learning from the book PHP & MySQL for dummies. All the learning material uses PHP functions like mysql_field_name, but this does

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Please check my php file. [/snip] III. And never, ever send attachments unless requested to do so. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Instead of the actual column name it gives Object id #3 as a default for the column name or header. See here: Database Selected: Query: SHOW DATABASES; Results [/snip] a. always reply beck to the list in the event that whoever may have responded hasn't disappeared for some reason, which m

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Yes, it is. Other functions like mysqli_fetch_field work well. I have to use mysqli functions, but I cannot find the one for mysql_field_name. Normally I have to add the i for a function, but mysqli_field_name does not exist. [/snip] What about mysqli_fetch_field or mysqli_fetch_fields ? -

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] Thanks, but I have tried this one as well as many others. It did not help. Mark [snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined function msql_field_name() in c:\Program Files\Apache Group\Apache\htdocs\mysqli_send.php on l

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Mark
Thanks, but I have tried this one as well as many others. It did not help. Mark "Jay Blanchard" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] [snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined function msql_field_nam

RE: [PHP] Field name function in PHP 5

2004-08-04 Thread Jay Blanchard
[snip] When I write: echo "".msql_field_name($result). ""; I get the error message: Fatal error: Call to undefined function msql_field_name() in c:\Program Files\Apache Group\Apache\htdocs\mysqli_send.php on line 37 [/snip] If you are using (as has been pointed out before) MySQL the correct name

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Jason Wong
On Wednesday 04 August 2004 18:02, Mark van Beneden wrote: > When I write: echo "".msql_field_name($result). ""; > I get the error message: > Fatal error: Call to undefined function msql_field_name() in c:\Program > Files\Apache Group\Apache\htdocs\mysqli_send.php on line 37 May I ask what DB you