Jump to content

phpisawesome

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Everything posted by phpisawesome

  1. I did, it's just a number...are you sure that query is the right format?
  2. a number, basically corresponding to the person's id
  3. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2 this is what i have currently... $query_2 = "SELECT * FROM db WHERE id = " . $_SESSION['id']; $results = mysql_query($query_2) or die (mysql_error());
  4. The site just say's mysql error...i commented everything else out to break down the problem and it's that query...
  5. You positive? Did that and still syntax error.
  6. do you guys know what's wrong with this syntax? $query_2 = "SELECT * FROM db WHERE id = " . $_SESSION[id];
  7. $sql = "SELECT * FROM $tbl_name WHERE category = $category ORDER BY thumbs_delta DESC";
  8. why can't I put a WHERE and ORDER BY in the same query? or is there a way?
  9. If someone clicks on Love...I want it to search the db in category, then find love, and just display the love posts. Any ideas on how to do this? I can't do order by Category Love...gave me some errors...thanks!
  10. ya I just want to turn a www.test.com/profile.php?user_name=test to www.test.com/test
  11. http://www.quotestumbler.com Just simply click what is this? or find a quote... Those pop up things...is that javascript? If so how would you make that?
  12. Alright awesome thanks...any good tutorials on how to easily do this?
  13. I want them to know the 2nd url only.
  14. Can they just go directly to the 2nd url though?
  15. How do you make it so after a user registers on your site they get there own profile like... www.test.com/username Almost like youtube?
  16. I'm trying to do a query in php...how do I check if something is 2 weeks using the php date function?
  17. So basically whenever someone adds another friend it adds to the id and friend id... 7 10 10 7 but if there is another group of friends like 7 11 11 7 When 10 views 11s profile it should say add as friend...but when I do the query and fetch the row it shows 10 is 11's friend...help at all?
  18. id friend_id 7 10 10 7 7 11 11 7 So 7 and 10 are friends. 7 and 11 are friends........ I have a mysql_fetch_row to see if 2 people are friends...if it equals 0 it shows add me as friend! My problem is it is basically saying 10 and 11 are friends...and doesn't show add me as friend! any help?
  19. So when I click the link I want it to perform the action on the php action page and on the page it redirects to display what it needs to display So here's an example Click here to add me as a friend! So when you click here it does the action in the php file...and it redirects you to the main friends page but displaying the results from the action page...
  20. when you click the link it does the action...on a certain php file...now on that php file I want it to do what it's supposed to...and redirect to another page displaying the text from earlier in the script. Please help.
  21. on the new page display the text
  22. Ok so basically at the end of my script...I want it to redirect to another page, but still print to the screen the text I want it to...can anyone help? So on the page it redirects to display the text as it would if I didn't redirect the page...
×
×
  • 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.