• Resolved loneboat

    (@loneboat)


    Hey. I’m only allowed one mySQL db on my hosting service. I’m writing a script which needs acces to my mySQL database. I figured that I could simply add a new table to my mySQL db, use that, and everything would be fine. I’m runing into a problem, however.

    I’m including my script in my header.php theme page. In my script, I’m opening the connection and closing it with a pointer called “$dbC”. When I open my page with my script included, the categories don’t display; instead there is an error about an invalid argument. But if I go and comment out the line which closes my “$dbC” pointer connection and reload it, everything works fine. So somehow by closing my connection from within my script it also closes toe connection WP is using. Any ideas why this might be happening?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Am I accidentally closing mySQL connection?!’ is closed to new replies.