Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Qualcuno gentilmente potrebbe dirmi cosa significa questo :?
sono uno studente e mi è stato richiesto di tirar giù un programma eseguito con il linguaggio di php. Io aimè non ne capisco molto


Google Translate:
I am a student and I was asked to write down a program run with the php language. I do not understand very much


What I have tried:

a questo:
$rito=$matrimoniBologna[$i][1];
mi risponde Php con questo:
Google Translate:
Php answers me with this:

Undefined variable: nTot in /home/runner/main.phpon line 81
Posted
Updated 26-Nov-19 0:04am
v2

1 solution

"Undefined variable" means exactly what is says: you are trying to use the content of a variable before you have declared it - a bit like trying to call someone before you have been given their number.
The system cannot find the variable called "nTot" before you try to use it, so it can't assume it';s value and give you the correct result. You may have forgotten it, you may have misspelled it, we don't know. Start by looking at line 81 of your code and see where before that you declared the variable.

BTW: We can only answer English questions: please use Google Translate in future!


Google Translate:
"Undefined variable" significa esattamente ciò che viene detto: stai cercando di utilizzare il contenuto di una variabile prima di averla dichiarata - un po 'come cercare di chiamare qualcuno prima che ti sia stato dato il loro numero.
Il sistema non riesce a trovare la variabile chiamata "nTot" prima di provare a usarla, quindi non può assumerne il valore e darti il risultato corretto. Potresti averlo dimenticato, potresti averlo scritto male, non lo sappiamo. Inizia osservando la riga 81 del tuo codice e vedi dove prima hai dichiarato la variabile.

A proposito: possiamo solo rispondere a domande in inglese: per favore usa Google Translate in futuro!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900