[PHP-DB] PHP Sessions

2005-04-14 Thread Ian McGhee
? Any Help would be greatly appreciated, Ian McGhee Email: [EMAIL PROTECTED]

[PHP-DB] Re: Problem with permissions Win32 dba_open

2005-01-01 Thread Ian
of doc_root in php.ini? Makes no difference.) 3. Use single, rather than double quotes for dba_open() parameters. In my original test, I used double quotes (below) and, of course, \t was interpolated! Cheers, Ian (New Year's resolution - RTFM!) "Ian" <[EMAIL PROTECTED]> or

Re: [PHP-DB] Problem with permissions Win32 dba_open

2004-12-30 Thread Ian
7; and 'flatfile' handlers give me the results I need from my Win32 testbed. I wonder why DB3 fails - perhaps it's a bug after all, as I mentioned in my original post Thanks for your patience, Ian "Bastien Koert" <[EMAIL PROTECTED]> wrote: > make sure in t

Re: [PHP-DB] Problem with permissions Win32 dba_open

2004-12-30 Thread Ian
t a valid DBA identifier resource in c:\apache\htdocs\admin\dba.php on line 6 Warning: dba_close(): supplied argument is not a valid DBA identifier resource in c:\apache\htdocs\admin\dba.php on line 7 Ian -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Problem with permissions Win32 dba_open

2004-12-29 Thread Ian
ation failed for handler: db3: Permission denied in c:\apache\htdocs\admin\dba.php on line 1 However, this command does create a zero-byte file - C:\Apache\htdocs\test.db. Ian -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Problem with permissions Win32 dba_open

2004-12-28 Thread Ian
b3") // for example What am I doing wrong please? Thanks for your help, Ian PS This appears to be a fixed bug (http://bugs.php.net/bug.php?id=28122) but I still get "permission denied". Why? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] MySQL problem..

2004-11-08 Thread ian
; Bastien > > >From: ian <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: [EMAIL PROTECTED] > >Subject: [PHP-DB] MySQL problem.. > >Date: Mon, 08 Nov 2004 17:02:53 + > > > >Any body met this error? > >Warning: mysql_connect(): Cli

[PHP-DB] MySQL problem..

2004-11-08 Thread ian
Any body met this error? Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /usr/local/apache2/html/poems/browse.php on line 15 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP-DB] slow connection 2 DB2 database on as400.

2004-10-28 Thread Ian . McGhee
} else echo "selection failed"; ?> It is running in and apache server with php set up using the .dll method. Ian McGhee Junior Analyst Programmer Richard Lawson Autologistics Group Telephone: 01382 560259 Email: [EMAIL PROTECTED] J B Cartwright, G D Frost and R J Hu

[PHP-DB] Storing route in DB

2004-04-18 Thread Robert Ian Smit
Hi, I am not sure if my issue can be partially solved by a good database design or that all stands or falls with the application. If I have a bunch of locations in a table and I want to describe a route between a number of these locations, what's the best way to do it, considering that it must b

Re: [PHP-DB] Dreamweaver as PHP editor

2003-12-04 Thread Ian Fieldhouse
On 1 Dec 2003, at 21:11, [EMAIL PROTECTED] wrote: I'm just getting into PHP, and have found that as a PHP code editor, Dreamweaver works pretty well (with the extension I installed). My question is this, whenever I save an include file with the .inc extension, all of the color coding goes away,

[PHP-DB] MYSQL Query problem...

2003-09-21 Thread Ian Bert Tusil
, '$bodytype', '$eyecolour', '$height', '$weight', '$facialhair', '$hobbies', '$interest', '$aboutme', '$profession', '$food', '$music', '$tvshows', '$authors', '$movies', '$rolemodel', '$place', 0, 'y' , 'y')"; mysql_query($SQLQuery,$link); ?> ian

Re: [PHP-DB] set password on a page

2003-09-20 Thread Ian Bert Tusil
- Original Message - From: "SAGERAT" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 12:17 AM Subject: [PHP-DB] set password on a page > How do I set up password on a page so that only restricted people can open > it? > > -- > PHP Database Mailing List (http:

[PHP-DB] Array Pointer

2003-06-04 Thread Ian Fingold
Ok I'm trying to write this function to up date some fields in my database so i'm grabbing some info from a query and throwing it into an array (with mysql_fetch_array). one of the values i'm puting into that array is the table id. I'm then comparing the table id with the value of $i in my loop. N

Re: [PHP-DB] query string

2003-06-03 Thread Ian Fingold
nd fetch the team name > on each page load. Otherwise, they can easily change which team they're > using. > > Ian Fingold wrote: > > >Sorry I don't think I explained very well... heres my situation... > > > >I have a mysql database set up... I have a user

Re: [PHP-DB] query string

2003-06-02 Thread Ian Fingold
d in and his team is called "silly team" the link will look like this fant_stnd3.php?week=1&team=silly team but again, my problem is that it's cutting off the team value when there is a space in the string.. "Gürhan Özen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP-DB] query string

2003-06-02 Thread Ian Fingold
I'm trying to build a query string for one of my links.. for example... fant_stnd3.php?week=1&team=fun%20team I need to be able to grab the values of 'week' and 'team' from an array, I can do that no problem, but when the code runs it cuts off the value if there is a space in the string. so instea

Re: [PHP-DB] Re: PHP ldap_add() - null values in fields produce an "value #0 invalid per syntax" error on the ldap server

2002-07-17 Thread Ian Ball
option, as it will mess up other applications that are dependent on the ldap server. The entries need to be made in the server, and they must have a null value if there is nothing to go in. It was working fine with openldap 1.2.13, but with openldap 2.x, its a no go, and it is causing a lot

[PHP-DB] Re: Pulling a long list of data stalls PHP

2002-01-09 Thread Ian Ferger
try mysql_fetch_array... mysql_fetch_row is a crappy old function. - Original Message - From: "Peter Westergaard" <[EMAIL PROTECTED]> Newsgroups: php.db To: <[EMAIL PROTECTED]> Sent: Monday, January 07, 2002 8:32 AM Subject: Pulling a long list of data stalls PHP > Hi, > > I'm

[PHP-DB] Re: DESC & LIMIT

2002-01-07 Thread Ian Ferger
to use a desc, you need an order by "Barry Rumsey" <[EMAIL PROTECTED]> wrote in message 001001c197d6$ceb70160$0100a8c0@weizmain">news:001001c197d6$ceb70160$0100a8c0@weizmain... $query = "SELECT * FROM xp_sings,xp_artist,xp_songs WHERE xp_artist.artist_id = xp_sings.artist_id AND xp_sings.song_id

[PHP-DB] Re: Problem with buttons

2001-12-31 Thread Ian Ferger
if you look closely at your code (instead of posting yet another silly message on this board) you'll notice that the first has an onclink event..i am not presently aware of any such event. to all you newbies out there: look over your code, check php.net, check the comments sections, if ALL els

[PHP-DB] Re: Selecting last row

2001-12-22 Thread Ian Ferger
order by tableId desc limit 1 "Necro" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What query can I use to select the last row in a table?? > > Andrew -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP-DB] Re: Populating a MySQL database

2001-12-16 Thread Ian Ferger
look at the mysql_insert() function and then look at the comments for the function mt_rand() "Pjc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need a script that will populate a MySQL database with mostly random data > (without crashing my box) with field

[PHP-DB] Re: Dumb Question??

2001-12-14 Thread Ian Ferger
$table = "some_junk"; $resultset=mysql_query("select blah ,blah from $table"); "Russ Michell" <[EMAIL PROTECTED]> wrote in message news:SIMEON.10112131209.A@k1c. anglia.ac.uk... > Hi there everyone: > > I have a genericphp/MySQL search+retrival mechanism. Generic in that it takes table names, > f

[PHP-DB] Re: How to get Session ID

2001-12-14 Thread Ian Ferger
there is a very cryptic function for getting the session id: session_id() if you pass it a value, it will also set the id "Chris Payne" <[EMAIL PROTECTED]> wrote in message 000c01c184ef$53abc220$0200a8c0@chris">news:000c01c184ef$53abc220$0200a8c0@chris... Hi there everyone, I know how to get the

[PHP-DB] Re: Is MySQL enough for a huge amount of data?

2001-12-14 Thread Ian Ferger
mysql is better for quick and lightless overhead than postgress, less functionality too. overall, if you sit and tune it, you can get postgress to run better, but who has the time. "Andy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > I am wo

Re: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread Ian Ferger
also, to get existing vals to show in the select as default, while($row=mysql_fetch_array($result)){ $selected=($row["ID"]==$ID)?"selected":""; echo "" . $row["name"] . "\n"; } the value can be in single quotes also, altho i dont think quotes matter unless you use opera or some other wierdass b

[PHP-DB] anybody using stored procedures in sql server

2001-12-13 Thread Ian Ferger
is anybody using procs in sql server? has anyone been able to get a return parameter? can you use mssql_query, or only odbc? is this just a BIG FAT php limitation??? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

[PHP-DB] return parameters for stored procedures with sql server 7 using odbc

2001-12-12 Thread Ian Ferger
t;password",5); if (!odbc_execute($stmt, &$parms)) die("odbc_execute failed"); is it possible to change this to both: explicitly pass the parameters by name and pass the return value to a variable? thx Ian Ferger -- PHP Database 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-DB] db connect problems.

2001-11-29 Thread Ian
and likely > this is the code used in the book: > http://www.wrox.com/Books/Book_down.asp?section=11_3&isbn=1861003730&subject =&subject_id= > > this in case you typed it from the book yourself, this download could > eliminate typo's. > > > > > >-

Re: [PHP-DB] db connect problems.

2001-11-29 Thread Ian
>then this is the short way: > > > > > >$user = "your_username_for_the_database"; > > >$pass = "your_password_for_the_database"; > > > > > >$con = mysql_connect("your_host", $user, $pass); > > > > > >if(!$con) { > > >

[PHP-DB] db connect problems.

2001-11-28 Thread Ian
Hello, wonder if anyone can debug this script. I copied it from an example in a book. There is a .php file and a .inc file This is the .inc file: the .php file is like this: "; } ?> Sorry about poxy formatting, hope it is legible. I seem to have a problem passing the database to the db

Re: [PHP-DB] MySQL: Alphabetizing title results in library format

2001-11-01 Thread Ian Evans
titles order > by sort_col; Argh, that still produces the same syntax error. Our hosting company is using MySQL 3.22.32 if that's any help. -- Ian Evans Digital Hit Entertainment - News and Information http://www.digitalhit.com -- PHP Database Mailing List (http://www.php.net/) To

Re: [PHP-DB] MySQL: Alphabetizing title results in library format

2001-11-01 Thread Ian Evans
then substring (title, 5, 255) when title like 'A %' the' at line 1 -- Ian Evans Digital Hit Entertainment - News and Information http://www.digitalhit.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: [PHP-DB] MySQL: Alphabetizing title results in library format

2001-10-31 Thread Ian Evans
Petr Tuma wrote: > select *,(case when Title like 'The %' then substring (Title, 5, 255) > ETC. Alas, MySQL doesn't like that syntax either. :( -- Ian Evans Digital Hit Entertainment - News and Information http://www.digitalhit.com -- PHP Database Mailing List (ht

[PHP-DB] MySQL: Alphabetizing title results in library format

2001-10-31 Thread Ian Evans
55) when Title like 'A %' then substring (Title, 3, 255) when Title like 'An %' then substring (Title, 4, 255) else Title end That worked like a charm, yet MySQL doesn't seem to accept that. Any solutions or advice? -- Ian Evans Digital Hit Entertainment - News and Info

[PHP-DB] Uploading files problem

2001-08-22 Thread Ian Grant
Hi, I have this code after a user submits a form with name, description and image file upload fields: images/people/preview is simply a unix link to /tmp/phptempimg-ian.grant The problem is, when this script is run, the image show is that from the previous operation. If you refresh the page, the

Re: [PHP-DB] getting ID

2001-08-20 Thread Ian Grant
ch_row($result); $id = $row[0]; return $id; } Ian. Ian Grant <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > mysql_insert_id([resource link_identifier]) returns the value of the > auto_increment field for the previous INSERT quer

Re: [PHP-DB] getting ID

2001-08-20 Thread Ian Grant
(); directly after your $result = mysql_query($query); operation (where $query is an INSERT query) to pull the id value you have just auto inserted back out. Ian. Manual page: http://www.php.net/manual/en/function.mysql-insert-id.php Crosswalkcentral <[EMAIL PROTECTED]> wrote in message [EMAIL PRO

Re: [PHP-DB] HTML editors

2001-08-17 Thread Ian Grant
Okay thanks, I'll have a look at that. I am right in thinking that ActiveX controls can work in Netscape, as long as Internet Explorer (>4.0) is installed? Ian. John Pickett <[EMAIL PROTECTED]> wrote in message 001501c1269f$c977ed20$4c6146a6@notebook">news:001501c1

[PHP-DB] HTML editors

2001-08-16 Thread Ian Grant
tag would be better, considering the users are not going to be HTML-proficient. However, I cannot seem to find anything like this that doesn't cost loads. Does anyone know of anything similar? Thanks, Ian Grant. -- -- PHP Database Mailing List (http://www.php.net/) To unsubscri

Re: [PHP-DB] Submit forms

2001-08-13 Thread Ian Grant
Yes, thank you, this works! Ian. Paul Burney <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > on 8/10/01 7:50 AM, Ian Grant at [EMAIL PROTECTED] wrote: > > > I've got a simply search form, on my site using PHP and MySQL. >

[PHP-DB] Submit forms

2001-08-10 Thread Ian Grant
ails and writes nothing for the query, so it ends up like WHERE () Any pointers? Thanks, Ian. -- -- PHP Database 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-DB] Re: Making a new row in HTML tables

2001-07-25 Thread Ian Grant
last row with > empty cells. > > "Ian Grant" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > Can anyone help me with this - I have a database of people, that I want to > > print into an HTML t

[PHP-DB] Making a new row in HTML tables

2001-07-25 Thread Ian Grant
=mysql_num_rows($result); $i=1; while ($array = mysql_fetch_array($result)) { print ("".$array["Image"].">".$array["Name"]."\n"); if (is_int($rows / $i)) { print ("\n"); } $i++; } Thanks, Ian. -- -- PHP Database Mailing List

Re: [PHP-DB] MySQL connection problem - need help from expert

2001-03-22 Thread Ian
Thanks, Thor and Cal ; ) "Ian" <[EMAIL PROTECTED]> wrote in message 99eaaj$njn$[EMAIL PROTECTED]">news:99eaaj$njn$[EMAIL PROTECTED]... > Please help me !!! > > Description :- > Server 1 is installed M

[PHP-DB] MySQL connection problem - need help from expert

2001-03-22 Thread Ian
Thank you in advance. Ian. -- PHP Database 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-DB] how to connect mysql from local to remote server?

2001-01-29 Thread Ian
ster"; etc. What else should I know or I miss, to make it function? Any good idea to do that? Thanks in advance, Ian. -- PHP Database 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-DB] Text Control.

2001-01-11 Thread Ian
coding to select the test field and display it in HTML page, output likes, This is a testing messages:- 1. MSG A. 2. MSG B. 3. MSG C. How to display $test in the requested format? Thanks in advance. Best Regards, Ian. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP-DB] Date Control Problem

2001-01-11 Thread Ian
d_day. > > > > Let say, > > posting_date = 2000-12-20 > > expired_days = 14 days > > > > So my due date is 2001-01-02(from my own calculation). Same as case 1, I > > would like to display all data from Test table where expired_day plus > > post

[PHP-DB] Date Control Problem

2001-01-11 Thread Ian
s So my due date is 2001-01-02(from my own calculation). Same as case 1, I would like to display all data from Test table where expired_day plus posting_date is before the current date. My display result should be zero. Any good solutions or suggestions for Case 2? Thanks in advance. Best Rega