Jump to content

sploit

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

About sploit

  • Birthday 11/19/1980

Contact Methods

  • Website URL
    http://www.egreenonline.com

Profile Information

  • Gender
    Female

sploit's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Lets suppose I have a form running on my website. It is a 2-3 step wizard which calculates the price of a product based on the options chosen. I want this form to be available for use on other websites (affiliates). I think this is done in Javascript - a javascript code is given to the affiliates which pulls the form from the main site and displays it on the affiliate site. I also want the whole process to take place on the affiliate website, and results to be displayed there. What do I need to search for? Any pointers? I need to learn how to do this, and I have very little idea on how to proceed. Any help would be much appreciated.
  2. what does it say - i mean the query error? did you try printing the query to see if it comes out ok?
  3. you can't echo anything before the header call.
  4. for the solution to the above problem: add this to .htaccess: AddHandler application/x-msexcel .csv
  5. Hiya, I have a simple script which uploads a CSV file to the server. It is saved as filename.csv. I have a direct link to this uploaded file such as <a href="http://www.myserver.com/files/myfile.csv">Download CSV File</a> When I click the link, it gives me an option to download the file. Now I uploaded this same script on another server. On clicking the "Download CSV File" link on this server, it opens the CSV file in the browser instead of giving me the download box. Can I set up the .htaccess file in some way on the second server that would allow the CSV file to be downloaded instead of opened in the browser? Thanks!
  6. I have a table like this: col1 | col2 ---------------- 1 | A 1 | B 2 | A 3 | A 3 | B 3 | C I want to select all col1 where col2 is equal to A and B i.e. the result will be col1=1 and 3 I'm stumped. Can someone help me with the query?
  7. hi, i have a url like: mysite.com/show.php?catid=1&catname=clothing can i rewrite it as mysite.com/clothing/ ?
  8. No, just writing the queries would not do the job for you. The following code will help: [php:1:1c115473be]<?php //db variables $db_host = \"xyz\"; $db_name = \"xyz\"; $db_user = \"xyz\"; $db_pwd = \"xyz\"; $query1 = \"insert into items values(0, \'Tony\', \'Tony blah\', 23.95)\"; $query2 = \"insert into items values(0, \'FI\', \'FI blah\',36.50)\"; //db connection $link = mysql_connect($db_host, $db_user, $db_pwd) or die(\"Could not connect : \" . mysql_error()); mssql_select_db($db_name) or die(\"Could not select database\"); //execute query mysql_query($query1) or die(\"Query failed : \" . mysql_error()); mysql_query($query2) or die(\"Query failed : \" . mysql_error()); ?>[/php:1:1c115473be] However, if you have lots of lines to add, you can try the following algo: 1, save all lines in a file 2, using a PHP script, read the file line-by-line 3, in a manner similar to above, execute each line (query) There are other ways also, you may wanna have a look at the LOAD DATA INFILE syntax.
  9. The new link is: http://mp2p.mikekohn.net/
  10. Hmm thanks. Isnt there a MySQL query that I can just run at the console/command-line to get the desired results?
  11. <Sorry I had posted this in the PHP Help area earlier... :? > I have two (MySQL) tables: RATES and OFFERS. Both tables have a field called ITEM. I need to select all distinct ITEM values from both these tables. For example: RATES ------- ITEM 1 2 3 4 5 OFFERS --------- ITEM 3 5 7 8 9 Then the result should have: 1, 2, 3, 4, 5, 7, 8, 9 What query should I use?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.