List Info

Thread: note 78117 added to function.mysqli-insert-id




note 78117 added to function.mysqli-insert-id
user name
2007-09-28 07:05:11
I tired with stored procedures and it did not worked out.
here is what i tried:

$mysqli = connection1();
$mysqli->autocommit(FALSE);
$user = "call insert_user('hello',
'mypass','myemail')";
$mysqli->query($user);
printf ("New Record has id %d.n",
$mysqli->insert_id);
$mysqli->commit();
exit;

Output: 
New Record has id 0.
which is not correct, may be problem is with stored
procedures.
----
Server IP: 69.147.83.197
Probable Submitter: 58.65.163.173
----
Manual Page -- http://www.php.net/manual/en/function.mysqli-insert-id
.php
Edit        -- https://master
.php.net/note/edit/78117
Del: integrated  -- h
ttps://master.php.net/note/delete/78117/integrated
Del: useless     -- http
s://master.php.net/note/delete/78117/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78117/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78117/spam
Del: non-english -- 
https://master.php.net/note/delete/78117/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78117/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78117
Reject      -- https://mast
er.php.net/note/reject/78117
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


note 78117 deleted from function.mysqli-insert-id by jani
user name
2007-10-15 05:08:26
Note Submitter: dizyn at hotmail dot com 

----

I tired with stored procedures and it did not worked out.
here is what i tried:

$mysqli = connection1();
$mysqli->autocommit(FALSE);
$user = "call insert_user('hello',
'mypass','myemail')";
$mysqli->query($user);
printf ("New Record has id %d.n",
$mysqli->insert_id);
$mysqli->commit();
exit;

Output: 
New Record has id 0.
which is not correct, may be problem is with stored
procedures.

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )