Jump to content

[SOLVED] Return previously entered result


project3

Recommended Posts

I am trying to get this done in one query. I want to return the results and not just last inserted id.

see in my code below i get the last id just fine but I want to get all the other Fields too not just the id.

is there a way i can do this?

 

$query = "SELECT LAST_INSERT_ID() from members";

$result = mysql_query($query);

if ($result) {

$nrows = mysql_num_rows($result);

$row = mysql_fetch_row($result);

$lastID = $row[0];

 

echo "<br><br>$lastID<br><br>";

Link to comment
https://forums.phpfreaks.com/topic/85719-solved-return-previously-entered-result/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.