Old 06-12-2005   #1 (permalink)
Registered User
 
Space Cowboy's Avatar
 

Join Date: May 2005
Location: England (South)
Posts: 43

Easy Script

This might sound a realy stupid question but i cant get my head around it! Im tryin to set ALL the values for the colum logedin to 0, im ussing the bellow script but it not working, can some one point me in the right direction, thanks!

Code:
<?php

include 'config.php';
$do = mysql_query("UPDATE Finnal_Users SET Logedin = 0 WHERE username='username' LIMIT 1") or die(mysql_error());
mysql_close($l);
?>
__________________
Space Cowboy

Thanks for all the help here guys!
Space Cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-13-2005   #2 (permalink)
Tech Support
 
Man1c M0g's Avatar
 
Tournaments Won: 1

Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,202
Blog Entries: 21
Images: 3

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
Try this:
Code:
<?php
include 'config.php';
$do = mysql_query("UPDATE Finnal_Users SET Logedin = 0 WHERE Logedin > 0") or die(mysql_error());
mysql_close($l);
?>
That'll set all Logedin rows to '0', whatever the username.
__________________
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-13-2005   #3 (permalink)
ParaSnake
Guest
 

Posts: n/a

@Cowboy:Your Script got wrong because of LIMIT = 1,this makes the script run only one
Try to use Mog`s solution,its right
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 06-13-2005   #4 (permalink)
Registered User
 
Space Cowboy's Avatar
 

Join Date: May 2005
Location: England (South)
Posts: 43

Thanks again guys works perfectly!
__________________
Space Cowboy

Thanks for all the help here guys!
Space Cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy web design program? Kathryn69 General Discussions 12 05-26-2008 06:58 AM
Organize your favorite websites for quick and easy access! Jacorre General Discussions 0 03-26-2008 07:16 PM
4 Cinema4D Easy Video Tutorials -MxT- Tutorial Submission 4 04-12-2007 07:57 AM
2 Photoshop Easy Video Tutorials -MxT- Adobe Photoshop 2 04-10-2007 06:06 AM
submitting tutorial:easy anime eyes sami1337 Tutorial Submission 10 12-23-2005 09:37 PM


All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT