/[health_html]/inc/newsDelete.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/newsDelete.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ravilov, Fri Aug 3 09:12:42 2001 UTC revision 1.2 by ravilov, Wed Sep 19 12:23:57 2001 UTC
# Line 16  Line 16 
16                  if (!$sth->execute()) error("Cannot execute query: \"$sql\"");                  if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
17                  while ($row = $sth->fetchrow_array()) MyDelete($syspicdir."/".$row[0]);                  while ($row = $sth->fetchrow_array()) MyDelete($syspicdir."/".$row[0]);
18                  $sth->finish();                  $sth->finish();
19                    $sql = "DELETE FROM cat_news WHERE (news_id = $id)";
20                    $dbh->dbh_do($sql);
21                    $sql = "DELETE FROM spec_news WHERE (news_id = $id)";
22                    $dbh->dbh_do($sql);
23                  $sql = "DELETE FROM news WHERE (news_id = $id)";                  $sql = "DELETE FROM news WHERE (news_id = $id)";
24                  $dbh->dbh_do($sql);                  $dbh->dbh_do($sql);
25          }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26