Millar
-
Posts
40 -
Joined
-
Last visited
Posts posted by Millar
-
-
Well id rather do it via the proper way. Anyone know why its not working?
-
No. I have the error pages working fine. I just want PHP to output my servers 404 on a page that does. Exist so that I can force the error page for invalid query strings etc.
-
The whole file just looks like this -
[code]<?
header("HTTP/1.1 404 Not Found");
exit;
?>[/code] -
Yes.
-
http://www.mydomain.com/videos.php?id=* Information will be stored in the $_GET['id'] variable.
e.g.
http://www.mydomain.com/videos.php?id=Cats $_GET['id'] would be "Cats" -
I want certain pages to return the 404 error page that the server automatically generates. I tried the following code and it didn't work, what am I doing wrong?
My Code:
[code]header("HTTP/1.1 404 Not Found");[/code]
Thanks. -
I leave it enabled.
-
Thanks, I looked - just couldn't find it.
-
How would I go about getting the MySQL version in a waysimilar to PHP's phpversion() function.
Thanks. -
I have this piece of code to see if a user was active in past 15 mins.
[code]mysql_query ( "SELECT * FROM reg WHERE lastactive>='" . date ( "U" ) - 900 . "'" );[/code]
But this code doesn't work, how could I query using more than? -
Kool, thanks.
-
How would I do it in PHP?
-
I have this piece of code so far to order by the power...
[code]$result = mysql_query("SELECT * FROM reg ORDER BY power DESC") ;
print "<table>";
print "<tr> <th>Name</th></tr>";
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
print "<tr><td><a href='index.php?act=stats&id=" . $row['id'] . "'>";
print $row['user'];
print "</a></td></tr>";
}
print "</table>";[/code]
But, how can I get the position in the array the particular name is, so it is displayed like a ranking by power.
Thanks. -
Well, I was wondering if anyone could give me a script I can use to get a entered value from a post form (e.g Username) and check to see if the username exists in a plain txt file I have with usernames separated by a line break, thanks in advanced.
Millar.
How much does Oracle cost?
in Other RDBMS and SQL dialects
Posted