Menu

#10 bookmark.php line 402 error

open
nobody
None
5
2006-01-01
2006-01-01
Anonymous
No

This comes up due to the instructions not noting that
the rating table needs to be completed by the user, as
it stands that sql schema only creates the table not
the actual contents of it, so when the default install
in done the php spits out a divisable by zero error as
it pulls info from an empty table.

Simply update the database through mysql
mysql -p
Your Password
use db_bbps
INSERT INTO bbps_cat_ratings
(bbps_rating_id,bbps_rating_description) VALUES ('2','OK');

INSERT INTO bbps_cat_ratings
(bbps_rating_id,bbps_rating_description) VALUES
('3','Not Too Bad');

INSERT INTO bbps_cat_ratings
(bbps_rating_id,bbps_rating_description) VALUES
('4','Kewl');

INSERT INTO bbps_cat_ratings
(bbps_rating_id,bbps_rating_description) VALUES
('5','l337');

you can change the second variable to what ever you
want this is just my example.

After that the php seems to be happier.

Discussion

  • MrPrefect

    MrPrefect - 2006-01-01

    Logged In: YES
    user_id=1411980

    This was submitted by me btw if anyone wanted to know...

     
  • Drew M.

    Drew M. - 2006-08-14

    Logged In: YES
    user_id=1575147

    Perhaps there should be a default value or two?

     
  • Anonymous

    Anonymous - 2006-12-19

    Logged In: YES
    user_id=508275
    Originator: NO

    Thanks! I was having this also.

     

Log in to post a comment.

MongoDB Logo MongoDB