/[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.2 by ravilov, Wed Sep 19 12:23:57 2001 UTC revision 1.3 by ravilov, Tue Oct 23 16:13:59 2001 UTC
# Line 8  Line 8 
8                  if (!$sth->execute()) error("Cannot execute query: \"$sql\"");                  if (!$sth->execute()) error("Cannot execute query: \"$sql\"");
9                  while ($row = $sth->fetchrow_array()) MyDelete($syspicdir."/".$row[0]);                  while ($row = $sth->fetchrow_array()) MyDelete($syspicdir."/".$row[0]);
10                  $sth->finish();                  $sth->finish();
11                    $sql = "DELETE FROM related WHERE (news_id = $id)";
12                    $dbh->dbh_do($sql);
13                  $sql = "DELETE FROM paragraphs WHERE (news_id = $id)";                  $sql = "DELETE FROM paragraphs WHERE (news_id = $id)";
14                  $dbh->dbh_do($sql);                  $dbh->dbh_do($sql);
15                  $sql = "SELECT title_pic FROM news WHERE (news_id = $id)";                  $sql = "SELECT title_pic FROM news WHERE (news_id = $id)";

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

  ViewVC Help
Powered by ViewVC 1.1.26