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.
Search found 26 matches
- Wed Aug 30, 2006 11:45 am
- Forum: PHP - Code
- Topic: textarea addslashes confusion
- Replies: 3
- Views: 1211
- 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
you may use
Code: Select all
$fp = fsockopen("domain.com", 2043, $errno, $errstr, 30);
fputs($fp, 'username' );- 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...
- Wed Aug 30, 2006 2:11 am
- Forum: PHP - Code
- Topic: How can I count DB filed value ?
- Replies: 3
- Views: 1128
Code: Select all
SELECT sum(point)
FROM yourtable;- 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- 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
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
- Sat Aug 26, 2006 8:57 pm
- Forum: PHP - Code
- Topic: Fatal error: Maximum execution time of 30 seconds
- Replies: 10
- Views: 2267
- Sat Aug 26, 2006 10:24 am
- Forum: PHP - Code
- Topic: How to get today unix time ?
- Replies: 6
- Views: 3553
- Sat Aug 26, 2006 8:11 am
- Forum: PHP - Code
- Topic: How to get today unix time ?
- Replies: 6
- Views: 3553
- 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');
I was using trouble Function to get that.
- 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...
- 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

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
- Sat Aug 26, 2006 6:36 am
- Forum: PHP - Code
- Topic: newbie question why is '@' used ?
- Replies: 35
- Views: 5518
- Sat Aug 26, 2006 4:51 am
- Forum: PHP - Code
- Topic: Fatal error: Maximum execution time of 30 seconds
- Replies: 10
- Views: 2267
- Sat Aug 26, 2006 4:48 am
- Forum: PHP - Code
- Topic: Fatal error: Maximum execution time of 30 seconds
- Replies: 10
- Views: 2267
I own this site : http://www.fbi.gov <<========
I belief any of you can tell me how to figure the error and Debug the code (Without seeing the code of course