You are here: querying access « PHP Language « IT news, forums, messages
querying access

Posted by Richard Morton on 12/19/05 17:46

Hi,

I am struggling to get data out of Access via ODBC.

It's a really simple db (single table).

When I do a really simple query (select * from table)

odbc_prepare
odbc_execute

I can then get out the field names via

odbc_field_names

but I can't get to any _data_....

num_rows returns -1

also if I try to add conditions to the query it fails i.e.

select * from table where TimeStamp>="2005/12/18 16:00:01" AND
TimeStamp<="2005/12/19 16:00:00" ORDER BY TableRowID desc

Warning: odbc_execute(): SQL error: [Microsoft][ODBC Microsoft Access
Driver] Too few parameters. Expected 3., SQL state 07001 in SQLExecute
in c:\apache group\apache\htdocs\wmmc\db_access_class.inc on line 60

Help please! Thanks!

Richard

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация