connection-code in another file

Codes here !

Moderators: macek, egami, gesf

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

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
Contact:

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
Contact:

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 :)


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 0 guests

cron