Re: [PHP-DB] Database visible via mysql CLI but not MOD_PHP withsame username

2005-02-16 Thread Elliot Mackenzie
OK I will look further and try these ideas today. Cheers, M. Bastien Koert wrote: sounds like a mysql account user permissions problem to me, too bastien From: Martin Norland [EMAIL PROTECTED] Reply-To: php-db@lists.php.net To: php-db@lists.php.net Subject: Re: [PHP-DB] Database visible

[PHP-DB] checkbox into mysql using php input type=checkbox name=list[] value=x

2005-02-16 Thread moses Woldeselassie
hi all I need a simple php script to use for html form action=checkbox.php method=post Select from the list br / (check all that apply):br / input type=checkbox name=list[] value=x input type=checkbox name=list[] value=y input type=submit name=submit value=Go! / /form kind regards meberat --

Re: [PHP-DB] Database visible via mysql CLI but not MOD_PHP with

2005-02-16 Thread Elliot Mackenzie
Agh! GLOBALS GLOBALS GLOBALS. For a future suckers' reference, the variable was not available in its scope, and was thus passing null as the username to mysql_connect, which in turn was connecting to the database as @localhost. Thanks for your help, pardon my stupidity :) Kind

RE: [PHP-DB] checkbox into mysql using php input type=checkbox name=list[] value=x

2005-02-16 Thread Bastien Koert
to do what? bastien From: moses Woldeselassie [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] checkbox into mysql using php input type=checkbox name=list[] value=x Date: Wed, 16 Feb 2005 11:28:17 + hi all I need a simple php script to use for html form action=checkbox.php

Re: [PHP-DB] Database visible via mysql CLI but not MOD_PHP with

2005-02-16 Thread Elliot Mackenzie
I have an update for this. I used mysql_connect to connect to the database and then ran the query select current_user(). I discovered that despite using mysql_connect specifying a username and password, it still insisted on connecting as @localhost, but with no user. The @localhost user does

[PHP-DB] Re: checkbox into mysql using php input type=checkbox name=list[] value=x

2005-02-16 Thread pete M
foreach($_POST['name'] as $k = $v){ } moses Woldeselassie wrote: hi all I need a simple php script to use for html form action=checkbox.php method=post Select from the list br / (check all that apply):br / input type=checkbox name=list[] value=x input type=checkbox name=list[] value=y input

RE: [PHP-DB] Re: checkbox into mysql using php input type=checkbox name=list

2005-02-16 Thread moses Woldeselassie
Thank you, i don't have any problem using that syntax: if (isset($_POST['submit'])) { echo You chose the following games:br /; foreach($_POST['games'] AS $game = $value) $sql = mysql_query(insert into interest(username) values('$value')); but the problem is with the following:

RE: [PHP-DB] Re: checkbox into mysql using php input type=checkbox name=list

2005-02-16 Thread Bastien Koert
$value is not an array...wont run try $valuecount = count($_POST['games']); bastien From: moses Woldeselassie [EMAIL PROTECTED] To: php-db@lists.php.net Subject: RE: [PHP-DB] Re: checkbox into mysql using php input type=checkbox name=list Date: Wed, 16 Feb 2005 22:09:09 + Thank you, i don't

[PHP-DB] Intermittent odbc_connect() problem with iodbc/openlink

2005-02-16 Thread Crone, James
I'm having intermittent problems with odbc_connect(). Here's the situation I'm trying to connect to a Sybase Adaptive Server Anywhere database running on Win2K from my web server using Solaris, Apache, PHP, iODBC, and OpenLink's ODBC universal data access driver for MSSQL/Sybase. About

[PHP-DB] Re: donwload listed dir

2005-02-16 Thread Nadim Attari
http://www.chrispederick.com/work/php/source/file/file.php It Clown [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi All, How would i create links dynamicaly for each file that has been listed in a dir? Regards