Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert PHP Code
#1
Hi,

i just download exex-PHP ... But when i call this:

<--?
include 'test.php';
?-->

It doesnt work becaus it was changed to <-- and -->

<--?
include 'test.php';
?-->

How can i do an include?

Another example:
Code:
<?

mysql_connect("localhost","root","") or die
    ("ERROR - keine Verbindung moeglich!");
mysql_select_db("cdcol")or die
    ("Die DB existiert nicht!");

$sql = mysql_query("SELECT * FROM `phpgen_users` LIMIT 0, 30 ");



echo "<table border = \"1\">";
while($row = mysql_fetch_object($sql))
{
  echo "<tr>";
  echo "<td>",$row->user_name,"</td>";
  echo "<td>",$row->user_password,"</td>";
  echo "</tr>";
}
echo "</table>";


   ?>
Reply
#2
no short tags, try long tags!

Code:
<?php

?>

short tags always bring problems (or nearly always...)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
exec-PHP is buggy, it breaks quite a few things, namely all content filters.
I have never found it to properly work, and have resorted to using components and dynpages plugin.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)