cmgmyr
Members-
Posts
1,278 -
Joined
-
Last visited
Never
Everything posted by cmgmyr
-
it's pretty much treating programming "chunks" of code as objects and re-using them. take a look at: http://stilisticdev.net/tutorials.php?cmd=full&t=0016 and read through the next few tutorials.
-
right now it's just standard. they have to "leave" my site...go to paypal and pay...then get re-directed back. They have all of the usual payment options (paypal account or not). I haven't looked into the Pro version but I need to shortly, I'm just way to busy with projects to worry about that now
-
I usually just make my own internal cart system. When the order gets placed it gets sent to paypal to get bought/processed. When it gets processed the IPN comes back through a script and updates the whole order to release it.
-
well I usually just use paypal for all transactions. so what I do is ask the client what they want their paypal e-mail address to be (paypal@their-new-domain.com). Then I go on and make the account, set up all of the options, IPN, anything else. After I finish building/testing the site I give them the password to the account and tell them to change it...now it's all in their hands. If they need me to fix something they can either tell me the password or just change it temporarily for me. is this what you mean? or did I get it wrong
-
you can just output the javascript from php. nothing has to be hard coded...thats whats nice about php
-
Well when you are making a MASSIVE program/application a half second here and there add up to a lot of time. But for a small application it doesn't matter as much, BUT you should always be aware of speed.
-
Take a look at: http://www.dynamicdrive.com/dynamicindex16/chainedselects/index.htm You would just put your sql data into that
-
I would suggest to take any computer/web course possible. I took just about every computer/web/programming course in both high school and college and I think it's helped me out greatly. For example, I can write something in C++, turn it into java, turn it into VB, and finally PHP (or any other way you can think of it). Also it is good to know some basic networking and computer stuff too. Just about every time I talk with a client they always ask me how come this isn't working, or what is out there if I want to do this. It always makes you look better when you know a solution... hope this helps
-
I usually use "level" or "type" in my membership databases that allow a member into different parts of the site.
-
no problem, glad we could help. make sure you mark the topic as "solved"
-
try "SELECT field FROM table WHERE field LIKE %".$_POST['search']."%"
-
try this: <?php $string = 'This website is cool'; $find = 'website'; if(strstr($string, $find)){ echo "This has $find in it!"; }else{ echo "This does not have $find in it!"; } ?>
-
looks good so far. I would just change the link colors on the very bottom of the page, right now they are just the crappy default colors.
-
I agree with the above try: - taking out the 1px black border on the inside (but keep the padding/spacing the same - put a black border under your banner maybe 5-10px to seperate the whole top part - put some more padding on your nav bar links...they are too close to one another - more padding on the right and left of the main body text (20px on both sides) - right now your text is almost bunping up against the image on the left in other pages - try justifying your text instead of having it just aligning it to the left try those and see how it comes out
-
why is this in the phpfreaks.com board? if you search php help there are tons of posts dealing with this.
-
well it doesn't really have to be a cookie, it could be something else. if you really want you could even make an application (windows based) that will connect them to the website...maybe even change access and passwords automatically to the program that only that program would know
-
no problem, glad I could help
-
yup, and where you have that echo put the rest of your code: if ($times >= $othermoney) { $kill="true"; } else { echo "Your hitman did not successfully kill the person he was attacking, and ran off with your money, pay him more next time"; dbquery("UPDATE ".$db_prefix."users SET user_money=".$take." WHERE user_id='".$id."'"); } if ($kill == "true") { $rwd = $money + $othermoney; echo "Successfully killed your target, they had \$$othermoney which is now yours."; dbquery("UPDATE ".$db_prefix."users SET user_money=".$rwd." WHERE user_id='".$id."'"); dbquery("DELETE FROM ".$db_prefix."users WHERE user_id='$otherid'"); dbquery("DELETE FROM ".$db_prefix."articles WHERE article_name='$otherid'"); dbquery("DELETE FROM ".$db_prefix."comments WHERE comment_name='$otherid'"); dbquery("DELETE FROM ".$db_prefix."messages WHERE message_to='$otherid'"); dbquery("DELETE FROM ".$db_prefix."messages WHERE message_from='$otherid'"); dbquery("DELETE FROM ".$db_prefix."news WHERE news_name='$otherid'"); dbquery("DELETE FROM ".$db_prefix."poll_votes WHERE vote_user='$otherid'"); dbquery("DELETE FROM ".$db_prefix."ratings WHERE rating_user='$otherid'"); dbquery("DELETE FROM ".$db_prefix."shoutbox WHERE shout_name='$otherid'"); dbquery("DELETE FROM ".$db_prefix."threads WHERE thread_author='$otherid'"); dbquery("DELETE FROM ".$db_prefix."posts WHERE post_author='$otherid'"); }
-
check this out: http://www.webtoolkit.info/ajax-file-upload.html
-
I would do it by IP access, but also have them store a cookie (or something else) locally so now you have 2 things to check for.
-
enclose everything after the first IF with else {Stuff here} this way it won't execute the sql
-
You can pass a value like this. <a href="delete.php?value=<?php echo $value ?>" onclick="return confirm('Are you sure you want to delete this?')">
-
i guess you could always sort it, count it, then output the last one too ...as long as it works
-
delete.php where you would put the page you are confirming to go to <a href="delete.php" onclick="return confirm('Are you sure you want to delete this?')">Delete</a>