
android6011
Members-
Posts
85 -
Joined
-
Last visited
Never
Everything posted by android6011
-
This one claims they have no XML feed
-
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];
-
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!
-
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
-
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?
-
[SOLVED] Get files from directory that being with...?
android6011 replied to android6011's topic in PHP Coding Help
thanks! that worked perfectly -
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
-
my problem is consistent across ie5 ie6 ie7 ie8 beta , they all differ from firefox
-
sorry didnt realize i could just attach picture before. this is the problem in this image [attachment deleted by admin]
-
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
-
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?
-
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
-
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
-
have php receive an email and insert it into a database?
android6011 replied to android6011's topic in PHP Coding Help
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 -
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
-
insert into sql table that has primary key of 2 values
android6011 replied to android6011's topic in PHP Coding Help
also, now how would i get comments for a certain article id? thanks -
insert into sql table that has primary key of 2 values
android6011 replied to android6011's topic in PHP Coding Help
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 -
insert into sql table that has primary key of 2 values
android6011 replied to android6011's topic in PHP Coding Help
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? -
insert into sql table that has primary key of 2 values
android6011 replied to android6011's topic in PHP Coding Help
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