Torna indietro   Hardware Upgrade Forum > Software > Programmazione

NZXT H9 Flow RGB+, Kraken Elite 420 e F140X: abbiamo provato il tris d'assi di NZXT
NZXT H9 Flow RGB+, Kraken Elite 420 e F140X: abbiamo provato il tris d'assi di NZXT
Nelle ultime settimane abbiamo provato tre delle proposte top di gamma di NZXT nelle categorie case, dissipatori e ventole. Rispettivamente, parliamo dell'H9 Flow RGB+, Kraken Elite 420 e F140X. Si tratta, chiaramente, di prodotti di fascia alta che si rivolgono agli utenti DIY che desiderano il massimo per la propria build. Tuttavia, mentre i primi due dispositivi mantengono questa direzione, le ventole purtroppo hanno mostrato qualche tallone d'Achille di troppo
ASUS ROG Swift OLED PG34WCDN recensione: il primo QD-OLED RGB da 360 Hz
ASUS ROG Swift OLED PG34WCDN recensione: il primo QD-OLED RGB da 360 Hz
ASUS ROG Swift OLED PG34WCDN è il primo monitor gaming con pannello QD-OLED Gen 5 a layout RGB Stripe Pixel e 360 Hz su 34 pollici: lo abbiamo misurato con sonde colorimetriche e NVIDIA LDAT. Ecco tutti i dati
Recensione Nothing Phone (4a) Pro: finalmente in alluminio, ma dal design sempre unico
Recensione Nothing Phone (4a) Pro: finalmente in alluminio, ma dal design sempre unico
Nothing Phone (4a) Pro cambia pelle: l'alluminio unibody sostituisce la trasparenza integrale, portando una solidità inedita. Sotto il cofano troviamo uno Snapdragon 7 Gen 4 che spinge forte, mentre il display è quasi da top dig amma. Con un teleobiettivo 3.5x e la Glyph Matrix evoluta, è la prova di maturità di Carl Pei. C'è qualche compromesso, ma a 499EUR la sostanza hardware e la sua unicità lo rendono un buon "flagship killer" in salsa 2026
Tutti gli articoli Tutte le news

Vai al Forum
Rispondi
 
Strumenti
Old 29-01-2006, 21:07   #1
Traxsung
Senior Member
 
L'Avatar di Traxsung
 
Iscritto dal: Apr 2005
Messaggi: 5245
[PHP] Undefined index ???

Cosa significa questo messaggio di errore datomi dal Browser provando uno script php in localo con Easyphp ??

Se può essere utile riporto il listato:


Codice PHP:
if ($_GET["day"]!="" || $_GET["month"]!="" || $_GET["year"]!=""){

            if (
$_GET["day"]!=""){
                
$day $_GET["day"];
            } else {
                
$day "";
            }

            if (
$_GET["month"]!=""){
                
$month $_GET["month"];
            } else {
                
$month $date_today["mon"];
            }

            if (
$_GET["year"]!=""){
                
$year $_GET["year"];
            } else {
                
$year $date_today["year"];
            } 
L'errore me lo da per day, month e year
Traxsung è offline   Rispondi citando il messaggio o parte di esso
Old 29-01-2006, 21:39   #2
Traxsung
Senior Member
 
L'Avatar di Traxsung
 
Iscritto dal: Apr 2005
Messaggi: 5245
mmm.... hai ragione, così non si capisce un granchè.
Ecco l'intero codice:

Codice PHP:
*/

// database functions


function show_error()
{
    die(
"Error " mysql_errno() . " : " mysql_error());
}



function 
sql_quote($input)
{
    return 
"'".$input."'";
}



function 
db_connect()
{

    global 
$db_server;
    global 
$db_username;
    global 
$db_password;
    global 
$db_name;

    
$con mysql_connect($db_server,$db_username,$db_password);
    if (!(
mysql_select_db($db_name,$con)))
    {
        
show_error();
    }

    return 
$con;
}



function 
db_disconnect($con)
{
    
close($con);
}


function 
db_prepare(){

    global 
$viewmode;
    
    global 
$day;
    global 
$month;
    global 
$year;
    
    global 
$list_rows;
    global 
$view_rows;
    global 
$view_comment_rows;

    global 
$viewcomments;

    
// connect to the database
    
$con db_connect();
    
$blogid="";
    
$date_today getdate();

    
// work out what to show based on URL parameters
    
;
    if (
$_POST["blogid"]!="") {

        
$blogid $_GET["blogid"];

        
// get the blog entry from the database to find out what month it was (for the list and view sql)
        
$sql_findmonth "SELECT *,MONTH(dEntryDate) AS month,YEAR(dEntryDate) AS year FROM blog WHERE nIdCode=".$blogid;
        
$result mysql_query($sql_findmonth,$con);
        if (
$result!=false) {
            
$row mysql_fetch_array($result);
            
$month $row["month"];
            
$year $row["year"];
        } else {
            
// revert to nothing sent
            
$blogid="";
        }

        
$sql_list "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." ORDER BY dEntryDate DESC;";
        if (
$viewmode=="single"){
            
$sql_view "SELECT * FROM blog WHERE nIdCode=".$_GET["blogid"].";";
        } else {
            
$sql_view "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." ORDER BY dEntryDate DESC;";
        }

    }

    if (
$blogid=="") {

        
// Figure out what parts of the date we have got

        
if ($_GET['day']!="" || $_GET['month']!="" || $_GET['year']!=""){

            if (
$_GET['day']!=""){
                
$day $_GET['day'];
            } else {
                
$day "";
            }

            if (
$_GET["month"]!=""){
                
$month $_GET["month"];
            } else {
                
$month $date_today["mon"];
            }

            if (
$_GET["year"]!=""){
                
$year $_GET["year"];
            } else {
                
$year $date_today["year"];
            }

        } else {

            
$day "";
            
$month $date_today["mon"];
            
$year $date_today["year"];

        }

        
// Build the SQL statements

        
if ($day!=""){

            
$sql_list "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." AND YEAR(dEntryDate)=".$year." AND DAYOFMONTH(dEntryDate)=".$day." ORDER BY nIdCode DESC;";
            if (
$viewmode == "single"){
                
$sql_view "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." AND YEAR(dEntryDate)=".$year." AND DAYOFMONTH(dEntryDate)=".$day." ORDER BY nIdCode DESC;";
            } else {
                
$sql_view "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." AND YEAR(dEntryDate)=".$year." ORDER BY nIdCode DESC;";
            }

        } else {

            
$sql_list "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." AND YEAR(dEntryDate)=".$year." ORDER BY nIdCode DESC;";
            if (
$viewmode == "single"){
                
$sql_view "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." AND YEAR(dEntryDate)=".$year." ORDER BY nIdCode DESC LIMIT 1;";
            } else {
                
$sql_view "SELECT * FROM blog WHERE MONTH(dEntryDate)=".$month." AND YEAR(dEntryDate)=".$year." ORDER BY nIdCode DESC;";
            }
        }
    }


    
// Get data from the database (store in arrays)

    
$list_result mysql_query($sql_list,$con);
    
$view_result mysql_query($sql_view,$con);

    
// Build List Array
    
if ($list_result!=false) {
        
$i=0;
        while (
$list_row =@ mysql_fetch_array($list_result)){
            
$i++;
            
$list_rows[$i] = $list_row;
        }
    } else {
        
$problem "1";
    }

    
// Build View Array
    
if ($view_result!=false) {
        
$i=0;
        while (
$view_row =@ mysql_fetch_array($view_result)){
            
$i++;
            
$view_rows[$i] = $view_row;

            
// build view_comments array
            
if ($viewcomments=="yes") {
                
$sql "SELECT * FROM blog_comments WHERE nBlogId=".$view_row["nIdCode"]." ORDER BY nIdCode DESC";
                
$result mysql_query($sql,$con);
                if (
$result!=false){
                    
$j=0;
                    while (
$comment_row =@ mysql_fetch_array($result)){
                        
$j++;
                        
$view_comment_rows[$i][$j] = $comment_row;
                    }
                }
            }
        }
    } else {
        
$problem "2";
    }

    
// increment view counter for either the single blog being shown
    // or ALL blogs being shown
    
if ($view_rows[1]["nIdCode"]!=""){
        if (
$viewmode=="single"){
            
$blogid $view_rows[1]["nIdCode"];
            
$sql "UPDATE blog SET nViews=nViews+1 WHERE nIdCode=".$blogid;
        } else {
            for (
$i=1;$i<=count($view_rows);$i++){
                
$blog_array[$i] = $view_rows[$i]["nIdCode"];
            }
            
$blogids implode(",",$blog_array);
            
$sql "UPDATE blog SET nViews=nViews+1 WHERE nIdCode IN (".$blogids.")";
        }
        
$result mysql_query($sql,$con);
        if (
$result==false){
            print 
"<li>Problem with SQL<br>[".$sql."]</li>\n";
        }
    }
}

function 
db_hitcount(){
    
$con db_connect();
    
$sql "SELECT SUM(nViews) AS nTotal FROM blog";
    
$result mysql_query($sql,$con);
    if (
$result!=false){
        
$row mysql_fetch_array($result);
        
$total $row["nTotal"];
    } else {
        
$total 0;
    }
    return 
$total;
}

?> 
Ah... ti ricordo che lo sto testando in locale
Traxsung è offline   Rispondi citando il messaggio o parte di esso
Old 30-01-2006, 19:40   #3
Traxsung
Senior Member
 
L'Avatar di Traxsung
 
Iscritto dal: Apr 2005
Messaggi: 5245
dai ragazzi.... ho bisogno urgentemente di un'aiuto
Traxsung è offline   Rispondi citando il messaggio o parte di esso
 Rispondi


NZXT H9 Flow RGB+, Kraken Elite 420 e F140X: abbiamo provato il tris d'assi di NZXT NZXT H9 Flow RGB+, Kraken Elite 420 e F140X: abb...
ASUS ROG Swift OLED PG34WCDN recensione: il primo QD-OLED RGB da 360 Hz ASUS ROG Swift OLED PG34WCDN recensione: il prim...
Recensione Nothing Phone (4a) Pro: finalmente in alluminio, ma dal design sempre unico Recensione Nothing Phone (4a) Pro: finalmente in...
WoW: Midnight, Blizzard mette il primo, storico mattone per l'housing e molto altro WoW: Midnight, Blizzard mette il primo, storico ...
Ecovacs Goat O1200 LiDAR Pro: la prova del robot tagliaerba con tagliabordi integrato Ecovacs Goat O1200 LiDAR Pro: la prova del robot...
Anthropic ha un'AI che trova falle in Wi...
I 10 migliori sconti Amazon del weekend:...
Con un coupon scendono ancora: le super ...
Minimo storico per Samsung Galaxy S26 Ul...
Si è conclusa la missione lunare ...
EK Waterblock si arrende agli aumenti, i...
Geekbench si aggiorna: tutti i test con ...
Per la prima volta un computer quantisti...
Telecamere Reolink 4K su Amazon: Wi-Fi 6...
Anthropic vuole farsi i chip da sola? Co...
Il fondatore di Framework: il personal c...
JBL Live Flex 3 a 129€ su Amazon: ANC ad...
Come un uomo ha costruito un'azienda da ...
Multe fino a 400 euro anche se hai pagat...
Tapo lancia una valanga di offerte su Am...
Chromium
GPU-Z
OCCT
LibreOffice Portable
Opera One Portable
Opera One 106
CCleaner Portable
CCleaner Standard
Cpu-Z
Driver NVIDIA GeForce 546.65 WHQL
SmartFTP
Trillian
Google Chrome Portable
Google Chrome 120
VirtualBox
Tutti gli articoli Tutte le news Tutti i download

Strumenti

Regole
Non Puoi aprire nuove discussioni
Non Puoi rispondere ai messaggi
Non Puoi allegare file
Non Puoi modificare i tuoi messaggi

Il codice vB è On
Le Faccine sono On
Il codice [IMG] è On
Il codice HTML è Off
Vai al Forum


Tutti gli orari sono GMT +1. Ora sono le: 11:48.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Served by www3v