Search found 26 matches

by Supper Baby
Wed Aug 30, 2006 11:45 am
Forum: PHP - Code
Topic: textarea addslashes confusion
Replies: 3
Views: 1211

use stripcslashes() before showing the contint.
be sure befor using add and strip slahes, the get_magic_quotes_gpc() value is zero

if it's zero then use them.
by Supper Baby
Wed Aug 30, 2006 6:24 am
Forum: PHP - Code
Topic: Send authenticate
Replies: 4
Views: 1187

how do you connect to the remote server ?

you may use

Code: Select all

$fp = fsockopen("domain.com", 2043, $errno, $errstr, 30);
fputs($fp, 'username' );
by Supper Baby
Wed Aug 30, 2006 6:18 am
Forum: PHP - Code
Topic: Calendar
Replies: 1
Views: 628

Calendar

Hello everyone :) , that's my function : /* * That function take unix time and generate human form for the given time. * If there's no old value ( no given time ) then use the corrent unix time! */ Function DateForm( $unix ) { // If we don't have unix time get today unix time $unix = ( $unix == 0 OR...
by Supper Baby
Wed Aug 30, 2006 2:11 am
Forum: PHP - Code
Topic: How can I count DB filed value ?
Replies: 3
Views: 1128

:D I found the answer

Code: Select all

SELECT sum(point)
FROM yourtable;
:) thanks to MySQL Forum http://forums.mysql.com/read.php?10,113 ... msg-113110
by Supper Baby
Wed Aug 30, 2006 12:23 am
Forum: PHP - Code
Topic: How can I count DB filed value ?
Replies: 3
Views: 1128

Code: Select all

id    point
1     10
2     10
3     10
4     5
5     10
I want to get the total number ( 45 )

:oops: Sorry for my poor english language
by Supper Baby
Wed Aug 30, 2006 12:13 am
Forum: PHP - Code
Topic: How can I count DB filed value ?
Replies: 3
Views: 1128

How can I count DB filed value ?

I've filed named Point

I want to count all the filed value ( the total value not the total filed number )

can I do it by using simple SQL query ? or should I do while statment to get it manually
by Supper Baby
Sat Aug 26, 2006 8:57 pm
Forum: PHP - Code
Topic: Fatal error: Maximum execution time of 30 seconds
Replies: 10
Views: 2267

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] I resolve...
by Supper Baby
Sat Aug 26, 2006 10:24 am
Forum: PHP - Code
Topic: How to get today unix time ?
Replies: 6
Views: 3553

LOL :lol:

8) seems I'm not the only one who thinking too much :wink:
by Supper Baby
Sat Aug 26, 2006 8:11 am
Forum: PHP - Code
Topic: How to get today unix time ?
Replies: 6
Views: 3553

:oops: I mean born
by Supper Baby
Sat Aug 26, 2006 7:42 am
Forum: PHP - Code
Topic: How to get today unix time ?
Replies: 6
Views: 3553

Weirdan wrote:

Code: Select all

echo strtotime('today');


8O I can't belief it 8O

I was using trouble Function to get that.

:D Thank you very very very much
by Supper Baby
Sat Aug 26, 2006 7:33 am
Forum: PHP - Code
Topic: Fatal error: Maximum execution time of 30 seconds
Replies: 10
Views: 2267

BTW: can you tell me what you try to say in your signature How can I explain it better? Ok, I'll try... You need to think and make a plan before you start to code. The first part of the signature is a joke... you still need to document your code :wink: I see :) you'r right we must code our document...
by Supper Baby
Sat Aug 26, 2006 7:25 am
Forum: PHP - Code
Topic: How to get today unix time ?
Replies: 6
Views: 3553

How to get today unix time ?

Hello again,

When we use time() we get unix time at this moment

what if we need to know the unix time for this day start ?

today is 26 aug. I need unix time for that day ( at second Zero ) the day porn 00.00 I don't want to get unix time for the current hour

:?:
by Supper Baby
Sat Aug 26, 2006 6:36 am
Forum: PHP - Code
Topic: newbie question why is '@' used ?
Replies: 35
Views: 5518

@ is using to pass any error maybe you get.

When you use @ the script will not print any error for the exact comand
by Supper Baby
Sat Aug 26, 2006 4:51 am
Forum: PHP - Code
Topic: Fatal error: Maximum execution time of 30 seconds
Replies: 10
Views: 2267

BTW: can you tell me what you try to say in your signature
Don't document your code, code your documentation
<<======== Newbie
by Supper Baby
Sat Aug 26, 2006 4:48 am
Forum: PHP - Code
Topic: Fatal error: Maximum execution time of 30 seconds
Replies: 10
Views: 2267

:lol: you can find a copy of it here http://www.fbi.gov

I own this site : http://www.fbi.gov <<======== :D don't know how to lie

I belief any of you can tell me how to figure the error and Debug the code (Without seeing the code of course :D).