Jump to content

where do i put Mysql connection?


stuart7398

Recommended Posts

hi.

throughout my site will be data from a mysql database.

 

1) do i put the mysql connection on every page?

or

2) do i put it somewhere else?

 

3) where do i put the close connection?

 

is the below an example of what i should be doing?

 

<html>

content

 

<mysql connection>

data

<mysql close>

 

<html>

content

 

 

thanks.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/97532-where-do-i-put-mysql-connection/
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.