Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 47
Search took 0.21 seconds.
Search: Posts Made By: er4o
Forum: PHP 05-24-2011, 10:22 AM
Replies: 4
Views: 605
Posted By er4o
Try like this: $currentTime =...

Try like this:

$currentTime = time($msg->getCreatedAt());
$timeAfterOneHour = $currentTime+(60*60*2);
$date=date("Y-m-d H:i:s",$timeAfterOneHour);
Forum: PHP 07-09-2010, 10:47 AM
Replies: 1
Views: 511
Posted By er4o
Did you see the imagecopymerge...

Did you see the imagecopymerge (http://php.net/imagecopymerge) function?
There are some easy examples which may help you.
Forum: PHP 05-21-2010, 09:28 PM
Replies: 9
Views: 1,265
Posted By er4o
You can do it by making a .htaccess file, example...

You can do it by making a .htaccess file, example - http://corz.org/serv/tricks/htaccess2.php
Forum: PHP 04-06-2010, 05:38 PM
Replies: 1
Views: 530
Posted By er4o
What about using multi-dimensional arrays? Here...

What about using multi-dimensional arrays?
Here is an example:
http://php.net/manual/en/language.types.array.php
at
Example #7 Recursive and multi-dimensional arrays
Forum: PHP 04-05-2010, 06:02 PM
Replies: 4
Views: 708
Posted By er4o
Change this echo $row['email'].","; to ...

Change this

echo $row['email'].",";

to

$emails .= $row['email'].",";

and then the file creation
Forum: PHP 04-04-2010, 06:56 PM
Replies: 2
Views: 1,135
Posted By er4o
This have to work ;) $next_month = date("F",...

This have to work ;)

$next_month = date("F", strtotime("+1 month"));
echo $next_month;
Forum: PHP 04-02-2010, 04:50 AM
Replies: 10
Views: 1,176
Posted By er4o
Edited my post ^^

Edited my post ^^
Forum: PHP 04-02-2010, 04:42 AM
Replies: 10
Views: 1,176
Posted By er4o
Just test it with only this code inside...

Just test it with only this code inside UsageResult.php

echo $_POST['cat'];

You may try to change usageResult.php to UsageResult.php
Forum: PHP 02-03-2010, 10:14 AM
Replies: 6
Views: 648
Posted By er4o
Set the $abc into the function <?php ...

Set the $abc into the function

<?php
function xyz() {
$abc = 'hello';
return $abc;
}
echo xyz();
?>
Forum: Design templates and graphics for sale 01-09-2010, 10:19 AM
Replies: 0
Views: 3,814
Posted By er4o
Business template (coded)

1) Design for sale (post a direct link to the design, or screenshot):

http://er4o.org/templates/template1/pic1-thumb.png (http://er4o.org/templates/template1/pic1.png)
...
Forum: PHP 01-01-2010, 09:24 PM
Replies: 5
Views: 718
Posted By er4o
Maybe this will be helpful -...

Maybe this will be helpful - http://www.php.net/manual/en/language.references.whatdo.php
Forum: PHP 12-07-2009, 09:39 AM
Replies: 4
Views: 867
Posted By er4o
Ahh yes, just tested it at my local host. Got...

Ahh yes, just tested it at my local host. Got working query:

if ($_GET['id']) {
$id = intval($_GET['id']);
$sql = "DELETE "._TABLE1.".*, "._TABLE2.".* FROM "._TABLE1.", "._TABLE2." WHERE...
Forum: PHP 12-07-2009, 06:58 AM
Replies: 4
Views: 867
Posted By er4o
Try like this: $sql = "DELETE FROM...

Try like this:

$sql = "DELETE FROM "._TABLE1.", "._TABLE2." WHERE "._TABLE1.".id1 = '" . intval($_GET['id']) . "' AND "._TABLE2.".id2 = '" . intval($_GET['id']) . "'";
Forum: PHP 12-06-2009, 06:42 AM
Replies: 1
Views: 596
Posted By er4o
I am using this one -...

I am using this one - http://ip-to-country.webhosting.info/node/view/6
Forum: PHP 12-04-2009, 03:59 PM
Replies: 1
Views: 541
Posted By er4o
What about using Cookies/Sessions? ...

What about using Cookies/Sessions?
http://www.php.net/manual/en/features.cookies.php
http://www.php.net/manual/en/features.sessions.php
Forum: PHP 12-02-2009, 04:45 PM
Replies: 2
Views: 909
Posted By er4o
Hey I tryed to do something but I don't know if...

Hey I tryed to do something but I don't know if this is what you want.


$start = strtotime("2009-12-02 15:34:58");
$now = time();
$end = strtotime("2009-12-02 19:34:58");

echo "Start: " ....
Forum: PHP 12-01-2009, 07:08 PM
Replies: 2
Views: 398
Posted By er4o
Well with this example the date() function gets...

Well with this example the date() function gets the time by the old timestamp.
Try like this

$new_date = date('Y-m-d H:i:s');
print $new_date;
Forum: PHP 11-30-2009, 11:18 AM
Replies: 6
Views: 544
Posted By er4o
Did you try with this function? -...

Did you try with this function? - http://php.net/manual/en/function.sort.php
Forum: PHP 11-15-2009, 05:40 AM
Replies: 1
Views: 456
Posted By er4o
I think you forgot the ) bracket - if...

I think you forgot the ) bracket -
if (isset($settings)) {
Forum: PHP 11-12-2009, 06:44 AM
Replies: 11
Views: 1,102
Posted By er4o
Try to place the ob_start(); function line after...

Try to place the ob_start(); function line after the <?php tag.
Forum: PHP 11-08-2009, 06:23 PM
Replies: 1
Views: 797
Posted By er4o
http://php.net/htmlspecialchars ...

http://php.net/htmlspecialchars
http://php.net/htmlspecialchars_decode

this may help?
Forum: PHP 11-08-2009, 08:22 AM
Replies: 4
Views: 757
Posted By er4o
Here is one function which can be helpful for...

Here is one function which can be helpful for you:

function textlimit($text, $len, $end_char = "...") {
if (strlen($text) > $len) { return substr($text, 0, $len) . $end_char; }
else { return...
Forum: PHP 10-30-2009, 04:18 PM
Replies: 3
Views: 1,714
Posted By er4o
Something like this, maybe? echo date("F d...

Something like this, maybe?

echo date("F d Y, H:i", strtotime("+5 hour"));

or

echo date("F d Y, H:i", (time() + (5 * 60 * 60)));
Forum: PHP 10-27-2009, 04:52 AM
Replies: 5
Views: 449
Posted By er4o
header("refresh: 3; url=wheretoredirect"); ...

header("refresh: 3; url=wheretoredirect");


That will redirect you after 3 seconds, to wheretoredirect (change this to your page).
Forum: PHP 10-26-2009, 10:22 PM
Replies: 3
Views: 390
Posted By er4o
In your css: .color1 { background-color:...

In your css:

.color1 { background-color: #ffffff; }
.color2 { background-color: #e6e6e6; }


and the div's:


<div class='color1'>
Showing results 1 to 25 of 47

 
Forum Jump

All times are GMT +1. The time now is 12:08 AM.