View Full Version : quick mySQL question
themoose
November 7th, 2005, 13:51
if you use a php script to insert data into mySQL, and it's already there, will it overwrite it or produce an error?
thanks,
themoose
iBrightDev
November 7th, 2005, 14:28
if it is coded properly, it will overwirt it, and if not you will either get an error or it wont work at all.....at least from my experience with it
themoose
November 7th, 2005, 15:06
damn, i wanted it to make an error lol - ah well, back to the drawing board :cool2:
iBrightDev
November 7th, 2005, 15:08
if you code it to recognise that it is already there, and if it is found then to produce an error. i guess that is what you were originally asking. didnt understand the first time. but i am not sure how to do this just yet either. good luck.
themoose
November 7th, 2005, 15:11
nah i thought i could skip it by saying if it got an error
die("Error in form - go back)";
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.