Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 955 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

UPDATE Problems

Thread title: UPDATE Problems
Closed Thread  
Page 3 of 3 < 1 2 3
    Thread tools Search this thread Display Modes  
03-14-2008, 03:20 AM
#21
Charlay is offline Charlay
Status: I'm new around here
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 20
iTrader: 0 / 0%
 

Charlay is on a distinguished road

  Old

W3C standards say you need a primary key, and sometimes it does show when you get a random error concerning it, but for the most part, you don't need one, I don't use one, and you definitely don't need one for one-record tables

03-14-2008, 03:52 AM
#22
Will Green is offline Will Green
Status: I'm new around here
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 9
iTrader: 0 / 0%
 

Will Green is on a distinguished road

  Old

Originally Posted by Charlay View Post
W3C standards say you need a primary key, and sometimes it does show when you get a random error concerning it, but for the most part, you don't need one, I don't use one, and you definitely don't need one for one-record tables
For those who are wondering why this code worked but yours didnt;

I never checked the DB to see if they updated, I just relied on the echo's that displayed the information. Therefore, if that had an error in it then I thouht it diet worked. Lazy move by me, I know.

Thank you so much everyone who helped me out, and trust me - you're going to be seeing more PHP question threads from me.

03-14-2008, 04:00 AM
#23
VernonK is offline VernonK
VernonK's Avatar
Status: Junior Member
Join date: Jan 2007
Location: Western Maryland
Expertise:
Software:
 
Posts: 39
iTrader: 0 / 0%
 

VernonK is on a distinguished road

Send a message via MSN to VernonK

  Old

Just glad it worked! I was wondering because those queries for spot on!

03-19-2008, 08:45 AM
#24
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Originally Posted by GarethP View Post
What did you change? Mine should have worked! (It works on my scripts!)
$selectDatabase = $mysql_query("SELECT * FROM settings");

You put a $ infront of mysql_query.

Closed Thread  
Page 3 of 3 < 1 2 3


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed