|
|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
| Support::MiniLogin Support forum for problems with the official MiniLogin release. |

12-18-2006, 09:51 PM
|
|
Hill Giant
|
|
Join Date: Dec 2006
Posts: 110
|
|
execute this query in your database:
Code:
SELECT * FROM `account` WHERE `id` = 9;
then tell me if it returned any information
|

12-18-2006, 10:00 PM
|
 |
Dragon
|
|
Join Date: Mar 2004
Location: England
Posts: 776
|
|
it returned
Code:
Empty set <0.00 sec>
|

12-24-2006, 11:06 AM
|
|
Hill Giant
|
|
Join Date: Dec 2006
Posts: 110
|
|
that's really odd... the only thing i can think of to try is changing line 161 from:
Code:
$sql = "INSERT INTO `account` (`id`,`name`,`charname`,`sharedplat`,`password`,`status`,`lsaccount_id`,`gmspeed`,`revoked`,`minilogin_ip`,`hideme`,`rulesflag`) VALUES (". $newno. ",'". $_POST['username']. "','',0,'". $_POST['password']. "',". $admin_level. ",". $newno. ",0,0,'". $_SERVER['REMOTE_ADDR']. "',0,0)";
to
Code:
$sql = "INSERT INTO `account` (`id`,`name`,`charname`,`sharedplat`,`password`,`status`,`lsaccount_id`,`gmspeed`,`revoked`,`minilogin_ip`,`hideme`,`rulesflag`) VALUES (NULL,'". $_POST['username']. "','',0,'". $_POST['password']. "',". $admin_level. ",". $newno. ",0,0,'". $_SERVER['REMOTE_ADDR']. "',0,0)";
and hope your database is set to auto increment the id field
|

12-27-2006, 06:14 AM
|
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
I wouldn't insert 'id' at all, on an auto-increment field.
|

12-27-2006, 09:28 AM
|
|
Hill Giant
|
|
Join Date: Dec 2006
Posts: 110
|
|
setting it to null will cause it to auto increment as well. as memory serves me older versions of MySQL will spit out an error if your insert query doesnt specify at least a null value for a key
|

12-28-2006, 03:02 AM
|
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
Just because I am in an argumentive mood today (grin), no value passed would also be NULL.
Ok, I am done.
|

12-28-2006, 10:26 AM
|
|
Hill Giant
|
|
Join Date: Dec 2006
Posts: 110
|
|
Just to sustain your mood :p
You are correct, however if someone were to type in an emty set of quotes or a 0 there thinking it was a mistake in my post, then the query wouldnt work
which is why i added the column and the NULL value to the query 
|
 |
|
 |

01-21-2007, 08:27 AM
|
|
Fire Beetle
|
|
Join Date: Nov 2003
Posts: 5
|
|
Ok I'm getting some really horrible errors:
Code:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Inetpub\wwwroot\eqlogin\index.php on line 119
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 120
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 122
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 123
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 158
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 159
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 163
Any ideas?
|
 |
|
 |

01-22-2007, 01:42 PM
|
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
Yeah, google this:
Code:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
Tons of posts about this on the net.
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 06:41 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |