Jump to content
php.lv forumi

spamof

Reģistrētie lietotāji
  • Posts

    7
  • Joined

  • Last visited

spamof's Achievements

Newbie

Newbie (1/14)

  1. Viņām itkā vissi vecie jaatīra , bet cik es skatos INSERT INTO `adds` (`id`, `descr`, `price`, `curr`, `img1`, `img2`, `img3`, `img4`, `img5`, `img6`, `img7`, `img8`, `img9`, `img10`, `img11`, `img12`, `img13`, `img14`, `img15`, `img16`, `l1`, `l2`, `l3`, `l4`, `dat`, `name`, `phone`, `email`, `site`, `pass`, `deal`, `new`, `guarantee`, `leasing`, `logo`, `highlight`, `video`, `created`, `phonecode`, `valid`, `param1`, `vip`, `paramslat`, `paramsrus`, `paramseng`, `rnd`, `sector`, `price1`, `price2`, `price3`, `pricetype`) VALUES (491, 'Fm spelites', 50, 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 4, 81, 356, 0, '2009-11-07 00:31:48', '', 'nr.tel', '', '', 'pDYPEQ', 0, 0, 0, 0, '', 0, '', '2009-10-24 00:31:48', '371', '', '', 0, '', NULL, 'kam speles', '?›?°?‚?‹??????¸?¹, ? ???????¸?¹, ?”?½?¸ ?€?°?±?¾?‚?‹: ???¼?µ???°?½?½?‹?µ', 'Latvian, Russian, Working days: Mixed', 127, 1560, 50, 50, 50, 0); Man nemazam nav expire :S , bet kā lai uztaisu ,lai viņš izmanto clean.php izmanto "dat" un "created" Vai arī kāds varētu pateikt kā šeit mq("insert into adds (param1, descr,price,curr,img1,img2,img3,img4,img5,img6,img7,img8,img9,img10,img11,img12,img13,img14,img15,img16,l1,l2,l3,l4,dat, name, phone, email, site, pass, deal, logo, new, guarantee, leasing, video, created, phonecode, sector, price1, price2, price3, ) values ('$param1', '$_POST[descr]','$_POST[price]','$_POST[curr]','$img1','$img2','$img3','$img4','$img5','$img6','$img7','$img8','$img9','$img10','$img11','$img12','$img13','$img14','$img15','$img16','$_POST[l1]','$_POST[l2]','$_POST[l3]','$_POST[l4]',date_add(now(), interval $_POST[publishfor]),'$_POST[name]','$_POST[phone]','$_POST[email]','$_POST[site]','".pass()."','$_POST[deal]','$logo','$_POST[new]','$_POST[guarantee]','$_POST[leasing]','$video',now(),'$_POST[phonecode]','".(@$_POST["param"]["497"])."','$price1','$price2','$price3')"); Lai iekļauju $time = expire '".$u."', UNIX_TIMESTAMP() + '".(86400 * $days)."'
  2. Mēģināju pec tava parauga , bet tass pats Fatal error: Call to undefined function mysql_fetch() in /var/www/clean.php on line 6
  3. Sveiki ! Mēģinu uztaisīt scriptu , kas attīra vecos datus mysql Lūk mans scripts clean.php -- Šim scriptam doma ir tāda kad ieejot http:/host.lv/clean.php viņš paņem un izdzēš ierakstu kuram datums ir notecējis <? include('config.php'); $result = mysql_query("SELECT * FROM `roots22` WHERE (`expire` > 0) AND (UNIX_TIMESTAMP() > `expire`)"); while($row = mysql_fetch_assoc($result)); { mysql_query('DELETE FROM `adds` WHERE `id` = '.$row['id']); } ?> Mysql db CREATE TABLE IF NOT EXISTS `adds` ( `id` int(11) NOT NULL auto_increment, `descr` text NOT NULL, `price` float NOT NULL default '0', `curr` int(11) NOT NULL default '0', `img1` tinytext NOT NULL, `l1` int(11) NOT NULL default '0', `l2` int(11) NOT NULL default '0', `l3` int(11) NOT NULL default '0', `l4` int(11) NOT NULL default '0', `dat` datetime NOT NULL default '0000-00-00 00:00:00', `name` tinytext NOT NULL, `phone` tinytext NOT NULL, `email` tinytext NOT NULL, `site` tinytext NOT NULL, `pass` tinytext NOT NULL, `deal` int(11) NOT NULL default '0', `logo` tinytext NOT NULL, `highlight` tinyint(4) NOT NULL default '0', `video` tinytext NOT NULL, `created` datetime NOT NULL default '0000-00-00 00:00:00', `phonecode` tinytext NOT NULL, `valid` tinyint(4) NOT NULL default '0', `param1` tinytext, `vip` tinyint(4) default NULL, `paramslat` text, `paramsrus` text, `paramseng` text, `rnd` tinyint(4) NOT NULL default '127', `sector` int(11) default '0', `price1` float NOT NULL default '0', `price2` float NOT NULL default '0', `price3` float NOT NULL default '0', `pricetype` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `l1` (`l1`,`l2`,`l3`,`l4`), KEY `highlight` (`highlight`,`img1`(10),`l1`,`l2`,`l3`), KEY `vip` (`vip`,`img1`(10),`l1`,`l2`,`l3`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=9970 ; Config.php <? $db_name = 'db_name'; $db_user = 'db_user'; $db_pass = 'db_parole'; $hostname = 'localhost'; mysql_connect($hostname, $db_user, $db_pass) or die(mysql_error()); mysql_select_db($db_name) or die(mysql_error()); ?> Kur es kļūdijos vai kāds varētu palīdzēt man ar kļūdu kur esmu pieļāvis Jo errors ir Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/clean.php on line 6
  4. spamof

    SMS Scripti

    Tos sia nevis sev vēru , bet citiem !
  5. spamof

    SMS Scripti

    Šodien pa rādio jau teica kad uz 150 ir samazināts ;) ! Varēji to garo penteri nerakstīt , jo vissu to zinu ;) ! Esmu vairākus SIA Vēris
  6. spamof

    SMS Scripti

    Cik tu pa to vidēji prasītu ? Amm pamat kapitāls jau ir 150 ls :) !
  7. Sveiki godātie ļautiņi ! Vēlējos jums pajautāt vai kādam ir 1 SMS War3 add XP scripts kas darbojās uz techpoint vai solarf - Paraugs 2 SMS Shop scripts kas darbojās uz techpoint vai solarf - Paraugs 3 SMS Reklāmas scripts kas darbojās uz techpoint vai solarf - Paraugu neatradu , jo aizmirsu portālu , bet doma ir tāda aizsūti sms atnāk tev kods ievadi kodu , ievadi savas lapas linku , ievadi savas lapas bannera linku spied aiziet un tava reklāma parādas lapā un rotē ar x daudzums banneru , kurus viņš lasa no mysql bazes. * Lūgums nerakstīt tukšus bezjēdzīgus postus * Lūgums nepiedāvāt maksas pakalpojumus * Lūgums palīdzēt !
×
×
  • Create New...