http://bytes.com/top...etter-php-mysql
http://www.plus2net....tter_script.php
- Juliet Joyce likes this
Posted by Diego Bezerra on 26/07/2011, 17:41
Posted by Diego Bezerra on 22/07/2011, 09:27
<?php $nume = "1"; $result = $nume + 1 ; echo $result; ?>
<?php $sear = mysql_query("SELECT * FROM teste ORDER BY id DESC LIMIT 1"; $array = mysql_fetch_array($sear); $ulti = $array["numero"]; $numero = $ulti+1; // Peguei o ultimo numero e somei 1 ?>
Posted by Diego Bezerra on 21/07/2011, 16:37
Posted by Diego Bezerra on 18/07/2011, 11:47
Posted by Diego Bezerra on 08/07/2011, 15:45
<img src="images/bannereli.jpg" width="820" height="120" alt="headerphoto" class="no-border" />
<img src="<?php $_SERVER['HTTP_HOST']?>images/bannereli.jpg" width="820" height="120" alt="headerphoto" class="no-border" />ou
<img src="<?php $_SERVER['HTTP_HOST']?>/images/bannereli.jpg" width="820" height="120" alt="headerphoto" class="no-border" />
Posted by Diego Bezerra on 24/06/2011, 09:29
RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .? - [L] Options +FollowSymLinks RewriteRule ^(.*)$ categoria.php?url=$1 [L]
select * from categoria WHERE url='$varurl'
select * from categoria WHERE id='$varid' AND url='$varurl'
RewriteRule ^(.*)$ categoria.php?id=$1&url=$2 [L]
Posted by Diego Bezerra on 21/06/2011, 16:20
<?php include("header.php"); aqui vc usa o conteudo include("footer.php"); ?>o include o menu é igual...
Posted by Diego Bezerra on 16/06/2011, 08:47
Posted by Diego Bezerra on 13/06/2011, 09:28
#imddiv{ background:url(img1.png) no-repeat; }
#imddiv:hover{ background:url(img2.png) no-repeat; }
<a href="url"><div id="imddiv">Link</div></a>
Posted by Diego Bezerra on 10/06/2011, 16:35
text-align:center;
Posted by Diego Bezerra on 09/06/2011, 13:09
Posted by Diego Bezerra on 09/06/2011, 12:19
Posted by Diego Bezerra on 08/06/2011, 08:31
Posted by Diego Bezerra on 07/06/2011, 14:35
<?php //autor: Diego Bezerra //Email: kikoofotografo@hotmail.com //fonte: Manual PHP $urls = TRUE; if($urls && isset($_SERVER['HTTP'])){ header('Strict-Transport-Security: max-age=500'); }elseif ($urls && !isset($_SERVER['HTTPS'])) { header('Status-Code: 301'); header('Location: https://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI']); } ?>
<?php //autor: Diego Bezerra //Email: kikoofotografo@hotmail.com //fonte: Manual PHP $urls = TRUE; if($urls && !isset($_SERVER['HTTPS'])){ header('Strict-Transport-Security: max-age=500'); }elseif ($urls && isset($_SERVER['HTTPS'])) { header('Location: http://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI']); } ?>
Posted by Diego Bezerra on 07/06/2011, 12:16
Community Forum Software by IP.Board
Licensed to: Webmasters Online