lejka Posted April 12, 2008 Report Share Posted April 12, 2008 sveiki! es iegustu sadu kluudu kad palaizu savu php failu kas domaats galerijai Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /www/xx/x/x/x/xx/xxx/photo_gallery.php on line 763 line 763 ir $arr_gal = mysql_fetch_assoc($res_gal); varbūt kaads varetu izpalidzeet un atrast kas pa vainu jo es pats nekadigi jau kadu laiku nevaru saprast kas pa vainu :( ievietoju visu kodu kuraa ir attiecigaa kluuda: Lūdzu lieto http://paste.php.lv gariem koda gabaliem! Link to comment Share on other sites More sharing options...
localhero Posted April 12, 2008 Report Share Posted April 12, 2008 paste.php.lv Link to comment Share on other sites More sharing options...
Faks Posted April 12, 2008 Report Share Posted April 12, 2008 vajag pilnigi visu photo_gallery.php kodu :) ! tad varesu vairak pateikt :) Link to comment Share on other sites More sharing options...
lejka Posted April 12, 2008 Author Report Share Posted April 12, 2008 nu vinsh ir sausmigi gars manupraat taa ir taa dala kur ir kluda bet nu ok reku ir viss kods EDIT: Tev tak teica - lieto http://paste.php.lv/ Link to comment Share on other sites More sharing options...
bubu Posted April 12, 2008 Report Share Posted April 12, 2008 "...supplied argument is not a valid MySQL result resource..." kļūda parasti visbiežāk ir tad, kad tiek mēģināts izpildīt nepareizu MySQL kveriju. Pārbaudi kverija izpildīšanas rezultātu: $res = mysql_query("...."); if (!res) die(mysql_error()); Link to comment Share on other sites More sharing options...
lejka Posted April 13, 2008 Author Report Share Posted April 13, 2008 (edited) parbaudiju paradija ka unknown column editedby! bet tads column pastaav rekaa izskataas: ` editedby` int(10) unsigned NOT NULL default '0'; nu manliekas ka viss ir kartibaa ar to rindu it kaa citi erori nav, bet kad iznem to editedby araa tad itkaa viss stradaa komentari ir bet uzreiz rodas jauna problema rada tikai pedejo komentaru par bildi ieprieksejie vnk kkur pazuud. reku tad buus viss kods ja kads var izpalidzat http://paste.php.lv/7178?lang=php kluda tatad ir kkur line 763 vai 762 Edited April 13, 2008 by lejka Link to comment Share on other sites More sharing options...
bubu Posted April 13, 2008 Report Share Posted April 13, 2008 Ja saka, ka nav tādas kolonnas, tad tādas nav Dators kļūdās gandrīz nekad. Parasti kļūdās cilvēks, kas rakstījis savu kodu. Pārbaudi vēlreiz kolonnu nosaukumus - pa simboliem! Link to comment Share on other sites More sharing options...
lejka Posted April 13, 2008 Author Report Share Posted April 13, 2008 ok paldies par palidzibu! iznemu to editedby vispar araa un tagad viss stradaa vienkarshi ideali! Link to comment Share on other sites More sharing options...
Recommended Posts