Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Not much of a layout. Colors are nice and simple...
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Every time I try to log in it logs me right out... om: You shouldn't have JS popups until the user is finished filling out the fields. You could have little notifications next to the fields like Yahoo has when you're creating an email account but the popups are just annoying. -
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Good job, how am I going to get in touch with god now? -
I guess it assumes you use a DB. Anyway it basically checks to see if it can input various entries to each of your fields and whatnot. It's still good to clean your fields...
-
I took a glimpse of CV's post and was like wow, I need a bigmac, with a large fry... and a diet coke of course so I don't get fat...
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
I laughed when I read that... So are you saying if I can figure out how to log in then I can teach myself PHP, CSS, HTML, VB, VC++, C, Javascript, etc, starting a computer business, and making a custom database server? -
*NOT TESTED Put all the emails in an array then use array_unique to rid all duplicates. Use a foreach loop to traverse through the array and insert each one in the database. $lines=file('test.txt'); foreach($lines as $line) { $arr[] = $line; } $arr = $array_unique($arr); foreach($arr as $value) { $sql = "INSERT INTO table (email) VALUES ('$value')"; } mysql_query($sql) or die(mysql_error()); P.S. - You may need to clean these variables with mysql_real_escape_string, trim stuff like that. Hope this helps!
-
None of my business? If it's such a secret why are you posting on a public forum...? I think you're the idiot. Besides you're the one in search of answers, I already have them. edit: removed profanity from quote
-
Thanks for the info CV
-
Funny how you can't even figure out the solution to a basic PHP technique that I have sitting right in front of me all because you're an ignorant ass. P.S. - Your code is out of date and probably has many security holes and exploits, have fun with that one jerkoff.
-
No, use SQL Inject Me. Says you failed 68 injection tests. Well that's only on your contact us page...
-
It may not be useful to you, but it's useful to me. I don't know how your script works, you're the one who's too inept to write a basic PHP script. So don't worry about me, "ruining" your topic, because I don't like helping ignorant people that are asking for help. Think about how vague your question is You need to learn how to ask a question correctly or no one will be able to help What the hell is "kodu" anyway?!
-
I just glimpsed over your code and saw: </pre> <form name="search" method="post" action="<?=%24PHP_SELF?>">< which again, is a global variable issue, and needs to be: (and don't use short tags to start PHP "" use "<?php". </pre> <form name="search" method="post" action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>"><
-
There are a few BASIC errors in your script and some questions that I have: 1) Never start PHP with "" always use "<?php". 2) Where is your form declared? You need something like this if you want to submit the form to itself. </pre> <form method="POST" action="<?php%20echo%20%24_SERVER%5B'PHP_SELF'%5D;%20?>">< 3) Show us all the code. 4) So basically you want to generate check boxes via a DB, submit it and remember what was checked after submission?
-
Problem SOLVED?
-
You need to figure out a proper design for the application, database, and logic so that you don't run into these kinds of problems. Currently you need to add a field called "gold_value" in the item table for each item so when users perform a transaction you know how much to add/subtract from each gold_count of each user.
-
Do some research!!!! TIMESTAMP columns are displayed in the same format as DATETIME columns. In other words, the display width is fixed at 19 characters, and the format is 'YYYY-MM-DD HH:MM:SS'.
-
Yeah I think ASC is default if you don't specify. And since you want most recent, you want descending because that will list greatest to least, so to speak. It's fairly easy to convert timestamps to formatted dates. PHP handles this feature very well.
-
What tutorial are you referring to? Could you provide a link so we could get the info that you're basing your game off of? Are you keeping this info in a database? Is there an item table with a value for each item? What are the major issues here. All you said is that you don't know how to do something. This looks more like a design issue... You need to have a table for items with a value for each, and another table like "user_to_items" to keep track of what items each user has.
-
Show us the paths of both of these files...
-
You mean most recent... ORDER BY cpyrightDate DESC;
-
I meant "Hehe, no, I have first dibs!!!", but I'm sure you figured that out.
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
You do it! Download SQL inject me and test it on your forms. -
$date_entered = date("m/d/y", $row['date_entered']); $today = date("m/d/y"); if(strtotime($date_entered) == strtotime($today)) { echo $date_entered . " IS today..."; } else { echo $date_entered . " IS NOT today..."; }