Jump to content
xisto Community

xpress

Members
  • Content Count

    724
  • Joined

  • Last visited

Posts posted by xpress


  1. Is it possible to create a connection without a user and password? If not--how do I set one up in XAMPP? Any help would be greatly appreciated... I feel like beating my head into the wall at this point...

     


    No, it is not possible to create a connection without a username(as far as I know and my experience with databases concerned). But you can leave a password blank.

    The default user for MySql database is root and password is blank (means no password).

     

    So, if you have already created a database with the name help, then create a connection using root as username and password is empty string.

     

    Ask me if you have any other doubts.


  2. Thank you for your very useful advice.
    I tried the favicon website and it worked right away.
    However, it displays the icon on the top tab of the browser, but not in front of the URL, while in Internet Explorer 9, it is not showing anywhere at all.
    Have I done something wrong?

    This is the code I put in the <head></head> tags:

    <link rel="icon" href="Pics/favicon.ico" type="image/ico" />

    If you see a mistake anywhere, please let me know.

    Thank you once again.

    Change the following code, it will work in internet explorer. Remove that image/ico, its not a valid mime type. Try the following code instead.

    <link rel="shortcut icon" href="Pics/favicon.ico" />


  3. I was wondering how you can make a favicon (I hope this is the right name for one of those symbols that appears in front of your URL).

     

    I seem to remember there used to be a freeware program called 'Favicon', but I think i tried it and it did not work out that well.

     

    So, can anyone point me into the right direction for making and displaying my own favicon (and also put me straight if I am not using the right name for that little icon)?

     

    Thank you very much in advance.

     


    Yes, the small icon that appears in front of url is favicon. It is very easy to add favicon to your site. You can use any image, just don't forget to crop it to some size like 16X16

     

    just keep the following code in your <head> tag of page. Replace href with your image source, and type as per your image, like image/gif for gif etc..

    <link rel="icon" href="image source" type="image/png" />

    There are lot of sites available on internet to generate your own favicon in .ico format, if you prefer ico favicons.

    One i found is Favicon. Try it once


  4. heyaa guys,

     

    i recently have a project, in which i have a module in my Database Admin panel in which i need to BLOCK the existing users in my application..

     

    So i wanted to know what code could be applied in PHP to block an existing user..

     

    eg: if there is an email id called : jimmy@hotmal.com so if he abuses my rules and regulation then the Database Admin can block that particular user(email id) ie. he will be completely banned from my site or application. So next time if he tries to log in or even register into my website he wont b able to log in with the same email id(jimmy@hotmal.com he has earlier used.

     

    to sum up i wanted the code to block the users who are already present in my database.

     

    Thanks

     


    I dont know how you designed your database. If you designed it on your own, then i think you have a users or some other table in which the username and password of the user is stored. So in that table add another field with name status. If you know enum field, then make it enum field with values active/blocked.

     

    When a user registers in your forum make it active by default. And when you need to block some user then change the field to blocked with some script in your admin panel(guessing you know how to do). Then in your login script, when comparing username and password with sql query, also you add sql code to check whether the status is active or not. If the status is not active then don't allow the user to login.

     

    I think you understood the basic concept. If not please ask your doubts and i will explain in detail.


  5. I have a problem a lot like you are describing due to making my web site with Front Page. It pretty much drives me crazy. I can see stuff when I look at my site online, but when I open front page to update my site, the stuff I need to work on is not there. Then once in awhile, it does just the opposite. I can see stuff when I edit my site, and it's there and been saved, but you can't see it when you visit the site. Even after refreshing the browser. So, if you find out what's going on with your site, let us know, I'd be curious too.

    How is that possible, content appearing some times and hidden some times? At least did you figured out the reason behind it? if so please share with us. Are you using any CMS for your site? Is that causing the problem?

  6. Hello guys..pls help me to start with php..i have written a code to retrieve data from my WAMP server's database and thereby to print a timetable..but i find some errors which is frustrating..pls help me out..tks..

     

    Well, mysql_query will not give you numrows. The result of mysql_query will be a resource array. If you want to count the number of rows use

    mysql_num_rows($result) instead. Here $result is the result of mysql_query(). Actually I didn't fully understand what you wanted to do. So please be specific next time, and post the errors you are gettting..


  7. You are very right to say that but he dont want to loose his job if he is going to take such a step then obvious he is going to loose his job in turn some day. So I dont think he will be ready to take such a risk.

    I agree contactskn, nobody wants to take risk like this if it costs their job, But if your friend doesn't like to do anything against his problem then there is no reason in his worrying. He just have to go with the flow. And he should accept the fact that unless he will do something, nothing gonna change..
    So just tell him, its very common in our country and stop depressing.

    I would like to tell you something. In our country Everybody wants change, but nobody wants to be a part of it. Hey its not personal, and nothing offensive, just my feelings... I hope everything will go softly for your friend.. :)

  8. I don't hate Microsoft word that much. But I didn't understand the incompatibilities between different versions of word documents. Once I faced a really embarrassing situation when i took an important document to somewhere else, where a different version(probably 2003) installed. And when i opened my document it showed me modern art... :huh:


  9. I think, these days governments jobs are not suitable for honest people. Though any of my friends are not working in any government offices I had seen plenty of government offices where bribe will play important role in completing works. A school children in our country knows that we have to pay something to get some work completed. And people are used to it now a days. So these employees are feeling it like a right of them.We don't know when it will change in India. But these days ACB is actively riding offices if there are any complaints about corruption. If your friend interested suggest him to meet or call any ACB official.


  10. Yes, It loads very slowly for me too.. my net connection is somewhat slow, and Xisto is taking ages to load... other sites are loading somewhat at reasonable speed, but ks is really slow.. admin has to look at it once... and that stay logged in not working for me too after the forum upgrade.. I have to manually login every time when i open the site..that doesn't concerns me much.. but the forums speed is very disturbing. :(


  11. Yes, One of the main reason for India and China growing economically is their population. Almost all multinational companies found these countries marketing potential, so they started investing in these nations, which results in a good growing economy. But when coming to masses in India, the poor people are still poor and becoming much poorer. Only the wealthy people are developing. In our area there are still many villages which didn't meet the minimum needs like water and electricity. And as mahesh said, our politicians are main reason for this. They want money, whatever happens they will not care. That's why lot of scams are hitting our government these days. There will be no use in this growing economy and development until it reaches the masses in villages. So I wont believe in these paper calculations anyway.And coming to the war, America playing double game with India and Pakistan. When they come to India they will Pakistan should stop terrorism and etc etc.. and they will give millions of dollars to Pakistan's army development which looks insane for everybody. And there has been rumours that China has been supporting Pakistan's army secretly, which indicates that China is feeling India as a threat in future. India has a policy that it will not attack any nation first, but these days our political leaders make it that it will not attack even if some other nation attacks us. :huh: god saves our country. :(


  12. I didn't hear of that CMS before, After reading your post I just went to their website and downloaded it. I will check it on my local computer and I will post my experience.And I agree with mahesh about CMSs. We just cant use any CMS because it won some award. Usually once you get comfort with some CMS you'll feel it is more easiest than any other CMS. Well its my personal opinion. Well Wordpress is easy, but personally I like Drupal. I agree Drupal is somewhat hard to learn than Wordpress and Joomla, but once you understand Drupal you'll understand its flexibility. You can bend Drupal to whatever you like.. :D


  13. Opera is my favourite too.. Definitely it is faster than Firefox. The one and only reason i use firefox is about its extensions. There are many useful extensions there for firefox, but unfortunately Opera is still behind firefox. ;) One of my favourite features in Opera is its mouse gestures. I really enjoy them. For example I save a lot of images from internet. To save an image I just press Ctrl+click. Very easy, isn't it?With every major version, Opera is adding new features. Opera Unite and Turbo. They are good. Opera Turbo is very good when I connect internet through my mobile's GPRS connection. I hope opera will continue to impress in future too..


  14. :) So you are back ? hows life and since when yo got time for Xisto ? :D Welcome back Xpress.


    Hmmm... Not yet mahesh. Posting here with friend's internet connection.. May be it will take one month for me to get a new internet connection. After that I will be active at Xisto....

    Life is going.. left old PHP developer job, now again in search.. And thanks for your welcome :)

    I am not aware of anything happening at Xisto mycent updates etc.. hope everything is going fine with all trappers.. :P

  15. I always want to be active at Xisto.. but couldn't find time to come and post here.. and more interestingly I don't have access to internet...Some some times I'm logging in here but I didn't find any topics that interests me to give reply. So, simply I'm just browsing KS and leaving.. :unsure:


  16. I too think this won't happen in India.. lot of problems arise if they ban google and gmail in India. And Government will not take it much seriously, so as media. In our country media will make anything a News, and in 2 days they will forget it and will move to another news..

    Government also same, they will rise the issue once and forget it until someone again rises it. So people are not caring much about issues like these. Now they are more focused in increase of petroleum prices and other products :)

    Just few lakh dollars to political leaders and there will be no protest. :D


    That's right. A big issue will be closed in a single day if enough amount paid to our political leaders :P

  17. I had to keep the prefix Cricket because I'm not sure how many cricket fans are there in the forum! Besides, it's the football season so most people would be taking about football only. Anyway there are other tournaments going on to (Wimbledon, anyone?) and one of them was the Asia Cup, which ended a few minutes ago with India beating Sri Lanka. This win was pending since 15 years and will surely bring cheer to the millions of cricket fans in India who were terribly disappointed with the team's dismal performance in the recent tri-series tournament.

     

    After the match with Pakistan I had a good feeling that we would win the cup - the players always get pumped up after playing against Pakistan :)

     


    After watching the previous match against SriLanka I thought we will lose Asia cup this year also. But poor luck and somewhat bad fielding in final match kept Sri Lankans away from this Asia Cup. Dhoni is a lucky guy.. Because mostly his luck is getting Wins to India. Look at how our players played in final. I am not really satisfied with our batting performance though our bowlers did somewhat well.

     

    Anyway winning is always happy.. congrats to our team.. :)

×
×
  • 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.