-
Posts
840 -
Joined
-
Last visited
-
Days Won
1
Everything posted by gristoi
-
Firstly, and dont take offence to this. Do you understand that by passing a variable through the URL you are changing it from a POST to a GET variable.. So the follwoing should work: $companyName = $_POST['company_name']; header("Location: EST_quotation_insert.php?company_name=$companyName"); // then on the EST_quotation_insert.php page $companyName = $_GET['company_name']; also ensure you done have any spaces in your url string. you had a space between the = symbol. And dont forget to ensure your POST variable is correctly sanatised
-
your submit button is outside of the form tag. move it inside: </form> <div style="padding-top: 5px"><input type="submit" name="Submit" value="Submit" style="font-family: Tahoma, Geneva, sans-serif" style="font-size: 10px"></div> should be: <div style="padding-top: 5px"><input type="submit" name="Submit" value="Submit" style="font-family: Tahoma, Geneva, sans-serif" style="font-size: 10px"></div> </form>
-
exactly what errors are you getting. is you error checking turned on? make sure you have error_reporting(E_ALL); ini_set('display_errors', '1'); at the top of your script.
-
Ok, where are you 'uploading' your cms to? and does your web hosting have mysql support / databases . If so then you need to: 1. export your local database into an sql file. 2. change your connection details in your php connection script to match youronline databases mysql users details 3. import your sql file into the online database
-
always best to refer to the paypal api is your unsure: https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/howto_api_reference
-
mysql_query("UPDATE users SET rank = '2' WHERE username='$username'");
-
are you using any kind of session variables?
-
your first problem is with an extra ) on this line: $payer_email = $_POST['payer_email'] -> ) <- ;
-
do you have session_start at the top of your index page
-
you are escaping your string when you try to add the t variable.: echo "<a href='javascript:poptastic(".$t.");'><img src='$i1' height='100' width='100'/></a> "; should be: echo "<a href='javascript:poptastic(\".$t.\");'><img src='$i1' height='100' width='100'/></a> ";
-
have a look at using fusioncharts. These are a flash chart that you can insert data into using php. has negative functionality. you will need to look for version 2
-
ORDER BY COUNT(vote.id) DESC presuming that your id column is your primary key
-
The error handler telling you that you don't have a table called ranks.
-
in your index add an additional error handler: try { $user = new user(); $user->newUser('Jragon', 'blenders', $DBH); } catch(PDOException $e) { var_dump($e); }
-
perfect example. All I asked this guy was if he knew what the stray variable in his script was for. I got this lovely reply for my troubles:
-
I've noticed this aswell. Up until a few weeks ago it used to be "I've tried to do this and it does not work. here is my work so far, can someone help...............". Then all of a sudden it's I want I want I want.
-
SELECT DISTINCT(name), field2, field3 FROM games
-
my bad, obviously throwing the word encryption around implies that something can be decrypted. whereas revraz is right, sha1 is a one way hash. Apologies
-
have a look at sha1 encryption
-
$userDetails = collect($id); ipn_data($userDetails , $reason, $timestamp);
-
Show a bit more respect to the people trying to help you. this forum is to help people who have at least tried to fix their own problem, and hopefully learned something from trying different fixes. NOT to just expect others to drop everything and give them complete code scripts. I hope that you get the help you require, but it wont be from myself
-
How to upload excel file to mysqul with a html/php form.
gristoi replied to 00stuff's topic in PHP Coding Help
I have used an open source project called PHPEXCEL for over a year. It is a very comprehensive spreadsheet manipulation class. Besides the fact it can read excel sheets as objects, it also allows you to read write and convert file formats, ie excel to csv. I have found it incredibly useful, not just for inputting but for building and creating tasty looking spreadsheets on the fly from php. Is worth a try, again you can find it at sourceforge -
Paste the code You've got so far
-
Define 'didnt work'. Just given an ambiguous answer like this is not helping anyone, I am trying to help you here, but you need to help yourself aswell. How did you reach the conclusion that it didn't post?
-
it is saying the variables you are trying to use in the foreach loop are not arrays