gkazhus Posted December 30, 2010 Report Share Posted December 30, 2010 Kas shajaa kodaa ir nepareizi? $sql = "UPDATE right_side_banners SET link_URL='".$newUrl."', DATEFROM='".$DATEFROM."', DATETO='".$DATETO."' WHERE ID=".$banner_id; Quote Link to comment Share on other sites More sharing options...
Blitz Posted December 30, 2010 Report Share Posted December 30, 2010 (edited) pēc qwerija izpildes ieliec echo mysql_error(); un pārbaudi kādu klūdu atgriež. pieņemu ka tev ir mysql. Edited December 30, 2010 by Blitz Quote Link to comment Share on other sites More sharing options...
gkazhus Posted December 30, 2010 Author Report Share Posted December 30, 2010 pēc qwerija izpildes ieliec echo mysql_error(); un pārbaudi kādu klūdu atgriež. pieņemu ka tev ir mysql. Jaa ir mysql. echo mysql_error jau man ir. Vienkaarshi dati no izveleta kalendara datuma netiek ievietoti DB Quote Link to comment Share on other sites More sharing options...
Blitz Posted December 30, 2010 Report Share Posted December 30, 2010 Tas nozīmē ka kļūda nav kverijā bet kautkur padotajos mainīgajos. Uztaisi echo $sql; un pārbaudi kādas vērtibas ir piemēram $banner_id, un vai tāds banner_id reali maz existē datu bāzē. Quote Link to comment Share on other sites More sharing options...
Roberts.R Posted January 3, 2011 Report Share Posted January 3, 2011 Iesaku uztaisit echo $sql, un iemest to phpmyadmin SQL tabā, un paskatīties, ko tas tur saka. 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.