Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 11/04/2005 18:07:35
|
Anonymous
|
I found this cosmetic error: to avoid an undefined index error I added the following line to lib/gb.class file
just after
- $DATE = $this->db->DateFormat($row['date']);
- $MESSAGE = nl2br($row['comment']);
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 11/04/2005 20:55:39
|
Webmaster
Site Admin
![[Avatar]](/forum/images/avatar/c81e728d9d4c2f636f067f89cc14862c.png)
Joined: 10/01/2002 23:32:17
Messages: 82
Offline
|
fixed..
thank you
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 11/04/2005 22:46:05
|
Anonymous
|
If you are interested, I wrote also an sqlite.class to make your script working with SQLite instead of MySQL, which is very useful if you have PHP5 and not an SQL server.
You need only to add some code into two pages.
Let me know.
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 04/05/2005 16:16:12
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Hard to let you know if you don't provide contact details
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 11/02/2006 09:30:46
|
van_Gogh
Newbie
Joined: 11/02/2006 09:28:14
Messages: 1
Offline
|
Giovanni wrote:I found this cosmetic error: to avoid an undefined index error I added the following line to lib/gb.class file
just after
- $DATE = $this->db->DateFormat($row['date']);
- $MESSAGE = nl2br($row['comment']);
I just downloaded version 2.3.4 from proxy2, but i still got this error:
Notice: Undefined index: email2 in ***\guestbook\lib\comment.class.php(10 : eval()'d code on line 16
I added the line as said above, but it doesn't help. My code in gb.class.php now looks like this - while ($row = $this->db->fetch_array($result)) {
- $row['email2'] = "";
- $DATE = $this->db->DateFormat($row['date']);
- $MESSAGE = nl2br($row['comment']);
- $row['email2']='';
- if ($row['p_filename'] && ereg("^img-",$row['p_filename'])) {
Regards
|
|
|