hi everyone, help, plz ;( !!! I started using infinity freee this week, and im tring to run my index.php, and it doesn’t work, this is my url: http://fonotecasmrtv.rf.gd
and this is my code
<?php
echo 'Hola mundo.';
?>
and it is in the htdocs folder saved as index.php
id doesn’t work again and this is my code:
<?php requiere_once("conn/connect.php") ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> fonoteca</title>
<link href='https://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href="css/estilos.css"
</head>
<body>
<div class="container">
<div class="center">
<br><br><br><br>
<img src="img/logo.png" width="400" alt="sistemamichoacano.tv" title="Sistemamichoana.com"/>
<br><br><br><br>
</div>
<div class="form center">
<form action="" method "post" name="search_form" id="search_form">
<input type="text" name="search" id="search">
</form>
</div>
<div id="resultados" class="resultados"></div>
<div class="footer center">
SMRTV-2016<br>
<a href ="http://sistemamichoacano.tv/">http://sistemamichoacano.tv/</a>
</div>
</div>
</body>
</html>
<?php requiere_once("conn/connect.php") ?>
fonoteca
<link rel="stylesheet" href="css/estilos.css"
it doesn’t work again, and here is my new code: T.T!!!
<?php requiere_once("conn/connect.php") ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> buscador fonoteca</title>
<link href='https://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/estilos.css"
</head>
<body>
<div class="container">
<div class="center">
<br><br><br><br>
<img src="img/logo.png" width="400" alt="sistemamichoacano.tv" title="Sistemamichoana.com"/>
<br><br><br><br>
</div>
<div class="form center">
<form action="" method "post" name="search_form" id="search_form">
<input type="text" name="search" id="search">
</form>
</div>
<div id="resultados" class="resultados"></div>
<div class="footer center">
SMRTV-2016<br>
<a href ="http://sistemamichoacano.tv/">http://sistemamichoacano.tv/</a>
</div>
</div>
</body>
</html>
Admin
August 13, 2016, 12:35pm
#5
requiere_once
(first line) is supposed to be require_once
.
ohh ty, an other question u.u T.T
can you help me with this code?>
<?php
require_once('../conn/connect.php');
$search='';
if(isset($_GET['search'])){
$search =$_GET['search'];
}
$consult ="SELECT * FROM `discos_vinil` WHERE id =" .$search."";
$result = $connect->query($consult);
$fila= mysqli_fetch_assoc($result);
$echo ($fila['id']);
?>
with this url http://fonotecasmrtv.rf.gd/php/buscador.php?search=2
and this is the connect.php code
<?php
$host="sql301.rf.gd";
$user="rfgd_18682145";
$pass="*******";
$db="rfgd_18682145_fonoteca";
$connect = new mysqli($host,$user,$pass,$db) or die ("error" . mysqli_errno($connect));
?>
and there are many id’s in my db like id =2 or id= 3
i am rlly rlly gratefull to you.