Indica Posted August 1, 2016 Report Share Posted August 1, 2016 (edited) salut, incerc dar nu reusesc sa rezolv problema asta in php( sunt n00b in php), am cautat si pe google si aici pe forum pentru o rezolvare dar nu gasesc sau nu stiu sa caut. eroarea este: [01-Aug-2016 11:15:10 EET] PHP Notice: Undefined index: _data in /home/-----/public_html/index.php on line 74 [01-Aug-2016 11:15:10 EET] PHP Notice: Undefined index: _time in /home/-----/public_html/index.php on line 75 din ce inteleg, inseamna ca nu este definita varianta _data si _time(zic sa ma aflu in treaba) cum as putea rezolva? <p class="text-muted"> <h6> <?php echo $row['_data']; ?> alle <?php echo $row['_time']; ?> </h6> </p> Edited August 1, 2016 by Indica Quote Link to comment Share on other sites More sharing options...
Wav3 Posted August 1, 2016 Report Share Posted August 1, 2016 pune si ce ai la liniile 74 si 75. Quote Link to comment Share on other sites More sharing options...
Indica Posted August 1, 2016 Author Report Share Posted August 1, 2016 13 minutes ago, Wav3 said: pune si ce ai la liniile 74 si 75. am uitat sa pun si unde este problema, am dat edit la post Quote Link to comment Share on other sites More sharing options...
susp3kt Posted August 1, 2016 Report Share Posted August 1, 2016 1 hour ago, Indica said: salut, incerc dar nu reusesc sa rezolv problema asta in php( sunt n00b in php), am cautat si pe google si aici pe forum pentru o rezolvare dar nu gasesc sau nu stiu sa caut. eroarea este: [01-Aug-2016 11:15:10 EET] PHP Notice: Undefined index: _data in /home/-----/public_html/index.php on line 74 [01-Aug-2016 11:15:10 EET] PHP Notice: Undefined index: _time in /home/-----/public_html/index.php on line 75 din ce inteleg, inseamna ca nu este definita varianta _data si _time(zic sa ma aflu in treaba) cum as putea rezolva? <p class="text-muted"> <h6> <?php echo $row['_data']; ?> alle <?php echo $row['_time']; ?> </h6> </p> In tabelul din baza de date, campurile tale sunt cu _ sau fara? Inlocuieste $row['_data'] cu $row['data'] Quote Link to comment Share on other sites More sharing options...
Indica Posted August 1, 2016 Author Report Share Posted August 1, 2016 (edited) susp3kt, am incercat si asa cum zici dar aceiasi eroare, am incercat din nou acum sa pot sa arat ce scrie in log [01-Aug-2016 12:01:08 EET] PHP Notice: Undefined index: data in /home/secretul/public_html/index.php on line 74 [01-Aug-2016 12:01:08 EET] PHP Notice: Undefined index: time in /home/secretul/public_html/index.php on line 75 [01-Aug-2016 12:01:08 EET] PHP Notice: Undefined index: data in /home/secretul/public_html/index.php on line 74 [01-Aug-2016 12:01:08 EET] PHP Notice: Undefined index: time in /home/secretul/public_html/index.php on line 75 ms de raspuns Edited August 1, 2016 by Indica Quote Link to comment Share on other sites More sharing options...
Wav3 Posted August 1, 2016 Report Share Posted August 1, 2016 $row ce este? nu pare a fi array Quote Link to comment Share on other sites More sharing options...
Indica Posted August 1, 2016 Author Report Share Posted August 1, 2016 3 minutes ago, Wav3 said: $row ce este? nu pare a fi array sincer sa spun chiar nu stiu, nu stiu programare cam deloc, stiu doar ceva html de baza, daca imi spui unde sa caut iti spun Quote Link to comment Share on other sites More sharing options...
aelius Posted August 1, 2016 Report Share Posted August 1, 2016 1. Ala e warning, nu error. 2. Nu mai folosi date, time 3. Pune mai mult din codul unde ai alea. Nu avem cum sa ne dam seama ce e acolo. 4. Trebuie sa vedem o parte din structura tabelei mysql. Quote Link to comment Share on other sites More sharing options...
Wav3 Posted August 1, 2016 Report Share Posted August 1, 2016 Da-ne din cod partea unde este definit acel $row ("$row = ") Quote Link to comment Share on other sites More sharing options...
Indica Posted August 1, 2016 Author Report Share Posted August 1, 2016 problema rezolvata, m-am uitat putin print phpmyadmin si am vazut ca in tabelul de la zona respectiva nu avea coloanele _data si _time multumesc pentru ajutor Quote Link to comment Share on other sites More sharing options...