JUMI - POST forces browser out of Joomla? - Joomla! Forum - community, help and support
hello martin,
as else says, thank beautiful tool - jumi - need (i think).
i think have simple problem. tried reading previous posts (even previous, locked set) , not see same problem. tried few of suggestions (change $row $row1, put code function, etc.) , still have problem. moved jumi 2.1 , still have problem. ask, please:
when put html/php code in post, browser jumps out of beautiful joomla template , white screen correct return sql query. code runs, jooma template disappears? know silly, stuck , beg help.
once use menu select article code written (correctly using coder) browser (firefox , ie) jumps "http://www.historyanimated.com/someone/index.php?option=com_content&view=article&id=46&itemid=59" template disappears , screen has results of html/php code (correct results). when submit data html form, jumps "http://www.historyanimated.com/someone/formtest.php" - again, blank screen correct return sql query.
many thanks,
james cagney
historyanimated.com
the code (which gives correct results) is:
{jumi}
<form action="formtest.php" method="post">
<strong>
enter username on site here:
<input type='text' name='username' />
<br />
enter name of site here:
<input type='text' name='thoughtsite' />
</strong>
<input type="submit" />
</form>
username <?php echo $_post["username"]; ?> <br />
dating site <?php echo $_post["thoughtsite"]; ?> <br />
<?php
mysql_connect("localhost", "username", "pword") or die(mysql_error());
mysql_select_db("databasename") or die(mysql_error());
// specific result "thoughtid" table
echo $_post["thoughtisite"];
$name = $_post["username"];
echo $name;
$site = $_post["thoughtsite"];
$result = mysql_query("select thoughtid.id,thoughtid.name, thoughtid.site thoughtid
where thoughtid.name = '$name' , thought.site = '$site' ")
or die(mysql_error());
$row1 = mysql_fetch_array( $result );
echo "<br />";
echo "here id ". $row1['id'];
$manidfrom = $row1['id'];
echo "here variable ". $manidfrom;
echo "<br />";
// keeps getting next row1 until there no more get
while($row1 = mysql_fetch_array( $result )) {
// print out contents of each row1
echo "<strong>";
echo "the user named " .$row1['name']. " on ". $row1['site']. "id ".$row1['id'] ;
echo "<br />";
echo "<br />";
echo "</strong>";
}
$result = mysql_query("select * dates dates.manid = $manidfrom")
or die(mysql_error());
while($row1 = mysql_fetch_array( $result )) {
echo $row1['num']. " ". $row1['manid'] ;
echo $row1['thought']. " on ". $row1['datedate'] ;
echo "<br />";
}
?>
{/jumi}
as else says, thank beautiful tool - jumi - need (i think).
i think have simple problem. tried reading previous posts (even previous, locked set) , not see same problem. tried few of suggestions (change $row $row1, put code function, etc.) , still have problem. moved jumi 2.1 , still have problem. ask, please:
when put html/php code in post, browser jumps out of beautiful joomla template , white screen correct return sql query. code runs, jooma template disappears? know silly, stuck , beg help.
once use menu select article code written (correctly using coder) browser (firefox , ie) jumps "http://www.historyanimated.com/someone/index.php?option=com_content&view=article&id=46&itemid=59" template disappears , screen has results of html/php code (correct results). when submit data html form, jumps "http://www.historyanimated.com/someone/formtest.php" - again, blank screen correct return sql query.
many thanks,
james cagney
historyanimated.com
the code (which gives correct results) is:
{jumi}
<form action="formtest.php" method="post">
<strong>
enter username on site here:
<input type='text' name='username' />
<br />
enter name of site here:
<input type='text' name='thoughtsite' />
</strong>
<input type="submit" />
</form>
username <?php echo $_post["username"]; ?> <br />
dating site <?php echo $_post["thoughtsite"]; ?> <br />
<?php
mysql_connect("localhost", "username", "pword") or die(mysql_error());
mysql_select_db("databasename") or die(mysql_error());
// specific result "thoughtid" table
echo $_post["thoughtisite"];
$name = $_post["username"];
echo $name;
$site = $_post["thoughtsite"];
$result = mysql_query("select thoughtid.id,thoughtid.name, thoughtid.site thoughtid
where thoughtid.name = '$name' , thought.site = '$site' ")
or die(mysql_error());
$row1 = mysql_fetch_array( $result );
echo "<br />";
echo "here id ". $row1['id'];
$manidfrom = $row1['id'];
echo "here variable ". $manidfrom;
echo "<br />";
// keeps getting next row1 until there no more get
while($row1 = mysql_fetch_array( $result )) {
// print out contents of each row1
echo "<strong>";
echo "the user named " .$row1['name']. " on ". $row1['site']. "id ".$row1['id'] ;
echo "<br />";
echo "<br />";
echo "</strong>";
}
$result = mysql_query("select * dates dates.manid = $manidfrom")
or die(mysql_error());
while($row1 = mysql_fetch_array( $result )) {
echo $row1['num']. " ". $row1['manid'] ;
echo $row1['thought']. " on ". $row1['datedate'] ;
echo "<br />";
}
?>
{/jumi}
resolved jumi support. see jumi thread under extensions - page 31/32
Comments
Post a Comment