Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Sticky time, please read...
-
Doesn't look like spam, just someone looking for attention. You don't have to remember, it says it right under his name!
-
I'm not sure that would work if they skipped an input in the middle for some reason, it might lose all the ones before. Just use a simple empty($value) check and if not, append to the query. Good point, but with the proper validation it should work. I guess it depends on how he set his system up.
-
I'm assuming UNKNOWN isn't the actual name? You would have to loop through like premiso said. This will give you the values for any GET method variable in the URL.
-
Damn emo's, always trying to bring people down with them.
-
What exactly do you mean? If you use GET you're passing variables via a URL and have to use the $_GET method to retrieve those values. If you use POST then you have to submit your form somehow and use $_POST to retrieve all of your values. Please read the basics.
-
Can we see your query execution? Do you have any debugging statements? Are the test and production DBs located on the same server?
-
I don't like your banner. Gray shades and small font... Spice it up a little!
-
Try this, haven't tested it. $x=0; foreach ($_POST as $key => $value) { if($x==0) {$sql_string = $value;} else { $sql_string .= ", ".$value;} $x++; } SELECT * FROM data WHERE flagentTID IN ('$sql_string')
-
Do you mean something like this where 1, 2, and 3 are substituted with your 20 text field values? SELECT * FROM tablename WHERE fieldname IN (1, 2, 3);
-
At work, glad you got everything figured out. Mark it solved next time!!!
-
1) You should use a proper model. Put your PHP code at the top except where you echo out HTML. 2) Of course you're not getting correct results. You are using the GET method but need to use the POST method. 3) What exactly does this mean? What is your input? What is the output? Is there a pattern?
-
PLS HELP! PHP not showing <include> page
Maq replied to sushiking's topic in PHP Installation and Configuration
Produced this error? -
Falling at the 1st hurdle - simple php script calling mysql
Maq replied to stevievelvet's topic in MySQL Help
-Most of your basic HTML syntax is wrong. You're missing quotes everywhere, your submit button doesn't have a name, you're declaring the GET method for your form but don't use it in sample.php. -Here's what you should do. Read up on basic HTML syntax. -Instead of using the GET method use the POST method. -In sample.php you need to use the POST method to get the input from country: $country = $_POST['country']; There's a lot more I could post here but try those first and come back with your updated files. -
-What kind of critiquing do you want? Because none of the functionality works. -Too much blank space. If you don't use the rest of the page then condense it into a container or something. -Footer is more than halfway up the page. -I like the header a lot. -Color scheme is nice. -Don't know what exactly it is when I get there, maybe add a description of some sort. -Any search with "Calculator" results in an error: Array ( [0] => calculus ) Notice: Use of undefined constant calculus - assumed 'calculus' in /home/.marble/ryannaddy/dudeel.com/results/toolsCalculator.php(35) : eval()'d code on line 1 -Got an error for "People" as well, but can't duplicate it.
-
Passing URL into php file (via GET) which contains variables
Maq replied to RamboJustRambo's topic in PHP Coding Help
Not tested. $encoded_site = urlencode("http://www.test.com/index.php?name=andy&friend=john"); $pass = "http://www.mysite.com/file.php?site=".$encoded_site; echo $pass; //may have to use echo urldecode($pass) to view properly -
[SOLVED] How do I count mysql rows with specific data
Maq replied to pneudralics's topic in PHP Coding Help
Read the link to the manual that ProjectFear provided: $sql = mysql_query("SELECT * FROM data WHERE data = 'data1'"); $num_rows = mysql_num_rows($sql); echo $num_rows; -
Yes you can. You should write a recursive function that performs the database operations. At the end just call sleep(300). Sleep delays execution, 300 is in seconds = 5 mins.
-
What's your question...?
-
What do you mean nothing happens? In this piece of code you have to do either two things, redirect to sentpw.php or echo, "Error. Please Contact Webmaster". if($result) { header("location: sentpw.php"); exit(); } else { echo "Error. Please Contact Webmaster"; } Please turn on errors like gaza said: ini_set ("display_errors", "1"); error_reporting(E_ALL); I don't really see a problem with your code. You should echo out your variables and queries to ensure that they have the correct values. It may be something to do with the mail configuration. Try emailing something to yourself.
-
[SOLVED] submitting multiple entries into a sql database
Maq replied to sudsy1970's topic in PHP Coding Help
Oh OK, I guess his post was deleted. -
[SOLVED] submitting multiple entries into a sql database
Maq replied to sudsy1970's topic in PHP Coding Help
who is an idiot?