![]() |
Updating MySQL Row
I have 5 fields in total that store information into my database. Here is one of them:
PHP Code:
The problem, if I use: PHP Code:
PHP Code:
|
Are you sure that the field in the column you are looking for is the text 'Website Title'? Also, do not update rows like that, use the primary key to identify the row you wish to modify. What happens if two rows have the same title?
If your database only has (and will ever need) one row, you probably don't need to be using a database. |
Well the field column is called WebsiteTitle and in the WebsiteTitle it will contain the title of the page.
Are you saying that it should be something like this: PHP Code:
|
No, a primary key is a unique integer on each row that identifies the row from anything else.
I'd read some more on database design, that would probably make things make lot more sense. |
yes, its greatly recommended that in updating the rows in mysql databases or any databases, you should be using a primary key.
Quote:
|
oh yea I get you now.
|
| All times are GMT. The time now is 01:11 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0