Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

connection-code in another file

Codes here !

Moderators: macek, egami, gesf

connection-code in another file

Postby mienneke » Mon Apr 07, 2003 4:49 am

is it possible to put your connection-code with MySQL in an other file, so you dont have to type it everytime? I tried it with require(); and include(); but it didn't work. :( Plz help me, thanks!
mienneke
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Apr 07, 2003 3:55 am

Postby mienneke » Mon Apr 07, 2003 6:40 am

i have been really stupid ... i found the problem

i pasted the code for my connection with mysql in a different file but i forgot these php tags: <? ?>

stupid me :p

thanks anyway :)
mienneke
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Apr 07, 2003 3:55 am

Postby mienneke » Mon Apr 07, 2003 6:48 am

i have been really stupid ... i found the problem

i pasted the code for my connection with mysql in a different file but i forgot these php tags: <? ?>

stupid me :p

thanks anyway :)
mienneke
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Apr 07, 2003 3:55 am


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.