Skip to content

Commit 0a7114a

Browse files
committed
Corrected usage of mysqli_insert_id.
1 parent b5a0763 commit 0a7114a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easiermysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function mInsert ($table, $data) {
4949
'('.substr($names ,0,strlen($names )-1).') values '.
5050
'('.substr($values,0,strlen($values)-1).')';
5151
mysqli_query($mysql_link,$query);
52-
return mysqli_insert_id();
52+
return mysqli_insert_id($mysql_link);
5353
}
5454

5555

0 commit comments

Comments
 (0)