31
Venezia
Re: How to find ID of the record just added?
  • 2003/10/17 1:03

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


Thank you.



32
Venezia
How to find ID of the record just added?
  • 2003/10/16 8:29

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


I'm using

$result = $xoopsDB->query("INSERT INTO " etc

to add a new record to a table. But I need to know the ID of the record that I have just added so that I can use it to rename a 'linked' file that has been uploaded to the /uploads directory.

What is the correct way to find the ID?

Thanks
Venezia



33
Venezia
How to save 10K on each Xoops page
  • 2003/9/26 8:12

  • Venezia

  • Just popping in

  • Posts: 36

  • Since: 2003/6/24


Not sure if this has been asked before. Couldn't find it.

Suggestion: XOOPS pages have about 10k of javascript in the header. Would it be more efficient to scoop up all this javascript and put it in a separate js file. Most browsers cache documents so the js file would not be downloaded each time a page was called. Each XOOPS page would have a saving of about 10k. Also admins could compact this file using various freely available tools to make the js file even smaller.

Q. Is the js generated for the theme.html header "standard" or does it change from page to page according to modules being used?

Ideas anyone?

Venezia




TopTop
« 1 2 3 (4)



Login

Who's Online

178 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 178


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits