Raised This Month: $ Target: $400
 0% 

Multiple rows in SQL


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-24-2011 , 05:23   Re: Multiple rows in SQL
Reply With Quote #2

PHP Code:
player_id INT(6AUTO_INCREMENT PRIMARY KEY,\
player_ip varchar(32UNIQUE KEY,\
player_name varchar(32),\ 
With this you will get sql error if you try to insert same ip more than 1 time. Primary key can not be null, so NOT NULL is not needed.

PHP Code:
if(!SQL_MoreResults(Query))
{
    
//INSERT INTO ...
    
return
}

/// here I retrieve all information that I need from SQL 
__________________
Impossible is Nothing
Sylwester is offline
 



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

Forum Jump


All times are GMT -4. The time now is 19:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode