phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (959)
  • Announcements (20)
  • Development (524)
  • Mods & Hacks (33)


  • phpWebLog
  • Latest Unstable - 0.5.3
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3


  • phpWebLog Addons
    See Romarin.org for phpWebLog addons and more support.

    Edit Story IndexLinks Gets Updated With Empty Results
    Posted under General by mochaexpress (---.minnesota.com) on Tuesday February 20 2001 @ 02:44AM EST
    jason,

    i'm not sure if you intended this. say i have 2 indexlinks set up. when i enter a story, i enter 2 urls for the indexes. now i edit the story, and remove the indexes.

    in pgsql i see this:

    mnwork=# select * from t_indexlinks;
    rid | parentrid | name | url | hits
    -----+------------------+--------------+-----+------
    22 | 01/02/18/3860987 | story url | | 0
    19 | 01/02/13/0800968 | story url | | 0
    25 | 01/02/15/6864308 | story url | | 0
    26 | 01/02/15/6864308 | story images | | 0

    function f_updateindexlinks() seems to delete all indexlinks with parentrid of $rid. then does a for loop and inserts values from the form we just updated. remember it's blank (i just removed it) so it's updating like the table above.

    i don't think this is the right thing to do. i think if it's blank, it shouldn't insert anything into that table and leave it deleted.

    if i'm correct, i'll fix the bug. if not, could elaborate on why the intended behavior?




    < IndexLink Bug Fix | hot/top 5 >

    jason writes on Tuesday February 20 2001 @ 01:03PM EST: [ reply | parent ]
    You're correct. It was designed with the idea that the Index Links field(s) were changed, not deleted. Thanks for finding that.
    mochaexpress writes on Tuesday February 20 2001 @ 01:27PM EST: [ reply | parent ]
    ok. fixed.
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:

    PHP.net
  • 2006 DC PHP Conference - Call for Papers
  • Welcome Summer of Code 2006 Students
  • Zend/PHP Conference 2006 - Call for Papers
  • php|works / db|works 2006 - Call for Papers
  • Call to speaker for Paris "Forum PHP 2006"
  • NYPHPCon 2006 Program Announced
  • PHP 5.1.4 Released
  • PHP 5.1.3 Released
  • Summer of Code

  • PHPBuilder
  • Object-Oriented Features New To PHP5
  • More about PEAR's Image_Graph
  • In Case You Missed It...The Week of June 12th, 2006
  • Using XML, Part 5: SOAP and WSDL
  • In Case You Missed It...The Week of June 4th, 2006
  • In Case You Missed It...The Week of May 29th, 2006
  • Introduction to PHP
  • In Case You Missed It...The Week of May 15th, 2006
  • In Case You Missed It...The Week of May 8th, 2006
  • An Introduction to Graphs Using PEAR's Image_Graph Package


  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / devtwo