Search found 26 matches

by irfanh94
Sat Oct 22, 2011 8:15 pm
Forum: JavaScript
Topic: JQuery load div problem
Replies: 1
Views: 801

JQuery load div problem

How can load only div from file..

I saw on alex's tutorial about shout box, and there is whole page loaded. But how can i load only div from some page?

Example: i have the file called shout.php and into that have many divs, and i want load only div where is shouts. Is that possible?
by irfanh94
Thu Jun 09, 2011 4:37 pm
Forum: PHP
Topic: Need algoritam.
Replies: 4
Views: 729

Re: Need algoritam.

Ok, you can close or delete this thread.
by irfanh94
Thu Jun 09, 2011 3:42 pm
Forum: PHP
Topic: Need algoritam.
Replies: 4
Views: 729

Need algoritam.

Ok, here is the problem.

I need the algoritam for this:
i want to reduce the price by the number of followers of the offer..

and i want reduced price in percentage..
by irfanh94
Wed Jun 08, 2011 9:54 am
Forum: PHP
Topic: Question about GET
Replies: 8
Views: 1065

Re: Question about GET

Also you soholud put (int) before $_GET just llike this:

[syntax=php]$get_page = htmlentities(mysql_real_escape_string(((int)$_GET['page'])));[/syntax]

Becouse someone can hack your database by sql injection.
by irfanh94
Wed Jun 08, 2011 7:19 am
Forum: PHP
Topic: phpbb sessions including on other files
Replies: 4
Views: 733

Re: phpbb sessions including on other files

No problem, ive found... :D
by irfanh94
Tue Jun 07, 2011 8:03 pm
Forum: PHP
Topic: phpbb sessions including on other files
Replies: 4
Views: 733

Re: phpbb sessions including on other files

Im asking do anyone know how to integrate phpbb sessions with my portal..
by irfanh94
Tue Jun 07, 2011 7:02 pm
Forum: PHP
Topic: phpbb sessions including on other files
Replies: 4
Views: 733

phpbb sessions including on other files

What are the phpbb sessions, and how can i intergrate them with my portal..
by irfanh94
Wed Jun 01, 2011 10:34 pm
Forum: PHP
Topic: PHP Text probl.
Replies: 1
Views: 459

PHP Text probl.

How to make this: if is the post bigger than exmp 250 characters to add after text "..."
by irfanh94
Mon May 30, 2011 9:37 am
Forum: PHP
Topic: PHP Links
Replies: 3
Views: 643

Re: PHP Links

Thanks on replyed posts, im gonna look that viedos.. Btw thanks on help too.
by irfanh94
Sun May 29, 2011 11:42 pm
Forum: PHP
Topic: PHP Links
Replies: 3
Views: 643

PHP Links

How to get links from this exmp. "index.php?article=53&post=23" into this: exmp. "webshop/we-sell-all"
by irfanh94
Fri May 27, 2011 6:08 pm
Forum: PHP
Topic: Php array and assoc question
Replies: 1
Views: 471

Php array and assoc question

What is the difference between mysql_fatch_array and mysql_fatch_assoc ?
by irfanh94
Sun May 15, 2011 8:21 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Thanks good, and also thanks to you. I fixed it.
by irfanh94
Sun May 15, 2011 7:58 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Imoporting the users: [syntax=php]$member = $_SESSION['member']; if ($member) { $time = time(); $ipadress = $_SERVER['REMOTE_ADDR']; mysql_query("INSERT INTO `sf_sessions` (sessionname, ipadress, lastlogin) VALUES ('$member','$ipadress','$time')"); echo mysql_error(); }[/syntax] Echoing th...
by irfanh94
Sun May 15, 2011 7:26 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

God damn, here is the new problem.
When i put the date like this: date("h:m"); it always repeat same time 09:05..

EDIT: again new problem:

look on the right side of http://brainiac-design.info/probe/sfilms/, i just want to echo one time user, not to repeat.
by irfanh94
Sun May 15, 2011 7:11 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Am i going to use timestamps on insert query?
by irfanh94
Sun May 15, 2011 6:59 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Ok, here is the code: [syntax=php]<?php $actualtime = date("h:m"); $query = mysql_query("SELECT * FROM `sf_sessions`"); while ($row = mysql_fetch_assoc($query)) { $pastime = $row['lastlogin']; $timeloggedin = $actualtime - $pastime; if ($timeloggedin >= 15) { echo 'Users logged i...
by irfanh94
Sun May 15, 2011 6:54 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Huh, i understand it now. Im going to code it, and post it here again, to see is it correct.
by irfanh94
Sun May 15, 2011 6:47 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Look, i think to do design of table like this: session name, ip adress, lastlogin (including refreshing the page). I after this i think i should do this: $timelogin = actual time - lastlogin and if $timelogin > 15 minutes echo nothing, else get from the database all users who logged in for 15 minute...
by irfanh94
Sun May 15, 2011 5:36 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

Re: PHP who is online

Ok, and how i can echo time(); to the real time, example: 19:34
by irfanh94
Sun May 15, 2011 4:49 pm
Forum: PHP
Topic: PHP who is online
Replies: 15
Views: 1980

PHP who is online

How can i echo the users who online on my site (who is logged in)..
by irfanh94
Sat May 14, 2011 6:02 pm
Forum: SQL
Topic: Private Messages help.
Replies: 2
Views: 876

Re: Private Messages help.

Thank you very much.