Ciao,
Ho questo codice:
Codice PHP:
<?php
include_once('db_vars.inc');
$select_all = mysql_query("SELECT * FROM tab_news");
$max_id = mysql_num_rows($select_all);
$get_news = "'".$_GET["jnews"]."'";
$start_news = "$get_news+1";
echo $start_news;
//news number
$nnumber = "10";
while($nnumber > 0) {
$selection = mysql_query("SELECT year, month, day, news, author FROM `tab_news` WHERE `id`=$get_news");
$result = mysql_fetch_row($selection);
if($result[0]!=""){
?>
In pratica qui:
Codice PHP:
$start_news = "$get_news+1";
Vorrei modificare la varibile "$get_news" aggiungendo un uno...
Ma un ce riesco, controllando con l'echo mi viene stampato '6'+1
Why????
Thx
[TrGh]