Jump to content
Indica

Eroare php pentru data si ora

Recommended Posts

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 by Indica
Link to post
Share on other sites
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']

Link to post
Share on other sites

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 by Indica
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...