Jump to content
php.lv forumi
gkazhus

vairaku datu ieraksts DB

Recommended Posts

Kas shajaa kodaa ir nepareizi?

 

$sql = "UPDATE right_side_banners SET link_URL='".$newUrl."', DATEFROM='".$DATEFROM."', DATETO='".$DATETO."' WHERE ID=".$banner_id; 

Share this post


Link to post
Share on other sites

pēc qwerija izpildes ieliec echo mysql_error(); un pārbaudi kādu klūdu atgriež.

 

pieņemu ka tev ir mysql.

Edited by Blitz

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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ē.

Share this post


Link to post
Share on other sites

Iesaku uztaisit echo $sql, un iemest to phpmyadmin SQL tabā, un paskatīties, ko tas tur saka.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...