Come avete letto dal titolo, il mio database non salva i dati che inserisco nelle query.. ho anche acquistato i calcoli infiniti per il database.. attendo risposta..
Printable View
Come avete letto dal titolo, il mio database non salva i dati che inserisco nelle query.. ho anche acquistato i calcoli infiniti per il database.. attendo risposta..
Molto strano.... Sicuro di eseguire correttamente le query?
Ciao!
Hai provato da phpmyadmin, da PHP o da entrambi ?
Magari posta la query che tenti di eseguire...
Io nel mio database eseguo cio' che esce nell'esportazione che uso nel mio phpmyadmin locale che c'è in xampp 1.7.1:
Citazione:
-- phpMyAdmin SQL Dump
-- version 3.1.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 07 set, 2013 at 06:45 PM
-- Versione MySQL: 5.1.33
-- Versione PHP: 5.2.9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `tex_hotel`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` char(50) NOT NULL,
`real_name` char(100) NOT NULL DEFAULT '',
`password` char(42) NOT NULL,
`mail` varchar(50) NOT NULL DEFAULT 'defaultuser@meth0d.org',
`auth_ticket` varchar(60) NOT NULL,
`rank` int(1) unsigned NOT NULL DEFAULT '1',
`credits` int(11) NOT NULL DEFAULT '0',
`vip_points` int(11) NOT NULL DEFAULT '0',
`activity_points` int(11) NOT NULL DEFAULT '0',
`activity_points_lastupdate` double(5,0) NOT NULL DEFAULT '0',
`look` char(100) NOT NULL DEFAULT 'hr-115-42.hd-190-1.ch-215-62.lg-285-91.sh-290-62',
`gender` enum('M','F') NOT NULL DEFAULT 'M',
`motto` char(50) NOT NULL,
`account_created` char(12) NOT NULL,
`last_online` varchar(20) NOT NULL,
`online` enum('0','1') NOT NULL DEFAULT '0',
`ip_last` char(20) NOT NULL,
`ip_reg` char(20) NOT NULL,
`home_room` int(10) unsigned NOT NULL DEFAULT '0',
`respect` int(11) NOT NULL DEFAULT '0',
`daily_respect_points` int(1) NOT NULL DEFAULT '3',
`daily_pet_respect_points` int(1) NOT NULL DEFAULT '3',
`newbie_status` int(1) NOT NULL DEFAULT '3',
`is_muted` enum('0','1') NOT NULL DEFAULT '0',
`mutant_penalty` enum('0','1','2') NOT NULL DEFAULT '0',
`mutant_penalty_expire` int(11) NOT NULL DEFAULT '0',
`block_newfriends` enum('0','1') NOT NULL DEFAULT '0',
`hide_online` enum('0','1') NOT NULL DEFAULT '0',
`hide_inroom` enum('0','1') NOT NULL DEFAULT '0',
`mail_verified` varchar(6) NOT NULL DEFAULT '0',
`vip` enum('0','1') NOT NULL DEFAULT '0',
`working` varchar(50) NOT NULL DEFAULT '0',
`secretcode` varchar(8) NOT NULL DEFAULT '0',
`mymusik` varchar(100) NOT NULL DEFAULT '0',
`getmoney_date` varchar(20) NOT NULL DEFAULT '0',
`visibility` enum('EVERYONE','FRIENDS','NOBODY') NOT NULL DEFAULT 'EVERYONE',
`birth` varchar(10) NOT NULL DEFAULT '0',
`volume` int(3) NOT NULL DEFAULT '100',
`dolares` int(11) NOT NULL DEFAULT '0',
`Weights` int(11) NOT NULL,
`lastdailycredits` char(18) NOT NULL DEFAULT '',
`points` int(11) NOT NULL DEFAULT '0',
`block_trade` enum('1','0') NOT NULL DEFAULT '0',
`crystals` int(11) NOT NULL DEFAULT '0',
`achievement_points` int(11) NOT NULL,
`quests` varchar(200) NOT NULL,
`queststates` varchar(200) NOT NULL,
`canchangename` enum('0','1') NOT NULL DEFAULT '1',
`FavoriteGroup` int(11) NOT NULL DEFAULT '0',
`one_password` varchar(500) NOT NULL DEFAULT '0',
`datosreg` varchar(500) NOT NULL DEFAULT '0',
`country` varchar(500) NOT NULL DEFAULT '0',
`facebook_id` varchar(255) NOT NULL,
`marketing` varchar(1) NOT NULL DEFAULT '0',
`showhome` varchar(10) NOT NULL DEFAULT '1',
`main` varchar(10) NOT NULL DEFAULT '1',
`registered` varchar(10) NOT NULL DEFAULT '0000000000',
`lastonline` varchar(10) NOT NULL DEFAULT '000000000',
`passed_quiz` enum('0','1') NOT NULL DEFAULT '0',
`points_online` int(11) NOT NULL DEFAULT '0',
`online1` text,
`ipaddress_last` varchar(100) DEFAULT NULL,
`lastvisit` varchar(50) DEFAULT NULL,
`badge_status` int(10) DEFAULT NULL,
`hbirth` varchar(100) DEFAULT NULL,
UNIQUE KEY `id` (`id`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;
--
-- Dump dei dati per la tabella `users`
--
INSERT INTO `users` (`id`, `username`, `real_name`, `password`, `mail`, `auth_ticket`, `rank`, `credits`, `vip_points`, `activity_points`, `activity_points_lastupdate`, `look`, `gender`, `motto`, `account_created`, `last_online`, `online`, `ip_last`, `ip_reg`, `home_room`, `respect`, `daily_respect_points`, `daily_pet_respect_points`, `newbie_status`, `is_muted`, `mutant_penalty`, `mutant_penalty_expire`, `block_newfriends`, `hide_online`, `hide_inroom`, `mail_verified`, `vip`, `working`, `secretcode`, `mymusik`, `getmoney_date`, `visibility`, `birth`, `volume`, `dolares`, `Weights`, `lastdailycredits`, `points`, `block_trade`, `crystals`, `achievement_points`, `quests`, `queststates`, `canchangename`, `FavoriteGroup`, `one_password`, `datosreg`, `country`, `facebook_id`, `marketing`, `showhome`, `main`, `registered`, `lastonline`, `passed_quiz`, `points_online`, `online1`, `ipaddress_last`, `lastvisit`, `badge_status`, `hbirth`) VALUES
(22, 'aaa.aada138466', '', '*******', 'aaa.aada@alice.it', '-/-', 1, 50000, 0, 0, 0, '', 'M', 'Benvenuto in Hotel', '1363788214', '1363788214', '0', '127.0.0.1', '127.0.0.1', 0, 0, 3, 3, 2, '0', '0', 0, '0', '0', '0', '0', '0', '0', '0', '0', '0', 'EVERYONE', '0', 100, 0, 0, '', 0, '0', 0, 0, '', '', '1', 0, '0', '0', '0', '', '0', '1', '1', '0000000000', '000000000', '0', 0, '1363788232', '127.0.0.1', NULL, NULL, NULL);
....e ti appare qualche messaggio quando la esegui? Come la esegui?
Ciao!
La eseguo andando su SQL e metto il codice e poi "Esegui"
mi dice:
vado a controllare ma non c'è niente! Poi riprovo ed esce questo:Citazione:
La query e' stata eseguita con successo
Sicuramente l'ID del user che ho inserito nella tabella users esiste già.. ma.. se non ce niente??? Io non ci capisco niente.. sul mio XAMPP nn fa così..Citazione:
Errore
query SQL:
-- -- Dump dei dati per la tabella `users` -- INSERT INTO `users` (`id`, `username`, `real_name`, `password`, `mail`, `auth_ticket`, `rank`, `credits`, `vip_points`, `activity_points`, `activity_points_lastupdate`, `look`, `gender`, `motto`, `account_created`, `last_online`, `online`, `ip_last`, `ip_reg`, `home_room`, `respect`, `daily_respect_points`, `daily_pet_respect_points`, `newbie_status`, `is_muted`, `mutant_penalty`, `mutant_penalty_expire`, `block_newfriends`, `hide_online`, `hide_inroom`, `mail_verified`, `vip`, `working`, `secretcode`, `mymusik`, `getmoney_date`, `visibility`, `birth`, `volume`, `dolares`, `Weights`, `lastdailycredits`, `points`, `block_trade`, `crystals`, `achievement_points`, `quests`, `queststates`, `canchangename`, `FavoriteGroup`, `one_password`, `datosreg`, `country`, `facebook_id`, `marketing`, `showhome`, `main`, `registered`, `lastonline`, `passed_quiz`, `points_online`, `online1`, `ipaddress_last`, `lastvisit`, `badge_status`, `hbirth`) V[...]
Messaggio di MySQL: Documentazione
#1062 - Duplicate entry '22' for key 'id'
Quando hai salvato il file sql cosa hai scelto? UPDATE, INSERT oppure REPLACE?
Insert
Dall 'errore:
vuol dire che ce già una riga come ID "22". Perchè avevo provato a re-inserire la riga..Citazione:
#1062 - Duplicate entry '22' for key 'id'
Se le tabelle ci sono, intendo sono state già copiate potresti provare a salvare il file sql con funzione REPLACE
So che in realtà non ce nulla perchè non mi salva i dati appunto.. anche quando inserisco un database con i dati nelle query, non mi risulta le query con i miei dati..
Eh ma il punto che non capisco è: come fai a verificare che in realtà non c'é nulla? Come fai a dire che non ti salva i dati?
Un modo per verificare che la tabella sia vuota, è tramite phpMyAdmin (logga, quindi clicca sulla tabella e poi scheda "browse").
Ciao!
Allora, in realtà forse ce qualcosa ma non compare graficamente.. ti faccio uno screenshot:
http://huntcore.altervista.org/gsg.png
EDIT:
Come vedi io inserisco righe ma non le fa comparire ..
Clicca su "Mostra". (da me è "browse" perché il mio è in inglese).
Ciao!
Problema risolto!!! Hahhahah scusate di tutto questo caos!! Grazie alemoppo!