Δωρεάν Προβλέψεις

Facebook
Twitter
Pinterest

{source}
<!– You can place html anywhere within the source tags –>

<?php
 
  
  $db = “dicha20_astrolog”; //set this to the name of your database

$host = “localhost”; //set this to the name of your host

$user = “dicha20_astrolog“; //set this to your db user name

$pass = “6658709123”; //set this to your db password
$con= @mysql_connect(“$host”,”$user”,”$pass”);
mysql_query(“SET NAMES ‘utf-8′”, $con);

mysql_query(“SET CHARACTER SET ‘utf-8′”, $con);

if(!$con)
{
  $connect_error = “Failed at mysql_connect. “;
  echo”error at db connect”;
  exit();
}

 function getword($strWord) {

    $strSQL = “SELECT wordkey,word1,word2 FROM tarot_dictionary WHERE wordkey='”.$strWord.”‘”;
    $r = mysql_query($strSQL) or die(mysql_error());  
    $sr = mysql_fetch_row($r);      //($result, 0, ‘coins’);
    return($sr[2]);  
  }
  
  $freeSQL=”SELECT ID,name FROM tarot_subcategory WHERE isfree=’Yes'”;  //Query to get the card auto id;
  $result=mysql_query($freeSQL);
  
  while($resultArray = mysql_fetch_array($result)){
    $ids[] = $resultArray[‘ID’];
    $name[]=$resultArray[‘name’];
  }
  
?>
  

    <script language=”javascript”>
  
      function startreading(){
        
        var radio_choice = false;
        var1 = window.document.form2.rcatID.value;
        
        for (counter = 0; counter < form2.rcatID.length;  counter++)
        {
          if (form2.rcatID[counter].checked)
            radio_choice = true;
        }
        
        if(radio_choice){  
          window.document.form2.submit();
        }else{
          alert(‘Επιλέξτε Κατηγορία’);
        }
        
      }
      
          
    </script>

    
       <div align=”center”>
      
            <div align=”center”><IMG height=”225″ src=”images/stories/tarot/free_tarot.png” width=”300″ border=”0″ name=”Image13″></div>
            <p align=”center”><?php echo getword(‘freereading1’);?></p>
            <form name=”form2″ method=”post” action=”freereadings.html”>
              <div align=”center”>
                <TEXTAREA name=”question” rows=”1″ wrap=”VIRTUAL” cols=”50″><?php echo $_SESSION[‘sessquestion’]?></TEXTAREA>
              </div>
              
              <p align=”center”><?php echo getword(‘freereading2’);/* Free reading title*/?></p>
              <p align=”center”>
                <label><input type=”radio” name=”rcatID” value=”<?php echo $ids[0]?>”></label>
                <span><?php echo getword($name[0])?></span></p>
<p align=”center”>
                <label>
                  <input type=”radio” name=”rcatID” value=”<?php echo $ids[1]?>”>
                  <span><?php echo getword($name[1])?></span>
                </label></p>
<p align=”center”>
                <input name=”submit” type=”submit” onClick=”startreading(); return false;”  class=”button” value=”Άρχισε τη Δωρεάν μου Πρόβλεψη”>
             
              <input id=”new_id” type=”hidden” name=”new_id”  value=”-1″ />   </p>            
            </form>
</div>
          
     
    
  
{/source}

Facebook
Twitter
Pinterest

Newsletter

Εγγραφείτε στο newsletter μας και μείνετε ενημερωμένοι με τα άρθρα μας
Please wait...

Ευχαριστούμε για την εγγραφή!

Scroll to Top