Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 10:01 am EST
Geeklog Forums
Problem with php 4.3.10
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
Hi,
Is anyone else having the same problem as me with php 4.3.10
I've rebuild php from scratch, and still have the same problem.
My problem is that DB_insertID doesn't return anything.
I have to replace all calls to DB_insertID with calls to last_insert_id()
DB_insertID calls mysql_insert_id() which doesn't seem to work.
Jon
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
Is anyone else having the same problem as me with php 4.3.10
I've rebuild php from scratch, and still have the same problem.
My problem is that DB_insertID doesn't return anything.
I have to replace all calls to DB_insertID with calls to last_insert_id()
DB_insertID calls mysql_insert_id() which doesn't seem to work.
Jon
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
8
14
Quote
Status: offline
jlawrence
Forum User
Chatty
Registered: 12/30/04
Posts: 49
Location:Plymouth, Devon, UK
I've now replaced the actual DB_insertID function (in lib-database.php) with:
$sql="select last_insert_id()";
$result = DB_query($sql);
$ID=DB_fetchArray ($result);
return $ID[0];
I'm still not certain if this is applicable to all installations of php 4.3.10 or not.
Jon
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
$sql="select last_insert_id()";
$result = DB_query($sql);
$ID=DB_fetchArray ($result);
return $ID[0];
I'm still not certain if this is applicable to all installations of php 4.3.10 or not.
Jon
www.plymouthcricketclub.com - providing cricket for all ages in the Plymouth area.
8
11
Quote
Status: offline
tmarquez
Forum User
Regular Poster
Registered: 06/17/03
Posts: 70
Quote by jlawrence: I've now replaced the actual DB_insertID
I'm still not certain if this is applicable to all installations of php 4.3.10 or not.
Jon
I'm still not certain if this is applicable to all installations of php 4.3.10 or not.
Jon
Wanted to thank you!!! This is exactly the problem I have been having with my installation, and your snippet of code seems to have worked.
I have PHP Version 4.3.11 on the server I'm hosted on. And the calls to DB_InsertID were returning zeros.
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
11
10
Quote
All times are EST. The time is now 10:01 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content