Jump to content

ueon

Members
  • Posts

    97
  • Joined

  • Last visited

Everything posted by ueon

  1. Since it's a javascript based API, I will be posting it here: Does anyone know the method used to create an application like: http://www.4condosandlofts.com/index.php?p=141&io_mdist=C&io_districts=C01%7CC02%7CC03%7CC04%7CC05%7CC06%7CC07%7CC08%7CC09%7CC10%7CC11%7CC12%7CC13%7CC14%7CC15&C01=on&C02=on&C03=on&C04=on&C05=on&C06=on&C07=on&C08=on&C09=on&C10=on&C11=on&C12=on&C13=on&C14=on&C15=on&io_for_sale=1&io_for_lease=1&io_hometype=condo&io_dir=desc&io_st_name=&io_min_price=550000&io_min_bedrooms=0&io_max_price=1800000&io_min_bathrooms=0&io_ml_num=&io_min_kitchens=0 How would I go about using google maps api to create the interactive maps they have done? (I'm just asking about the google maps aspect, not the database integration) thanks in advance
  2. <?php‎ include "base.php"; $events = mysql_query("SELECT a.*, b.* FROM friendlist a INNER JOIN attend b ON (a.friendemail=b.email) WHERE a.email='$email' GROUP BY b.eventid ORDER BY count(*) DESC LIMIT 5"); ?> it still doesn't work :s it's giving me a 500 error
  3. <?php‎ $events = mysql_query("SELECT a.*, b.* FROM friendlist a INNER JOIN attend b ON (a.friendemail=b.email) WHERE a.email='$email' GROUP BY b.eventid ORDER BY count(*) DESC LIMIT 5"); ?> this is all i have in the page
  4. SELECT a.*, b.* FROM friendlist a INNER JOIN attend b ON (a.friendemail=b.email) WHERE a.email='$email' GROUP BY b.eventid ORDER BY count(*) DESC LIMIT 5 This query returns the right results in PHPmyadmin, but when it's executed in a php file through the chrome or firefox, it doesn't display anything. As in the entire webpage won't show up. In chrome, it says server error any ideas?
  5. wow, can't believe i didn't see that. That's all i needed, thanks!
  6. the query is copy and pasted from my project. in the project, it does have divs Show all of the relevant code, if you leave stuff out that makes us have to guess. how would you output the `Username` from table c? c.Username? in the simplest form?
  7. the query is copy and pasted from my project. in the project, it does have divs
  8. $query = mysql_query("SELECT a.*, b.* FROM friendlist a INNER JOIN friendlist b ON (a.friendemail=b.friendemail) INNER JOIN users c ON (b.friendemail = c.EmailAddress) WHERE a.email = 'asdf@gmail.com' AND c.Username LIKE '%carol%' GROUP BY a.id ORDER BY count(*) DESC"); while ($showfriends = mysql_fetch_array($query)) { echo $showfriends['Username']; } and I would get nothing. It produces the correct number of <div> so i know it's getting through, but it's having trouble displaying the entries?
  9. sorry, but would it be possible to write the query? I have no idea how to use the two queries together with count
  10. I'm making a social network right now - the search function specifically. I have no idea how to write a mysql query that would do the following: For example, if I search for "John" on the social network, it would return all "John"s on the network. I would like to rank the output by listing the "John" with the most mutual friends with me first. 1) John - 30 mutual friends 2) John - 20 Mutual friends 3) John - 10 mutual friends $Mutualfriends = "SELECT COUNT(*) FROM addfriend WHERE ((request='$you' AND receive='$friend') AND confirm='2') OR ((request='$friend' AND receive='$you') AND confirm='2'" So the above query returns the number of mutual friends you have with this user. And the following query is trying to order all users in the database with the most mutual friends at the top $friendoutput = "SELECT * FROM users WHERE Username LIKE '%$username%' ORDER BY $mutualfriends DESC
  11. How Do I output the following? 1) Search a name 2) Output all users on network with most mutual friends listed at the top *** The $mutualfriends query works, but I have no idea on $friendoutput $Mutualfriends = "SELECT * FROM addfriend WHERE ((request='$you' AND receive='$friend') AND confirm='2') OR ((request='$friend' AND receive='$you') AND confirm='2'" $friendoutput = "SELECT * FROM users WHERE Username LIKE '%$user%' ORDER BY $mutualfriends DESC
  12. http://api.embed.ly/1/oembed?key=82ed8b80fb7311e0836c4040d3dc5c07&url=http://api.jquery.com/category/events/mouse-events/&format=xml does anyone know how I can use jquery to bring the content into an html file? for example: 1) click button (id: #click) 2) content shows up (p: #show)
  13. would it work even if a belongs to table 1, b to 2 and c to 3?
  14. How do I search through table 1, 2, 3 where a=x and b=y and c=z?
  15. ueon

    Explain Query

    thanks aykay, but what does the ON and IN mean?
  16. ueon

    Explain Query

    I hired someone to do a project, and I need to alter his query a bit but have no idea what it says : $query = "select a.*,b.Username,b.EmailAddress,b.UserID from status a inner join users b on(a.email=b.EmailAddress) where a.email in($searchuser) order by id desc ";
  17. How does Facebook prevent spam bots from registering? I don't see any captchas or confirmation emails I'm pretty sure facebook is done in php, so any ideas anyone?
  18. The individual while loops work, but when I embed it within a while the parent loop runs, but the inner loop doesn't execute at all while ($set3 = mysql_fetch_array($query2)){ while ($set2 = mysql_fetch_array($query)){ echo $set2['EmailAddress']; } }
  19. I have an entry in Mysql called "PHPFREAKS" How do I return "PHPFREAKS" as a result even if I search for "php"?
  20. ueon

    'AND' not working

    thanks works perfectly
  21. $jobs = mysql_query("SELECT * FROM work WHERE email='$request' AND primary='1'"); // This doesn't work $jobs = mysql_query("SELECT * FROM work WHERE email='$request'"); // This works I know for a fact that there's a column in work called "primary" but it's giving me this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
  22. ueon

    Aweber target

    I'm trying to get aweber's form to open in a new page, but it's not working. I have tried every target property, but it's still not working. It's also embedded in an iframe within an asp.net environment <form method="post" target="_blank" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl" >
  23. Is it possible with PHP to write an application where it sends an email to everyone in an users Gmail + Hotmail contacts list if they provide the email address and password? Example: Inviting your friends from Gmail when you sign up for a Facebook account
  24. I actually have an auto_increment so I guess fixes the problem. but what is the primary key and creating an index on a column? are those necessary to accomplish what I'm trying to do?
×
×
  • 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.