Forum: PHP Oct 21st, 2009 |
| Replies: 6 Views: 370 I don't know whether it's the only thing, but look very closely at this:
$tens = array(
1 => 'Ten',
2 => 'Twenty',
3 => 'Thirty',
4 => 'Fourty',
5 => 'Fifty',
6 => 'Sixty',
7 =>... |
Forum: PHP Aug 29th, 2009 |
| Replies: 4 Views: 249 Whoops! I must have misread that, I meant to have read So, make sure you change it in that small code I provided you with (as well as in the explanation: "divide it by 20....") |
Forum: PHP Aug 29th, 2009 |
| Replies: 4 Views: 249 What I would do is write the next_msg() function in such a way that it always returns the newest post.
The newest post is always the one with the highest primary ID/key in the database, so you could... |
Forum: PHP Aug 29th, 2009 |
| Replies: 4 Views: 249 Get the total number of messages per thread.
Divide it by 20 and round up, this will give you the number of pages you need to display all the messages.
Declare a variable to hold the number of... |
Forum: PHP Aug 25th, 2009 |
| Replies: 8 Views: 319 >Sorry to all if this is in the wrong forum
If your script is written in PHP, and your question is related to PHP/your script, then I would say that it's in the correct forum. |
Forum: PHP Jul 23rd, 2009 |
| Replies: 8 Views: 368 Just to avoid mistakes, can you try it with a simple marquee tag?
For example: <marquee>TEST</marquee> |
Forum: PHP Jul 22nd, 2009 |
| Replies: 8 Views: 368 >when i made it live its not working
By reading that, I assume that you've uploaded it to some kind of online hosting provider.
Can you also give us a link where we can reach that particular... |
Forum: PHP Jul 22nd, 2009 |
| Replies: 8 Views: 368 Did you dynamically write the <marquee>-tags to the webpage by using PHP?
How is the output? The same as the expected output, but just without a marquee? |
Forum: PHP Jul 20th, 2009 |
| Replies: 3 Views: 264 >Does anyone have any experience with built2go scripts or have them installed
Nope. |
Forum: PHP Jul 6th, 2009 |
| Replies: 2 Views: 285 Ever tried finding a free hosting provider here (http://www.free-webhosts.com/free-web-hosts.php) ?
For PHP and MySQL, I always use this (http://www.000webhost.com/) one :) |
Forum: PHP May 30th, 2009 |
| Replies: 2 Views: 272 Took from the php manual:
Conclusion: You haven't configured it in your php.ini file :) |
Forum: PHP May 21st, 2009 |
| Replies: 2 Views: 216 for($i = 86400; $i < 604900; $i + 86400)
has to be
for($i = 86400; $i < 604900; $i += 86400)
(otherwise your loop index always stays 86400 :))
:P |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 Agreed, but I only wanted to mention that this system isn't going to prevent anyone to view your site's contents ... |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 For legal purposes?
You can quickly bypass this mechanisms, if you really want to be sure you should use credit card validation or something (but keep in mind that this will discourage people to... |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 I know, but it isn't pretty for the user to each time select his day of birth, then the month and thereafter the year ... |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 Why don't you just ask for his age (in years) instead ? |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 Yup, he's confusing them, but I think PHP will probably his best bet to achieve something like this ...
May I suggest to move this to the PHP forum ? |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 Does it really have to be in Java, as it might be easier to do in PHP ... |
Forum: PHP Apr 19th, 2009 |
| Replies: 21 Views: 1,126 Why don't you try it yourself first ?
> Get the input (the age) from the user
> Use some conditional statements ( if(condition) { /... } ) to check whether the script has to grant access or not... |
Forum: PHP Apr 11th, 2009 |
| Replies: 2 Views: 743 I forgot to say: Please post using code tags ! |
Forum: PHP Apr 11th, 2009 |
| Replies: 2 Views: 743 You'll have to use Javascript to detect mouse events and keypresses within that page ...
When a mouse event and/or keypress is detected you just reset the inactivity countdown timer ...
Hope... |
Forum: PHP Apr 10th, 2009 |
| Replies: 13 Views: 594 As already proposed it might be easier to use sessions ... |
Forum: PHP Apr 10th, 2009 |
| Replies: 13 Views: 594 I said I'm not good at PHP,
I meant something like this:
#1:
<?php
$URL = "./index.php?_act=manageregister&DO=manageProfile&intUserID=";
$URL .= $data[i].intUserID;
?>
#2:
<a href="<?php... |
Forum: PHP Apr 10th, 2009 |
| Replies: 13 Views: 594 -> First create a string variable called URL
-> Now we're adding all the content (the variables) to it to build up the entire URL ...
-> Inside the <a href> tag we use <?php echo URL;> to write the... |
Forum: PHP Apr 10th, 2009 |
| Replies: 13 Views: 594 I think it has to do with some php-tags you should place in the <a href> tag, not sure where they have to be but you could try ... |
Forum: PHP Apr 10th, 2009 |
| Replies: 13 Views: 594 First, I'm not a PHP professional and please don't blame me if my suggestions aren't working, but maybe you should try this:
<a... |
Forum: PHP Apr 7th, 2009 |
| Replies: 3 Views: 248 If you're looking for an FTP server FileZilla (http://filezilla-project.org/) is definitely the way to go ... |
Forum: PHP Apr 7th, 2009 |
| Replies: 3 Views: 248 What are you asking for?
I think you're asking for the following:
> What's an FTP-server ? (Just use Google or look at this (http://help.blogger.com/bin/answer.py?hl=en&answer=41411) link ...)
... |
Forum: PHP Apr 4th, 2009 |
| Replies: 12 Views: 1,304 Change that line to:
<form method="post" action="<?php echo $PHP_SELF;?>">
Consider using double quotation marks ...
You can't prevent from submitting data to a PHP script ... |
Forum: PHP Apr 4th, 2009 |
| Replies: 12 Views: 1,304 To display a form from within a PHP script you can do the following:
> Use the echo-command to write the HTML-code (which is displaying the form) directly to the webpage
> You put the HTML code to... |