Dear Nile:
Thanks! Maybe I am finally starting to get the hang of php (miracle).
I have no idea what the "@" is for. I'm just a mimmick learning from doing what I see, with your help of course. Is it optional? I guess I should remove it. Does the result differ if it is there or not?
It is not 2 $query's. If it failed, it would say, "Couldn't execute 'SELECT * FROM table' query. The second is just a word.
Because I figured the last event_id is not an array and is only one thing, I since changed it to this:
Code:
$query = "SELECT LAST_INSERT_ID() FROM event ";
$result = mysql_query($query,$connection) or die("Couldn't execute $query query. <br> mysql error: ".mysql_error());
$neweventid = mysql_result($result,0,0);
Is this better or worse? Thanks, e
Bookmarks