Search found 46 matches

by nga
Wed Jan 20, 2010 10:24 pm
Forum: PHP - Code
Topic: session_destroy doesnt destroy anything
Replies: 3
Views: 104

session_destroy doesnt destroy anything

first of all, im using ajax to manually request file with the session_destroy. I succedd in unset session so i'm guessing it isnt coding problem but there is something im missing here. I read you have to unset session uid too but im not using cookies. Just pure $_SESSION...
by nga
Thu Jan 14, 2010 4:31 am
Forum: PHP - Code
Topic: session_destroy
Replies: 6
Views: 856

Re: session_destroy

nope, im positive the damn thing needs to be clicked twice. The echoing part is the last part.
by nga
Thu Jan 14, 2010 1:22 am
Forum: PHP - Code
Topic: session_destroy
Replies: 6
Views: 856

session_destroy

Quick question though. Im creating a cart using session and there is an option to clear the cart and im using session_destroy to do it. However, customer would need to click clear cart twice for it to work. The first click doesnt clear anything (sessions can still be echoed) the second one does it. ...
by nga
Wed Jan 06, 2010 9:31 am
Forum: PHP - Code
Topic: update multiple text field
Replies: 7
Views: 277

Re: update multiple text field

god! understand this makes my life so much easier! so it's a paring of key and value in much simpler way than i always did. Dont know if it works well with array in array?
by nga
Wed Jan 06, 2010 9:00 am
Forum: PHP - Code
Topic: update multiple text field
Replies: 7
Views: 277

Re: update multiple text field

thank you very much! I've seen people using key and value that way but didnt understand. Can you explain the concept?
by nga
Wed Jan 06, 2010 3:43 am
Forum: PHP - Code
Topic: update multiple text field
Replies: 7
Views: 277

Re: update multiple text field

hmm, if i put key in like that, how can i access the key?
by nga
Wed Jan 06, 2010 3:30 am
Forum: PHP - Code
Topic: update multiple text field
Replies: 7
Views: 277

update multiple text field

i have a form consists of multiple text fields. the purpose of the form is for admin to update the order of multiple products (pulling from database). Single submit button should submit the form and update the order of respective products. The problem here is, i dont know the number of the text fiel...
by nga
Wed Jan 06, 2010 2:26 am
Forum: Miscellaneous
Topic: paypal integration
Replies: 9
Views: 9181

Re: paypal integration

I need the userID in the IPN to update my transaction table accordingly (update if user purchased successfully)
by nga
Wed Jan 06, 2010 2:17 am
Forum: Miscellaneous
Topic: paypal integration
Replies: 9
Views: 9181

Re: paypal integration

session variable cant be passed to IPN... I looked into the link you posted, it doesnt say which fields will be posted back to me in IPN... the on1 and on0 will be presented to user which i dont want to happens. Just quitely inside hidden field is good enough
by nga
Wed Jan 06, 2010 12:50 am
Forum: PHP - Code
Topic: How to tie paypal payment to user accounts? IPN?
Replies: 5
Views: 801

Re: How to tie paypal payment to user accounts? IPN?

uhm, the custom field in IPN can be used to hold userID but where can i put this cutome field so it would come back in IPN? In paypal form as a hidden field?
by nga
Wed Jan 06, 2010 12:37 am
Forum: Miscellaneous
Topic: paypal integration
Replies: 9
Views: 9181

paypal integration

hello, sorry for posting paypal integration question here. It's php related and paypal forum doesnt have high response rate.... So i want to create a buy now button where i can send userID as a hidden field to paypal and receive it back from paypal IPN (so my code know who made the payment and updat...
by nga
Tue Jan 05, 2010 9:38 pm
Forum: PHP - Security
Topic: mysql rollback with php
Replies: 2
Views: 1210

mysql rollback with php

hi, I have a question: How can execute sevelral mysql queries all together or none at all when a query failed? I know mysql have rollback command for innoDB but how can i use it in php?
by nga
Mon Dec 21, 2009 2:15 am
Forum: PHP - Code
Topic: dont know what &$ is
Replies: 6
Views: 619

Re: dont know what &$ is

can give me the link reference for &$? i dont even know what that is and type "&$ php" to google doesnt return anything useful
by nga
Mon Dec 21, 2009 12:43 am
Forum: PHP - Code
Topic: dont know what &$ is
Replies: 6
Views: 619

Re: dont know what &$ is

I do know php:( (working with php for half a year now) but never tried it using classes (only use functions). I googled to learn php classes today and hit ->, &$ and :: notations which i also googled around but none explain them clearly
by nga
Sun Dec 20, 2009 11:49 pm
Forum: PHP - Code
Topic: MySQL - Select only INT
Replies: 2
Views: 756

Re: MySQL - Select only INT

i have no idea what's your idea is for (probably mislead and illogical). But you can use is_numeric() on the field to check if it's numeric and do something only if it is (using if statement)