Jump to content

haibec

Members
  • Posts

    102
  • Joined

  • Last visited

Posts posted by haibec

  1. Hi,Write a dynamic query in a loop that Itrates 1 to 5000.append the loop index to the query like 'user' + i, user random function to generate the randon password.If you need exact code let me know.Hope this helps.Good LuckHemendra Singh ShaktawatMindfire Solutionswww.mindfiresolutions.com
    I need exact code! help me
  2. You can use % (mod operator) to see if a number is odd or even.if ($no % 2 != 0)echo "odd";elseecho "even";Probably you can also use (but it's a little harder to understand):if ($no & 1)echo "odd";elseecho "even";
    Please help me detail !
  3. Try this:SELECT COUNT(DISTINCT(users.ID)) AS num FROM users, orders WHERE users.ID=orders.ID AND orders.ID>=500The field you will get back will be called "num", and should contain the number of users who have bought at least one product with a price at least 500.
    Yeahhhhh!Thank you very much!
  4. I don't understand, could you rephrase that?
    Example :User 1 buy three product : product1 have Price >=500$,product2 have Price >=500$,product3 have Price >=500$User 2 buy two product : product3 have Price >=500$,product4User 3 buy product5 have Price >=500$User 4 not buyI want select : How many member buy at least a Product have Price >=500$
  5. do you really have that many visitors that you need to run your site on two different servers? i'm not sure if this is what you want really but here it is. <?php$rand = mt_rand(1,2);if($rand == "1") { //redirect to other server}else{ //stay at this server}?>you will have to fill in the if statements with how you want to redirect the user.
    Okie Thank!But i want With User have a number access is a odd number then that user will redirect to webserver1. If user have a number access is a even number then that user will redirect to webserver2. Please help me!
  6. Hi Guys!I have two table Member includes : ID , Name and Product includes ID,ProductID,Name,Price . Both table related by ID . Make stuation : with a Member only buy maximum are 3 product . I want query exact amount member have Product and Price >=500$

  7. Hi Guys!I have 2 webserver running PHP . I want make a code : With User have a number access is a odd number then that user will redirect to webserver1. If user have a number access is a even number then that user will redirect to webserver2. help me

  8. Hi Guys!I have problem : I have Table User with fields : ID, NAME, LEVEL,ID_LOT1,ID_LOT2,ID_LOT3 . I my Table User, With field LEVEL has values : 0,1,2,....,1x,2x,3x... I want make a procedure use to give an award for members . With members have LEVEL = 1x (11,12,...19) will insert are values into ID_LOT1 , With members have LEVEL = 2x will insert are values into ID_LOT1,ID_LOT2 (with this member will two ID_LOT),....with member have LEVEL=3x will insert are values into ID_LOT1,ID_LOT2,ID_LOT3 . After i want make a procedure LOTTERY run random all ID_LOT and choice are values random. ! Very difficul for me, Help me

  9. Well, still assuming this is MS SQL Server or Access, and depending on what you want to do with the result, you can say something like (Access syntax this time):
    SELECT  [Level], COUNT(*) AS NumUsersAtLevel FROM User WHERE ([Level] BETWEEN 1 AND n) AND (Lastlogout BETWEEN #18 Aug 2006# AND #20 Aug 2006#)GROUP BY [Level]ORDER BY [Level]

    Oh! Very well!Thank o lot!
  10. Well, if this is MS SQL Server you can say something like:
    SELECT * FROM User WHERE (Level BETWEEN 1 AND n) AND (Lastlogout BETWEEN '18 Aug 2006' AND '20 Aug 2006')

    Okie thanhk you! But my problem is : With each level i want scan how many logout in that space time!
  11. Hi Guys!I have a table User includes : ID, Level, Lastlogout . I want create a function have mission : Scan all user from level 1 to level N already logout in space time : Example : from 08/18/2006 to 08/20/2006 . Please help me!

  12. What? You aren't making any sense?ASp.Net is free to download and install the framework.Are you looking for source code to projects or what?
    yes . I want source code for project .
  13. I have two Table : Student include field : ID ,NAme,classs an a Table :Point include ID ,Point, name,class . I want when Update a table ,exemple : Student then The table Point so-so updated!Please help me

  14. That's not what I was asking when I said "what's the problem". I understand what you want to fix. I said that if the email uses the default address for the server (mailer.daemon@domain.com or something like that) then Yahoo might junk it. So the solution is to make sure that your emails have a legitimate email address as the 'from' address. Maybe I'm having a hard time understanding you, but then you seemed to ask "how do I set the from address to be a default address" and I replied with "you set the address". Do you not know how to set the from address when you send an email?You should probably paste your code that sends the email.
    ah! thank to all!i solved this prblem : i configured in AgentEmail in Contropanel and it work very good!
  15. Well.. I guess a solution would be to always set the from address. What's the problem?
    When a user register in to my pages . if that user have a Email ,Exemple : gmail or hotmail then not problem, my pages will send a Email to their INBOX . But if their Email is yahoo then have a problem : my pages always send mail in to BULK. Hic..HIc
  16. Make sure you set the from address. If the from address defaults to the sendmail agent on the server, it will probably get blocked.
    OKIe! but i want alway use from address default a address ! please tell me a solution!
  17. Hi Guy!I have register.asp i use ASPEMail send email active their account . But with Yahoo that email not in INBOX in addition in to BULK ( Yahoo check it is spam) . Please help me . I want it send in to INBOX. hu...hu..huu

×
×
  • Create New...