Jump to content

UnknownPlayer

Members
  • Posts

    269
  • Joined

  • Last visited

    Never

Everything posted by UnknownPlayer

  1. Still same In attachment is website, chek out and tell me the error, if you can Thanks [attachment deleted by admin]
  2. This #content is that grey div behind the article divs, but that content need to be height 100%. When i put some other text in that content div, it works fine, but when there is article class it doesnt work.. Can you help ?
  3. I have this code: #content { width:900px; height:auto; margin:auto; border:solid 1px #000; background-image:url(../images/img6.jpg); background-repeat:repeat-x; background-color:#FFF; padding: 30px 10px 10px 10px; -moz-border-radius : 10px; -webkit-border-radius : 10px; } .article { width:300px; height:200px; -moz-border-radius : 5px; -webkit-border-radius : 5px; background-color:#CCC; float:left; margin:0 20px 20px 0; position:relative; } <div id="content"> <div class="article"></div> <div class="article"></div> <div class="article"></div> </div> But i got this: This in red is problem, why articles are not in content div ? And why content div is not height auto ?
  4. Yes i wonna to display like a tree, can you give me example?
  5. How can i make unlimited sub categories when i have this mysql fields: id, name, parent $query = "SELECT * FROM cats"; $result = mysql_query($query); while ($var = mysql_fetch_array($result)) { echo $var['name']; // now i need here some code for sub cats, but sub cat in subcat } Can someone help me?
  6. Please i need help Every page can be loaded with full file name with extension, but with this /post/ url and other, it cant be loaded.. Thry this: http://www.likestatus.net/post/454 and http://www.likestatus.net/post.php?pid=454
  7. I have this mod_rewrite: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^post/([0-9]+)$ post.php?pid=$1 [L] And it worked while hosting center updated apache i think, now it loads page but it cant read $_GET['pid'] var, i dont know why. When i go to www.web.com/post/22 it doesn't work but if i go to www.web.com/post.php?pid=22 it works :/ Can someone help me?
  8. This helped.. thanks.. Support center from my hosting said that they have 5.1 version for new customers, they cant upgrade for old, becouse mysql can be broken or what :/
  9. But i need that to be used not once at page..
  10. Can someone give me code for countdown.. When i get time from mysql, and from time(), to countdown days, hours, minutes, seconds until that time from mysql, can someone give me some example ? Thanks..
  11. When i user or die (mysql_error())" i got this message: FUNCTION dotars_online.DATEDIFF does not exist How can i solve this ? :/
  12. Hi, got problem On my computer where is installed apache , php, mysql it works, but on web server it does not work, got this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/dotars/public_html/online/shows.php on line 77 This is code: $query = "SELECT id, name, date, DATEDIFF (NOW(), FROM_UNIXTIME(date)) AS diff FROM shows ORDER BY name"; $result = mysql_query($query, $connection); What is problem here ?
  13. And date format is like: 1298912971 in db field date
  14. It always shows me [new] $query = "SELECT id, name, date, DATEDIFF ($time_now, date) AS diff FROM news"; What is the problem ?
  15. But i wonna list all, and put "[new]" text whitch is posted in last 7 days? :/
  16. This code is fine for countdown, but can you make to have some js and refresh only timer, i mean to decrese minutes with echo, without refreshing page ?
  17. I need to set when new news is posted from 7 days to now, to put echo that it is new.. while ($var = mysql_fetch_array($result)) { $name = $var['name']; $date = $var['date']; echo " - {$s_name} [new]<br />"; } Now i need to put "[new]" when news is written in past 7 days(1 week), can someone help me?
  18. I understand now, thanks guys.. I just thought that there is some other solution with php ajax js..
  19. I found in cpanel crontabs.. Now i need to setup some file to run when it is 00:00 which will set voting as disabled?
  20. Can you, or someone give me code how to do that with my example, please?
  21. I want to start voting when it is 00:00, and close when it is 00:00 next day ?
  22. Then what is solution ? To check if time is > than 00:00 ?
  23. How can i make code which can do something when time is 00:00 ? Is that possible in php, and if not any suggestions?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.