Search found 8 matches

by minotron
Fri Apr 27, 2012 6:40 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

I have solved it so, that I deleted: extract($row) and now it goes, thank you for your help
by minotron
Thu Apr 26, 2012 11:49 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

It writes the same error and now writes else problem with date: Notice: A non well formed numeric value encountered in H:\xampp\htdocs\rozpis.php on line 24 ...it's this line:

Code: Select all

echo '<td>' .date("j. F Y", $datum). '</td>';
by minotron
Thu Apr 26, 2012 10:30 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

When I changed the first mysql_fetch_array($result) to mysql_fetch_assoc($result) it had written warning about mysql_fetch_assoc($result) so the problem is in the first one...
by minotron
Thu Apr 26, 2012 8:37 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

<?php include 'connect.inc.php'; include 'header.inc.php'; $mesiace = array("Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl", "August", "September", "Október", "November", "December"); echo '<div id="rozpis">'; $sql = "SELECT game_id, rival_id, result, h_a, UNIX_TIMESTAMP(datum) AS datum ...
by minotron
Thu Apr 26, 2012 8:17 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

and when I try to run:

Code: Select all

echo mysql_num_rows($result)
it writes right value
by minotron
Thu Apr 26, 2012 8:14 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

When I run query in phpmyadmin it shows correct values...but when I run it in localhost it shows this message and writes only first row from table...and when I changed it so how you have written it, it showed the same warning...it is very mysterious :) :help:
by minotron
Thu Apr 26, 2012 7:48 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

Re: php warning

I have changed that, but it still writes the same warning.
by minotron
Thu Apr 26, 2012 7:13 am
Forum: PHP Scripts
Topic: php warning
Replies: 12
Views: 4632

php warning

Hi I have this code: $sql = "SELECT game_id, rival_id, result, h_a, UNIX_TIMESTAMP(datum) AS datum FROM game ORDER BY datum ASC"; $result = mysql_query($sql, $db) or die(mysql_error($db)); if(mysql_num_rows($result) > 0) { echo '<table>'; echo '<tr><td>Dátum</td><td>Domáci</td><td>Hostia</td><td>Výs...