[PHP-WIN] mysql+php query
Hi, i hav a problem query a data value from my database every setting is fine. the database is working too.just i dunno how to do it with php let say i hav a username and a password in my database i wanto query the password with given username $SQL = "SELECT `password` FROM `table` WHERE `username` = '$user';"; $result = mysql_db_query($db,"$SQL",$cid); but the result i hav is a Resource id #4 but not the value of password that i wan. Pls help me..thanx.
[PHP-WIN] setting directory permission
I hav written a php application that will create a direcotory with then name given by user and upload file into it it work prefect on my pc server. but when i upload to the web serverthere is error due to my directory permission is there any way to control a directory permission with php script?? my webserver is an NT webserver with php enable. thanx
[PHP-WIN] session and cookie
i m doin a login system what's the diff between session and cookie? which one is more secure? i tried session on my server but there's error soi use cookie and it work well. btw..is there any module that's ready to use for login system?
[PHP-WIN] newbie question: using image function with php
Hi, i m using php version 4.3.2 i want to try on the image function. i tested with the documentation sample.. but it din work pls teach me how to do it??. thanx!!
[PHP-WIN] md5 password with javascirpt
Hi, question: how to encode a password in client side with javascipt.. thanx. regards, exiang
[PHP-WIN] working on phpnuke - submit topics module, need help on File upload
I had posted the following msg at phpnuke.org but nobody reply me. I not sure izzit suitable to post up here but i am urgently need for help. My post: -- I am working on a module tat allowed visitors to submit their own company logo as a new topics and it will be approve by the admin. I facing problem now at the logo uplaod part. as i understand, every post variable will be automatically convert to variable with the same name like : i jsut need to call $topic_text and i will get the variable of that form field. however, this do not work for and I already using enctype="multipart/form-data" I tried to get with $_FILES['topic_image'] but do not work.. expert here pls HELP ME~~~! p/s the module is for nuke version 6.9 regards, eXiang
[PHP-WIN] alpha png to gif with transparent
IT seem to be impossible as the alpha png is 24 bit and gif can only be 256 color.. however, is there any alternative which at least make the generated transparent gif look good? this is my code.. but itdin work