Pikachu2000
Staff Alumni-
Posts
11,377 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Pikachu2000
-
Validate Textbox Before Continuing To Paypal Payment Page
Pikachu2000 replied to Classico's topic in PHP Coding Help
You aren't really using hidden form fields to hold pricing information being sent to paypal, right? -
Have you echoed $_SERVER['PHP_SELF'] to see if that gives you a clue what the problem might be?
-
Copy Data From Column Into Another Column
Pikachu2000 replied to mattichu's topic in PHP Coding Help
Let me get out my crystal ball. -
Don't double post. I've deleted your other thread.
-
As long as you're editing things, you'll probably find debugging a lot easier if you make the query string readable by getting rid of all that obnoxious concatenation. $query = "INSERT INTO image ( title, type, name, alt, img, description, date) VALUES ( '$title', '{$_FILES['userFile']['type']}', '{$_FILES['userFile']['name']}', '$alt', '$image', '$description', NOW() )";
-
You want the MySQL function NOW(), not $NOW(), and it shouldn't be in quotes in the query string.
-
I'm assuming since you posted in the MS SQL forum, you're indeed using Microsoft SQL? If so, here are all of the mssql functions: http://us1.php.net/manual/en/ref.mssql.php If not, what database are you using?
-
You've say echoed the whole query when the error occurs? Post that as well. INT(2) only sets the display width, not the number of digits the field can hold, a single '1' would be padded with a zero to read '01'.
-
I'm going to guess that $id has no value. If the `id` field in the database is an autoincrement field, you can just leave it out of the query entirely. Why use INT(2) by the way?
-
You aren't executing the query, you're just passing the variable containing the query string (as would be implied by "string given") to mysql_fetch_array().
-
You aren't paying attention to syntax. Look at the differences in the html tag attributes.
-
Help Required For A Date Sensitive Referal Php Script
Pikachu2000 replied to mervpayne's topic in PHP Coding Help
To have a static html document for every day in the calendar completely defeats the purpose of using a dynamic language like PHP. It would be much more efficient to just load content based on the date than to redirect to a page with a file name that matches the date. -
That error usually means there's a missing closing curly brace or semicolon. Aside from that, that code is years out of date, and should be updated before being used in the real world.
-
http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html
-
WHERE username != 'specific user name' Or possibly WHERE username NOT IN('username', 'another', 'and another')
-
SocialCloud, the second example does not have the variable in single quotes.
-
If Blank Insert "no Details Submitted"?
Pikachu2000 replied to justlukeyou's topic in PHP Coding Help
Use a conditional statement. -
Display A Link Only If The Query Returns Results
Pikachu2000 replied to azocomposto's topic in PHP Coding Help
mysql_num_rows -And- $result != $resultt . . . -
Mysql: Column Count Doesn't Match Value Count At Row 1
Pikachu2000 replied to mbrooking's topic in MySQL Help
Probably be less confusing without all that obnoxious concatenation. $to_insert ="INSERT INTO login VALUES ( '{$_REQUEST['fullname']}', '{$_REQUEST['email']}', '{$_REQUEST['username']}', '{$_REQUEST['password']}' )"; Just sayin' . . . -
Your redirect happens regardless of whether mail() succeeds or fails. There is no way for php to know whether the mail was sent or not, only if mail() successfully transferred it to the MTA.
-
Dear Mister gracious sir, I am prince and king from of Nigeria country, and my name is Mfubwe GoodCause . . .
-
How To Combine Executable Start With Menu Change?
Pikachu2000 replied to yshua's topic in Applications
Add the disclaimer and checkbox in the form that takes the user to the payment page. There, verify that the checkbox was indeed checked before even allowing the user to pay.