Resouce id #1 error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mccommunity
Forum Commoner
Posts: 62
Joined: Mon Oct 07, 2002 8:55 am

Resouce id #1 error

Post by mccommunity »

I have a function that uses a connection string. When I place the function output in my code, instead of doing the function it just displays html with <? function_name (Resource id #1, user1, nameofform); ?>

it is deciphering the second two variables but the first one it is saying that Resource id #1 thing. Why is this happening and what can I do to fix it?

Thanks,
mark
User avatar
cactus
Forum Regular
Posts: 343
Joined: Tue Jun 10, 2003 4:16 am
Location: UK

Post by cactus »

Question: Are these:

Resource id #1, user1, nameofform

Values from your variables of your actual variables ?

Also, you may not have <? ?> short tags enabled in your php.ini.

Reference: http://uk.php.net/manual/en/function.ini-set.php

Regards,
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post by delorian »

Give us the code :D Maybe there's to many ' or " in your script.
Post Reply