Search found 14 matches

by D_zone
Sat Jun 22, 2013 9:24 am
Forum: Javascript
Topic: Jquery: Simple youtube video gallery with fade effect
Replies: 0
Views: 3647

Jquery: Simple youtube video gallery with fade effect

I got a bit of a problem, I created it a simple video gallery with a playbutton. I got the fade effect working well with images BUT it will not load the specific video. This is the jquery code. Any suggestion? // JavaScript Document $(document).ready(function(){ $('a.video_link').each(function(){ va...
by D_zone
Mon Jun 04, 2012 6:15 pm
Forum: PHP - Code
Topic: Calculate date (over a month)
Replies: 4
Views: 2145

Re: Calculate date (over a month)

Yeah it worked ok with two weeks but It gets confusing when doing it a month since every month doesn't have exact amount of days (28,29,30,31) I got this for within 2 weeks $day = '3'; //sample $w_ago = strtotime("-7 day"); $week_ago = date("d", $w_ago); $two_w_ago = strtotime(&q...
by D_zone
Mon Jun 04, 2012 11:38 am
Forum: PHP - Code
Topic: Calculate date (over a month)
Replies: 4
Views: 2145

Calculate date (over a month)

Hi everyone!

Can anybody give some tips, advices or ideas of how to calculate the days over a month.
I have a login system and a database but I don't want it to be specific with dates. the idea is having expressions like :
OVER A MONTH, OVER A WEEK, WITHING A MONTH etc.

I will truly appreciate it.
by D_zone
Mon May 07, 2012 4:00 pm
Forum: PHP - Code
Topic: echo errors in wrong Place [SOLVED]
Replies: 3
Views: 831

Re: echo errors in wrong Place [SOLVED]

Hi Celauran, thank you for replying, I fixed the broken function by adding a return variable. public function display_errors() { $errorx = "<h3>Errors</h3>"; foreach($this->errors as $key=>$value) $errorx .= $value."<br>"; return $errorx ; }
by D_zone
Mon May 07, 2012 10:57 am
Forum: PHP - Code
Topic: echo errors in wrong Place [SOLVED]
Replies: 3
Views: 831

echo errors in wrong Place [SOLVED]

So my problem is this, I got a registration form BUT every time I got an error it display it above the <h1> Registration </h1> title I have in my form. My goal is to place the errors Below the Registration title. I have a class called register and the function that display errors in it. This is the ...
by D_zone
Tue Apr 24, 2012 9:28 am
Forum: PHP - Code
Topic: Error redirecting when submitting data [SOLVED]
Replies: 5
Views: 889

Re: Error redirecting when submitting data [SOLVED]

I finally can fixed the problem. What I found out is that THIS is a very common error in PHP, I guess the spaces before the header tag might be one reason so I tried a different way to redirect instead to use header tag. Echo some java Script. echo("<script>location.href = 'http://www.google.co...
by D_zone
Fri Apr 20, 2012 1:44 pm
Forum: PHP - Code
Topic: Error redirecting when submitting data [SOLVED]
Replies: 5
Views: 889

Re: Error redirecting when submitting data

Thank you tr0gd0rr for replying; I tried ini_set('display_errors',1); and it show this error Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/ in /Applications/MAMP/htdocs/process.php on line 30 -------->header("Location: http://ww...
by D_zone
Fri Apr 20, 2012 1:12 pm
Forum: PHP - Code
Topic: Error redirecting when submitting data [SOLVED]
Replies: 5
Views: 889

Error redirecting when submitting data [SOLVED]

I have this code, for some reason it is no redirecting to the address I'd like to, yet it shows a plain blank page after submitting data. It does submit the info but it just won't redirect me to google . <?php $connection = mysql_connect("localhost","root","root"); if (...
by D_zone
Wed Dec 14, 2011 10:24 am
Forum: PHP - Code
Topic: Can't connect to local MySQL server through socket '/var/run
Replies: 3
Views: 738

Re: Can't connect to local MySQL server through socket '/var

So should i replaced the $argHostname '192.168.1.6' in very function?
by D_zone
Wed Dec 14, 2011 9:12 am
Forum: PHP - Code
Topic: Can't connect to local MySQL server through socket '/var/run
Replies: 3
Views: 738

Can't connect to local MySQL server through socket '/var/run

I Have these error and I can't login to my admin page because of that. Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /var/www.sit.com/lib/adodb5/drivers/adodb-mysql.inc.php on line 364 Fatal error: Call to a...
by D_zone
Tue Nov 15, 2011 1:28 pm
Forum: PHP - Code
Topic: Undefined index: actual in /var/www/hay/controller/main.php
Replies: 1
Views: 207

Undefined index: actual in /var/www/hay/controller/main.php

I have this code yet still have an error, class Main { private static $pages = Array( 'rolunk' => 1, 'paprikahaz' => 2, 'lovagrend' => 3, 'kapcsolat' => 4, 'actual' => 5 ); public static function index() { if (!isset($GLOBALS['url'][0])) { Util::redirect('/actual'); } else { $page = $GLOBALS['url'][...
by D_zone
Wed Nov 04, 2009 11:43 am
Forum: PHP - Code
Topic: Sending MAIL WITH IMAGES!
Replies: 5
Views: 230

Re: Sending MAIL WITH IMAGES!

I am not so sure what you're saying Eric, I am sending these mails to a GMAIL,YAYOO accounts I have but don't get images into none of them.
by D_zone
Tue Nov 03, 2009 11:35 am
Forum: PHP - Code
Topic: Sending MAIL WITH IMAGES!
Replies: 5
Views: 230

Re: Sending MAIL WITH IMAGES!

Thanks for replying akuji36, I tried sending using css as well and didn't work either, like i said it worked only once where i finally saw the images in my mail box but it didn't last, it's weird. I can color the background with no problem but the fact that I can't add images kills me. Anybody has a...
by D_zone
Mon Nov 02, 2009 9:31 am
Forum: PHP - Code
Topic: Sending MAIL WITH IMAGES!
Replies: 5
Views: 230

Sending MAIL WITH IMAGES!

Does anybody know any tutorial or anything about sending images, not as an attachment but as background to a mail? I have this code, It send the message but not the image, weird as it is, it worked and then didn't work. It seems pretty simple, but it's not. Hope anybody could help.   <?php       $t...