Jump to content
xisto Community

bigfatme2000

Members
  • Content Count

    35
  • Joined

  • Last visited

Posts posted by bigfatme2000


  1. Searching with PHP and MySQL is pretty easy when you think about it, especially if you're doing it the simple way (without boolean or whatever) :ph34r:

     

    It consists of a few forms, a query and an output. As I said, simple!

     

    <form name=\"form1\" id=\"form1\" method=\"post\" action=\"<? $php_self ?>\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td style=\"text-align: center;\"><input name=\"search\" type=\"text\" id=\"search\" /></td></tr><tr><td style=\"text-align: center;\"><input name=\"submit\" type=\"submit\" id=\"submit\" value=\"Search!\" /></td></tr></table></form>

    The form that you just made contains a text input that people will type into, the next code will extract the form data and then search it..

     

    Form processing :P

     

     

    $search = htmlspecialchars(addslashes($_POST[\\\'search\\\']), ENT_QUOTES); if(isset($_POST[\\\'submit\\\'])) { if(!$search) { echo \\\"No search entered, please go back and fill in the fields properly.\\\"; } else { $query = mysql_query(\\\"SELECT * FROM table WHERE field LIKE \\\'%$search%\\\'\\\"); $resultnum = mysql_num_rows($query); // Just print $resultnum if you want to show how many results returned if($resultnum>0) { // Echos out matches if anything was found while($row=mysql_fetch_array($query)) { // Starts spitting out the data echo \\\"You can put a link to the result article here, or something else. This is what\\\'ll show up when a user gets a result, for each result.<br />\\\" } } } } else { echo \\\"<p>No search entered?</p>\\\"; }

    And that's it. Let me just break this down for you :blink:

    htmlspecialchars(addslashes:

    This line does two things; it cleans out any chance of an SQL injection to your database, and then it adds slashes to the value which makes the search more accurate. If you don't add slashes, then if you searched for cheese, it would return anything with a c, h, e or s in your database. So much for search relavance, eh? :P

     

    $query = mysql_query(\\\"SELECT * FROM table WHERE field LIKE \\\'%$search%\\\'\\\"):

    This is the query that does the search. Notice the percentage signs in the LIKE part - don't forget these. They work as wildcards.

     

    And the rest I'm sure you'll understand. :):P


  2. My host (which for obvious reasons has to stay hidden)'s php has gone silly!It is running cPanel - and includes are not working - and returning the message 'Access Denied'! :P Anyway, it isn't the scripting or permissionas i have tried it on another host's account!Any ideas?(That is the reason I will be signing up here on Xisto - its is a good and reliable host - and the moderator 'Dooga' has pointed me here! :) So thank him! :P Anyway - back on topic has anyone ever had this?.. Where one minute your PHP is working fine- then nothing works? :P The host may be using a rubbish server! :P


  3. Great poems there - well done! :) I wish i had talent - well i can sing in the shower (but we won't go there :P )Anyway, back on topic lol, good work - do we have permission to use that poems on the loves in our lives? :P I personally think they all are very good - and imaginative. You obviously have deep personalities! :P


  4. Hello :P I know this is a little different, but I was talking to a friend a day or two ago about this girl he really liked. He realy likes her, and he think she likes him too. But The point is, she LIKES ME!!!!! :P:P:) I like her more than a friend - so we both like each other. Although he is my best friend, and I don't want to hurt him.What should I do?.. Break the girls heart - or hurt my mate? :P I would apreciate your comments :P


  5. Anyone else have this problem? :P

    Your IP-address 194.72.9.17 is already downloading a file. You have to wait until it is finished.Premium-accounts can download many files at the same time. Get your own PREMIUM-Account now. Instant access!
    If you are not downloading anything, you are using a proxy-server or a shared IP-address. A Premium-Account solves this problem.


    I used to be able to use rapidshare fine - only the past day or so, its done this!!!!

    Firstly, I am not downloading anything, and the weird bit is - it's not even my IP address!!! :P

    Not using a proxy either or anything! :)

    I have read somewhere it might be somthing to do with my ISP? :P

    Ah well, no rapidshare for me! :P

  6. Is is just amazing if you look at Disney theme parks. Taking the top 5 and more! For Disney all you know is there 50th anniversary! That is a big milestone for Disney. Look at Universal. Both going down in percent. One of the only theme parks to do so on the list. Hersheypark hit flat. Six Flags seem to do very good this season. Cedar Point did splended. Morey's Piers surprisingly was on the list. Well lets see your comments now. This list is veyr understanding. Note what Disney did on the list.

    1. Magic Kingdom at Walt Disney World in Orlando, 16.1 million, +6.5 percent

     

    2. Disneyland in Anaheim, Calif. 14.5 million, +8.5 percent

     

    3. Epcot at Walt Disney World in Orlando, 9.9 million, +5.5 percent

     

    4. Disney-MGM Studios at Walt Disney World in Orlando, 8.6 million, +5 percent

     

    5. Disney's Animal Kingdom at Walt Disney World in Orlando, 8.2 million, +5 percent

     

    7. Disney's California Adventure in Anaheim, Calif., 5.8 million, +3.6 percent

     

    Woah! Took 6 out of the top 7! Took all top 5. Also look at that huge 8.5 Percent up for Disneyland and 6.5 up for Magic Kingdom! They did awesome this year.

     

    Now it is turn for your comments.

    220038[/snapback]

    These theme parks do do well - it just gets me to the fact why they need to charge so much - i mean they must make a mint! :)

  7. Sony are having problems with the next playstation console .They are roumrs that the new console is full of uknown bugs , and it's announced that PS3 will not be released in march deep trougt is the name of the source who is a sony insider who says that PS3 is not ready to go in the shelfs .

     

    The source is also telling that Sony has had already problems with one graphic subsystem of the new PS3 console .

     

    Notice from mayank:
    Edited topic title & description

    217592[/snapback]


    We have all waited a long long time for the PS3 - and it is gonna be so costly coming out, most of us won't be able to afford one for a long time anyway.

     

    As we have waited such a long time - im sure we can wait another few weeks or something.

     

    As for all this, it may all be false. Big companies like sony wouldn't announce a release date for such a big thing, without leaving enough 'Safe time'. I bet they finished the PS3 last year - and are just testing it now.

     

    I wouldn't worry :P

     

    Whoever said that they will only sell a couple of thousand - HAHAHAHA

    This is getting released wordwide - they will sell Billions during its lifespan! :)

     

    I prefer PlayStation - but does this really mean it is the best console?.. Is it just that it is the most popular? :P


  8. saw this link in another forum and so for those who think an xbox 360 is swesome watch this video.

    http://imptestrm.com/rg-erdr.php?_dnm=www.lolgifs.com&_cfrg=1&_drid=as-drid-2300300503455222

    i laughes so hard watching these guys drop 500 hundred to destroy a product that is already bad.  some of the people that work in the best buy store already said that it was defective and that microsoft says after 90 days your screwed but bes buy would replace it though.

     

    PLAYSTATION RULZ.  :P  :P

    211581[/snapback]


    I agree with you on that one! :P

     

    There are many videos doing the rounds - and almost every console is getting destroyed in them!

     

    A PSP getting bricked, or a virus thingie on the DS.

     

    I cannot wait until the PS3 comes out - i don't think ANYBODY will pay all that money - and then brake it! PS3 are gonna cost loooaaadddds.

     

    I was chuffed with my PSP though - Ive never owned an XBox - and wouldn't want to either!

     

    PLAYSTATION RULZ. :P:):P


  9. All around the universe there are "black holes".  It is not possible to see a black hole, but its gravitational power is so great that it "gobbles" up anything in its way. A star does not live for ever. It develops over thousands of million of years. The temperature gets higher and higher over the years and when it is hot enough a nuclear reaction starts. The star then starts to swell and becomes what is called a "supergiant". Then two diffrent things happen. If it is a small star it begins to expand and contract over and over again, and, finally, when the star has no more energy, it turns into a white dwarf. If, on the other hand, it is a big star it explodes into a supernova which later becomes a black hole. An object that is drawn into a black hole is lost forever. Noone knows what happens to it or where it goes.

    217909[/snapback]


    Thats all too true for ny liking. All we can do is hope one doesn't come around here - a black whole is the center of an exploded star.... or so i read! :)

     

    There aren't any around us (or that we have found) - so we shouldn't get too worried. :P


  10. Eww, thats horrible! I used them before the ACORN computers! I don't like Macintosh... They will never be better that windows - a pc is only hated by more people, because it is used by more people in the first palce! My mouse has 5 buttons - and i wouldn't be able to survive without all of them!I mean how would you get used to one button? - It isd so small you would have to use glasses to find it in the dark.I dissagree with this invention - Apple should stick to being just a fruit - as they are an insult to technology!


  11. What will end first?... Earth or the universe?..

     

    This might seem a silly thing - but think about it - what will it be?

     

    They are thinking today that they may of got it wrong about the start of the universe - the stars may be going further apart - but is the universe coming closer in :D

     

     

    Hey - we can't get to the outside of the universe - so we don't know what is happening - we could get squashed like.. NOW :D

     

    Oh no.. i hope not - not until after christmas anyway ;);)

     

    Notice from cmatcmextra:
    Moved from What Is..?

  12. I need some feedback on a template i would like to implement on a new products website.

     

    Requesting feedback on:

    - professionality

    - user-friendly degree

    - clean yet effective degree

    - your own personal opinion

     

    Please note that this is not a ps supertemplate, simply because the site will be needing fast loading and such, im also in development of a more ps supertemplatish site but after this is finished ;)

     

    Thanks in advance

    sFinance template

    214745[/snapback]

    A very nice and clean template - cool! :D

     

    I like the advertise column - and the cute login box at the top - nice! ;)


  13. GTA is one of the best, and fastest growing game and is going to be a big hit this Christmas.Which is your favourite? You remember the shock and suprises we had while we un wrapped San Andreas, well imageine a great improvement GTA:LCS is going to have on GTA 3 and just think - what will the PS3 bring for GTA - (Or should i say what will GTA bring for GTA ;) ) - with blue-ray disks and all that! ;):D


  14. For those of you that haven't heard - GET FREE TOP LEVEL DOMAINS FOR A LIMITED TIME - So run! :D
    Run here now!

    Yeah - they are giving away free .be domains - with total DNS control - the works! :D

    Even you Xisto admins should get some they are all unlimited - and would help with your hosting!

    Want a brill idea?...

    Well the other day i got http://forums.xisto.com/no_longer_exists/ ;);):D:D

    Notice from rejected:
    Please put all copied materials in quotes, thanks.


  15. I've loved this site since I first found it a couple years ago.  It has 12 php related scripts, but also links to many other resourceful sites and tutorials, as well as a forum board much like this one that is pretty straightforward and easy to get help if you have any questions.

     

    codegrrl.com<---check it out!

    52358[/snapback]

    That site is nicely put together

     

    THANKS FOR SHARING! ;)


  16. Just wanted to ask few things from you!

     

    I see that the mentioned Ip address is not yours...but are you using a software like rapidleecher or anything like that and have mentioned proxy list in the software.

    Because if that is the case then please go through the raidshare's faq...

     

    For your convenience...

    Here's the link for you to look at their faq and to read the whole message....http://forums.xisto.com/no_longer_exists/

    214828[/snapback]


    Yeah - I was using rapidleecher for a while (I blame dooga for that! ;) ) and then uninstalled it! ;)

     

    Thankyou VERY much - you have kinda solved my problem - many thanks! :D


  17. Yes people do get paid every 100 years  ;) . I have been registered at a least 10 such programs and I didn't even receive the emails (maybe I received a few but not as many as they advertise). And yes...someone calculated that it would take a few 100 years for you to get some money out of it.

    I suggest you signup for a real money making machine like:

    12DailyPro (I have a special offer if you'll join under me... I'll give you back 50% the first 3 upgrade referral commisions --- thats 6% of your first 3 upgrades... PM or email me for my refferal link)

    StudioTraffic

     

    Hope you'll like them and you'll make a lot of money... I did!

    213574[/snapback]

    This guy is too right - they are all cons! Good ones i must admit! ;)


  18. Source: Slashdot http://forums.xisto.com/no_longer_exists/=

     

    Google builds an empire to rival Microsoft

    Follow the link to read complete articles (Source ZDnet.com)

     

    Google builds an empire to rival Microsoft: http://forums.xisto.com/no_longer_exists/

     

    Google and Sun join forces: http://forums.xisto.com/no_longer_exists/

     

    The articles are tooo big to be pasted here so see them urselves

     

    Notice from cmatcmextra:
    Please use quote tags when copying and pasting from other sites.

    214820[/snapback]

    Thats all music to my ears! :D

     

    I mean google are MUCH better than Microsoft - in almost all ways. I feel sorry for GMAIL, havong to change their name due to some childish company not allowing them to use that name!

     

    Also, imaging google brought out their own Operating system - i mean with the technology of today - they could suprise us! ;)

     

    I think we will all have to wait on that one lol - great newsthough - who do you think will win the war? ;)

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.