1
Mestophales
Quick Question

The following code was pasted into a custom block and PHP Script was selected from the dropdown no results displayed,
If I choose the HTML option the preview window actually displays results, but when submitted I get the actual code and not the desired result:

Why do you think that is?

PHP
 $db
="MySQL2000Server"
 
$conn= new COM('ADODB.Connection'); 
 
$conn->Open("driver={SQL Server};SERVER=MySQL2000Server;DATABASE=MyDatabaseName;UID=MyUserID;PWD=MyPassword;"); 
 
$MySQL "SELECT * from tblData"
 
$rs $conn->Execute($MySQL); 
?>

 


  

 



   
     
      Start Date:
        ->Fields['Data_01']->Value ?>
        

     
      Impact 
        Area: 
        ->Fields['Data_02']->Value ?>
        

     
      Impact 
        %:
        ->Fields['Data_03']->Value ?>
        

    
  


2
coopersita
Re: Quick Question

Try this:

Take away the , and echo or print the html you have.

3
Mestophales
Re: Quick Question

Thank You!

Login

Who's Online

301 user(s) are online (256 user(s) are browsing Support Forums)


Members: 0


Guests: 301


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits