Search found 9 matches
- Thu Aug 28, 2008 5:35 pm
- Forum: PHP - Code
- Topic: Timestamp ...
- Replies: 1
- Views: 226
Timestamp ...
Me again :) So i get a timestamp from my psql database and it is returned like this 2008-08-28 23:12:25.275871 Now i try to truncate it with php like this while($row = pg_fetch_array($result)){ $tomorrow = mktime($row['newtime']); echo $row['newtime']; echo " - ".da...
- Tue Aug 26, 2008 5:15 pm
- Forum: PHP - Code
- Topic: Need help with redirecting in PHP
- Replies: 30
- Views: 1785
Re: Need help with redirecting in PHP
for the below commnenct
Actually me neither i cant see a difference but i can see that there is a size differece of 8 bytes ...
what exactly did you change ?
and how come the first one was working for me....
Actually me neither i cant see a difference but i can see that there is a size differece of 8 bytes ...
what exactly did you change ?
and how come the first one was working for me....
- Tue Aug 26, 2008 4:48 pm
- Forum: PHP - Code
- Topic: New at php ... cannot compare strings ...
- Replies: 6
- Views: 279
Re: New at php ... cannot compare strings ...
hm ... i kind of new that sql injections could be bad ... but i had no idea of the length ....
A quick read open my eyes
Thanx for referencing it
A quick read open my eyes
Thanx for referencing it
- Tue Aug 26, 2008 4:43 pm
- Forum: PHP - Code
- Topic: Need help with redirecting in PHP
- Replies: 30
- Views: 1785
Re: Need help with redirecting in PHP
<? if($_POST['submit'] == TRUE) header("Location: http://google.com/"); else echo 'not Yet!'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ...
- Tue Aug 26, 2008 4:26 pm
- Forum: PHP - Code
- Topic: New at php ... cannot compare strings ...
- Replies: 6
- Views: 279
Re: New at php ... cannot compare strings ...
Thanx i was almost about to find it ...
but isnt there an easier way ?
When a user created a value, will i always do that ?
Is there any way to remove the whites before inserting ?
or it something i have to live with ...
but isnt there an easier way ?
When a user created a value, will i always do that ?
Is there any way to remove the whites before inserting ?
or it something i have to live with ...
- Tue Aug 26, 2008 4:21 pm
- Forum: PHP - Code
- Topic: New at php ... cannot compare strings ...
- Replies: 6
- Views: 279
Re: New at php ... cannot compare strings ...
Checking stevoo with stevoo string(6) "stevoo" string(25) "stevoo "
hmmm
hmmm
- Tue Aug 26, 2008 4:19 pm
- Forum: PHP - Code
- Topic: Need help with redirecting in PHP
- Replies: 30
- Views: 1785
Re: Need help with redirecting in PHP
<? if($_POST['submit'] == TRUE) header("Location: http://google.com/"); else echo 'not Yet!'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ...
- Tue Aug 26, 2008 4:08 pm
- Forum: PHP - Code
- Topic: Need help with redirecting in PHP
- Replies: 30
- Views: 1785
Re: Need help with redirecting in PHP
<? if($_POST['submit'] == TRUE) { header("Location: http://google.com/"); exit; } error_reporting(E_ALL); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.o...
- Tue Aug 26, 2008 4:02 pm
- Forum: PHP - Code
- Topic: New at php ... cannot compare strings ...
- Replies: 6
- Views: 279
New at php ... cannot compare strings ...
I am new just started php. I am working on understanding AJAx , but my problem is not there I have my psql database connection and whenever i try to do this $correct = 1; while($row = pg_fetch_array($result)) { echo "Checking ".$gamename." with ".$row['gamename']; ...