UnknownPlayer
Members-
Posts
269 -
Joined
-
Last visited
Never
Everything posted by UnknownPlayer
-
Still same In attachment is website, chek out and tell me the error, if you can Thanks [attachment deleted by admin]
-
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 ?
-
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 ?
-
Yes i wonna to display like a tree, can you give me example?
-
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?
-
rewrite help (worked, but now it doesnt, maybe update..)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
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 -
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?
-
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 :/
-
But i need that to be used not once at page..
-
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..
-
MySQL client version: 4.1.22 ?
-
When i user or die (mysql_error())" i got this message: FUNCTION dotars_online.DATEDIFF does not exist How can i solve this ? :/
-
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 ?
-
Thank you very much, it works
-
And date format is like: 1298912971 in db field date
-
It always shows me [new] $query = "SELECT id, name, date, DATEDIFF ($time_now, date) AS diff FROM news"; What is the problem ?
-
But i wonna list all, and put "[new]" text whitch is posted in last 7 days? :/
-
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 ?
-
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?
-
I understand now, thanks guys.. I just thought that there is some other solution with php ajax js..
-
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?
-
Can you, or someone give me code how to do that with my example, please?
-
I want to start voting when it is 00:00, and close when it is 00:00 next day ?
-
Then what is solution ? To check if time is > than 00:00 ?
-
How can i make code which can do something when time is 00:00 ? Is that possible in php, and if not any suggestions?