![]() |
sponsored links |
|
|
sponsored links
|
|
|
2
24th February 10:00
External User
Posts: 1
|
You have WHERE twice in "...from studres where where dag...", try what
happens if you remove the extra where. This is one of the reasons why sql keywords should be written in CAPITAL letters. It's easier to spot the error if you write: "SELECT COUNT(*) AS totuur FROM studres WHERE WHERE dag>= CURDATE() AND logon='$lol'" -- "En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö antaatulla.sikanautaa@gmail.com.NOSPAM.invalid |
|
|
3
24th February 10:00
External User
Posts: 1
|
And if you would have checked the result of the mysql_query() call, you
would have found your problem. $result = mysql_query($sql); if ($result) { $row = mysql_fetch_field($result,0); // J'ai essayé avec: $row = mysql_fetch_row($result); $totu=$row[0]; } else echo "MySQL error: " . mysql_error(); -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|
4
29th March 00:40
External User
Posts: 1
|
You have WHERE twice in "...from studres where where dag...", try what
happens if you remove the extra where. This is one of the reasons why sql keywords should be written in CAPITAL letters. It's easier to spot the error if you write: "SELECT COUNT(*) AS totuur FROM studres WHERE WHERE dag>= CURDATE() AND logon='$lol'" -- "En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö antaatulla.sikanautaa@gmail.com.NOSPAM.invalid |
|
|
5
29th March 00:40
External User
Posts: 1
|
And if you would have checked the result of the mysql_query() call, you
would have found your problem. $result = mysql_query($sql); if ($result) { $row = mysql_fetch_field($result,0); // J'ai essayé avec: $row = mysql_fetch_row($result); $totu=$row[0]; } else echo "MySQL error: " . mysql_error(); -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|