You are here: php + mysql. updating various tables using the same peice of code. « PHP Programming Language « IT news, forums, messages
php + mysql. updating various tables using the same peice of code.

Posted by McGowan on 01/27/07 12:41

Hey, I'm wondering how I can get an update statement to work with data
being passed through the URL. the problem is that the statement needs
to work no matter what table is being worked on as any table must be
able to be processed by the same page.

The problem is that I can't use $_GET['field_name'] because I dont
know what the field name is going to be. Also I do not know what field
is going to be the primary key so I don't know how to get the 'where'
statement to work properly.

I realise there are probably tens if not hundreds of ways of making
this work but I honestly can't do it.

Thanks,
Oliver

 

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

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