Jump to content

ueon

Members
  • Posts

    97
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ueon's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

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