pleite Posted July 13, 2012 Report Share Posted July 13, 2012 palidzat luudzu kad eju majaslapaa radaas shis te Warning : mysql_real_escape_string() expects parameter 1 to be string, resource given in C:\xampp\htdocs\include\function.php on line 27 ko tas nozimee kaa to izlabot?] php kods: function smart($value){ if (get_magic_quotes_gpc()){ $value = stripslashes($value); } if (!is_numeric($value)){ $value = mysql_real_escape_string($value); } $securiy = htmlspecialchars($value); return $securiy; } Quote Link to comment Share on other sites More sharing options...
y2ok Posted July 13, 2012 Report Share Posted July 13, 2012 (edited) Kas tev ir $value? Un ko tu ar to funkciju gribi vispār panākt? Edited July 13, 2012 by y2ok Quote Link to comment Share on other sites More sharing options...
pleite Posted July 13, 2012 Author Report Share Posted July 13, 2012 es nezinu esmu jaunijais un uzliku majaslapu un paradijaas shaads error mekleju visaados forumos ka sho izlabot bet neko neatradu nezinu varbut tur kkas trukst vai kaa tadelj jautaaju ja kaads zin lai paliidz :( Quote Link to comment Share on other sites More sharing options...
y2ok Posted July 13, 2012 Report Share Posted July 13, 2012 Kas tā par mājaslapu vispār? Quote Link to comment Share on other sites More sharing options...
pleite Posted July 13, 2012 Author Report Share Posted July 13, 2012 Kas tā par mājaslapu vispār? http://81.198.50.52/ pastities var te Quote Link to comment Share on other sites More sharing options...
y2ok Posted July 13, 2012 Report Share Posted July 13, 2012 Nu, tas man neko daudz neizsaka. Iemet index.php faila kontentu iekš http://paste.php.lv un tad linku iemet te. Quote Link to comment Share on other sites More sharing options...
pleite Posted July 13, 2012 Author Report Share Posted July 13, 2012 http://paste.php.lv/8dc1a7c1c91cabd322f03466f4934b4c?lang=php luudzu index.php Quote Link to comment Share on other sites More sharing options...
y2ok Posted July 13, 2012 Report Share Posted July 13, 2012 1) Nemaisi HTML Kopā ar PHP (atdali kodu). 2) Liec kodam tabus (padara kodu lasāmāku). 3) Šajā failā nebūs rinda, kas padod datus priekš smart() funkcijas, pameklē no kura faila sūta tos datus uz smart() funkciju, un tad to faila kontentu ieliec iekš paste.php.lv . Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 13, 2012 Report Share Posted July 13, 2012 Tev ir problēmas ar datubāzi. Saliec datubāzē īstās tabulas un norādi pareizu datubāzes konfigu. Quote Link to comment Share on other sites More sharing options...
Rados Posted July 14, 2012 Report Share Posted July 14, 2012 Mazliet ne pa tēmu: http://81.198.50.52/video.php?id=19 Var veikt sql injekciju , tākā lāpi vien ciet. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.