Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » PHP:don't know how to insert object into $var
Closed Thread
Old 12-21-2005, 07:33 AM   #11 (permalink)
 
Junior Techie

Join Date: Jun 2005

Posts: 94

ever_thus

Default

Come to think of it, you don't need a super file. just put the if logic (with the print () and include () calls based on $variable) in a subroutine and call that subroutine, with $variable as an argument, in the table. Of course if the include () or print () call only needs to be done once, you can move the entire if block into the table.

And now that we've found the problem you can remove all the backslashes. Just put the entire string in single quotes (').
ever_thus is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On