Hi all😀
I had some troubles with the GreyHead's code. I'm just a beginer and I've never seen some code like this, ' Cause I only know sql basics.
SO It runs but I'm not able to maintain the styles , It only loads a white page and the text printed on the Echo's php code.
I did some changes, That's my code:
<?php
$task = JRequest::getString('task', '', 'get');
$nom= JRequest::getString('nom', '', 'get');
if ( !$task || !$nom) {
global $mainframe;
$mainframe->enqueuemessage("Sorry, the record was not founded");
return;
}
$db =& JFactory::getDBO();
$query = "
SELECT *
FROM `jos_chronoforms_insercio_bestia`
WHERE `nom` = $nom;
";
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("hordes", $con);
$result = mysql_query(" SELECT * FROM `jos_chronoforms_insercio_bestia` WHERE `nom` LIKE 'joan' ");
while($row = mysql_fetch_array($result))
{
}
mysql_close($con);
?>
Could someone explain me a litle bit what Greyshead's code say or at least , why me code loses the style & template ?
Thank's in advance !