![]() |
Can you use IGNORE in the update of a mysql row ?
so yeah i am working on my news system so i am doing in the edit part that if someone lets say posted "R" as title then ok posted done, but if it has the
R already in recored then IGNORE, it , this works create in when posting something but have not tested in delete or update before :S The code "Not working,.. Something i am not doing right ?, please let me know :P as i said never tried on update or delete.."; PHP Code:
:-P |
|
no one ?....
|
Duplicate entry 'value' for key 2
now i get that error ? any ideas ? |
:::UPDATE:::
this is how it looks like now it echos out update complete but it's not working.. PHP Code:
if(getRow($sname) == TRUE) { echo $sname . ' already exists'; }else{ $eddn = editnews($sname, $uname, $story); } |
...<solved>...
|
| All times are GMT. The time now is 02:49 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0