It is currently Thu Mar 28, 2024 11:21 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: mysql, php
PostPosted: Thu Oct 04, 2007 7:06 pm 
Newbie
Newbie

Joined: Wed Aug 08, 2007 7:45 am
Posts: 5
Hi,

I've got a little problem... ;)
Code:
$_POST['blabla'] != mysql_result($result, 0, "field")

This does always give true, but that's not what I wan ;)
I think it doesn't work because the mysql_result function returns a format that is no string, but how do I convert it?

Thanks,

Mark


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 05, 2007 8:49 pm 
Regular
Regular

Joined: Sun Apr 15, 2007 5:14 pm
Posts: 308
Location: Barrie On Ca
i'm pretty good with php stuff, but not an expert.

1- i "think" it should be:
$_POST['blabla'] != mysql_result($result, 0, 'field')

2- it kind of looks like a register_globals problem, if thats the case, you'll need to disable register_globals(search forums for instructions), or just use php5(change a setting in your control panel)

i didn't jump to answer this because i'm not sure, but i don't see anyone else helping, so thought i'd try.


good luck, i hope someone better jumps in.
:)


Top
 Profile  
 
 Post subject: found the solution, but now having a new problem
PostPosted: Sat Oct 06, 2007 12:21 pm 
Newbie
Newbie

Joined: Wed Aug 08, 2007 7:45 am
Posts: 5
I've found the solution:
Code:
$_POST['blabla'] != strval(mysql_result($result, 0, "field"))

But I now have a second problem:
Code:
echo($HTTP_POST_FILES)

gives Array, and
Code:
echo($HTTP_POST_FILES['afbeeldingupload'])
gives nothing. My html code is
Code:
<input type="file" name="afbeeldingupload">

I am sure that the file is sent, but it seems that php can't find it...

Does anybody see the light? ;)

Regards,

Mark[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 07, 2007 9:24 am 
Moderator
Moderator

Joined: Tue Feb 27, 2007 12:18 am
Posts: 521
try this

Code:
print_r ($_FILES);

_________________
http://www.mjmclocks.co.uk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011