Error Code : 1293
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
Zmieniłam więc pierwszego timestampa(date) na datetime i ustawienia domyślne: 0000-00-00 00:00:00. Działa ale mam problem z wyświetlaniem w jednym miejscu strony - tylko w poniższym fragmencie kodu
Cytat
Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in D:\Programy\xampp\htdocs\solaris\index.php on line 559
<div id="marquee"><marquee height="100%"; direction="down"; onMouseOver="this.stop();" onMouseOut="this.start();"> $query = 'SELECT * FROM news ORDER BY date DESC '; $result = mysql_query($con,$query); <center><a href="#" style="text-decoration:none; font: 16px Hobo Std; color:1c4e93 !important; font-weight:normal;" class="marq;"><font size="3px"><?php while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ echo '<div><br><br><br><font size="+2"><b>'.$row["title"].'</b></font><br><font size="+1">'.$row["content"].'</font><br>Dodano:'.$row["date"].'<br>' .'</div>';} ?></font></a><br> </marquee></div></div>
