Jump to content

android6011

Members
  • Posts

    85
  • Joined

  • Last visited

    Never

Everything posted by android6011

  1. This one claims they have no XML feed
  2. I have this working now, if anyone has a better way, I would appreciate it $namePre = explode('<td valign="top"><h2>',$content); $name = explode('</h2></td>',$namePre[1]); echo $name[0];
  3. I am making a store website, and to add products from the wholeseller they are allowing screen grabs. The Info is displayed, for example like: <td valign="top"><h2>Name of Product</h2></td> All I want is the name. A lot of people have said to use preg_match_all, btu I can't get it to work. Can someone tell me another way or show me an example of preg_match_all getting just the name from the above? Thanks!
  4. PayPal doesnt check if its changed because it doesnt know what to check it against unless you pay for their premium service. I would really like to just be able to submit the form with php so i know that its not changed, ive read about socket connections, but I'm not sure how I would go about using one to submit all those values etc
  5. I have a website built and a shopping cart, I am signed up for PayPal payment standard and have a form all setup to pass the form to paypal as described on their website, like below <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="[email protected]"> <input type="hidden" name="item_name_1" value="Stugdgdg3000 "> <input type="hidden" name="amount_1" value="100.00"> <input type="hidden" name="item_name_2" value="LOLn 6000 volt"> <input type="hidden" name="amount_2" value="1400.00"> <input type="submit" value="PayPal"> </form> everything works and is submitted as designed, but my concern is the form is susceptible to be changed by hackers. Is there a way to protect against that? Is there a way to just have php submit the data behind the scenes? Anyone else working on a setup like this?
  6. I have a page that uploads and renames images according to the item number so like item_4333_1.jpg item_4333_2.jpg item_4333_3.gif etc. Can someone help me with a script that lists all the files that begin with "item_".$_GET['id'] in a directory such as images/items . Thanks in advance
  7. my problem is consistent across ie5 ie6 ie7 ie8 beta , they all differ from firefox
  8. sorry didnt realize i could just attach picture before. this is the problem in this image [attachment deleted by admin]
  9. As you can see in the image below, the width sizes are significantly different between firefox and ie. i am having this problem with a site im designing but the quick page below shows the gist of my problem http://www.fileden.com/files/2007/3/11/876372/div_width_problem.JPG any explanation or work arounds would be appreciated. thanks
  10. I had been just getting the articles in a table in a range by article id (if page was 2, get between 10 and 20 etc). the problem i realized is if one of the articles gets removed from the tables, there are no longer 10 articles per page as i intended. how can i get around this or what is the best way for implementing a page system?
  11. I just don't want anything html wise or anything that could be injection related, and id prefer to do it on the php end after submission
  12. Basically all I want are alphanumeric and basic symbols allowed. I dont want to allow tags of any sort etc. Right now I have strip_tags() and mysql_real_escape_string to keep safe from rogue user input. Any other suggestions? also, due to other problems i have magic quotes turned off in my config if that changes anything. thanks
  13. Thanks. I've tried a million things and I REALLY appreciate your help
  14. i attached a file that displays imap_body and onyl imap_body printed [attachment deleted by admin]
  15. Thanks That really helped fix what mess I had, but its actually downloading the attachment I'm really having problems with, like how can i put the file as a variable to work with and save it to a directory?
  16. because im using my phone to send text/picture messages to my email inbox. just trust me, my convoluted methods are the best way for me to get my desired results lol
  17. I am at the point where I am able to open my imap inbox, but how can I look for an email with a certain subject line and if it has it, save the attachment?
  18. no, like I want to update mywebsite from my phone, but I dont want to worry about sms at the moment so I am sending over email. So the email will go to an inbox and I want the script to check the inbox, insert the email message into database, delete the message
  19. Basically I want to be able to send an email and have it somehow make its way into a mysql database. What is the best way to do this? This is all I can think of :::: Have a PHP mail script read an mail account and then if there is a message from a certain sender insert it into the database, then after the script checks for new emails and inserts them, print all the existing records in the database. ::: I can't really think of anything else and would really appreciate any suggestions. Thanks
  20. also, now how would i get comments for a certain article id? thanks
  21. I dont have anything in the comments table at the moment so i dont mind recreating that, but if possible i would like to leave the articles table the way it is, unless it would be better off a different way
  22. CREATE TABLE `articles` ( `articleid` int(11) NOT NULL auto_increment, `memberid` int(11) default NULL, `datepost` varchar(35) default NULL, `article` mediumtext, `articletitle` varchar(60) default NULL, PRIMARY KEY (`articleid`), KEY `memberid` (`memberid`) ) CREATE TABLE `comments` ( `commentid` int(11) NOT NULL auto_increment, `articleid` int(11) NOT NULL, `memberid` int(11) default NULL, `datepost` varchar(35) default NULL, `comment` mediumtext, PRIMARY KEY (`commentid`,`articleid`), KEY `memberid` (`memberid`), KEY `articleid` (`articleid`) ) is it normal for show create tables to just put "key" not foreign key?
  23. i dont mean 2 primary keys, i mean the primary key has 2 references, i was told to do it in another thread a while back since it referes to another table
×
×
  • 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.