![]() |
|
|||||||
|
|
Thread Tools | Search this Thread |
Rating:
|
|
#11
|
|||
|
|||
|
Im not sure I fully understand what you are trying to do, but
if you are pulling dates from a mysql Database then you can use the date_format() function and manipulate the date in many different ways. do a search on the different settings you can specify, its a tough function to find info on but its out there. Hope this helps Mike Thanks again for the help |
|||
|
#12
|
||||
|
||||
|
Hello mike,
I am glad you've solved your issue in this thread but I don't think it's wise to post your email in any posts here. I will edit your email addresses above but next time, please use example@example.com in your sample code or posts. We never know which email harvester is making it's rounds here... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#13
|
|||
|
|||
i can't find my mistake hereParse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/partyguide/admin/pp/main.php on line 112
It's late, but i'm kinda stuck function upload_flyer() { if( $_FILES['flyer']['tmp_name'] == "" ) { return ""; } if( $_FILES['flyer']['size'] >= 1400000 ) { print "Upload fout: de flyer is te groot."; return -1; } else if( !strstr( $_FILES['flyer']['type'], "image" ) || ( substr( $_FILES['flyer']['name'], -4 ) != ".jpg" && substr( $_FILES['flyer']['name'], -4 ) != ".gif" && substr( $_FILES['flyer']['name'], -4 ) != ".png" ) ) { print "Upload fout: de flyer is geen figuur."; return -1; } else if( UPLOAD_ERR_OK == $_FILES['flyer']['error'] ) { $hash = md5_file( $_FILES['flyer']['tmp_name'] ); $filename = "images/pp/".$hash.strrchr($_FILES['flyer']['name'], '.' ); move_uploaded_file( $_FILES['flyer']['tmp_name'], $filename ) or die( "move_uploaded_file( $_FILES['flyer']['tmp_name'], \"images/pp/\".$hash.strrchr($_FILES['flyer']['tmp_name'], '.') ) failed" ); return $filename; } else { print "Upload fout: ". $_FILES['flyer']['error']; return -1; } } |
|
#14
|
||||
|
||||
|
Hello matthias,
Where is line 112? If it's late there, it's very, VERY late here __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#15
|
|||
|
|||
|
PHP Code:
|
|
#16
|
||||
|
||||
|
Ah, that's much better and the error is much easier to pin-point:
Try this: PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#17
|
|||
|
|||
this totally helped me outQuote:
This was totally my problem and it helped, thank you ukrspp21 very much!! |
|
#18
|
|||
|
|||
one moreI have no idea what might be wrong about this source
PHP Code:
Last edited by JdS : 23-Jul-2004 at 07:26.
Reason: Please insert [php] & [/php] tags between your example PHP codes
|
|
#19
|
||||
|
||||
|
What's this bit here: `?? (in your code example above)?
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#20
|
|||
|
|||
|
i've already deleated this bit, but it still doesn't work...
|
Recent GIDBlog
Match IP in CIDR by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The