Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Don't double post! Open your eyes and look at your spelling... esleif ($browse=('use')) { Should be: elseif ($browse == 'use') { And like my other post said you need to use == not = or else the last elseif statement will always be true.
  2. 1) esleif ($browse=('use')) { Should be (notice the mispelling of "elseif"): elseif ($browse == 'use') { 1) You're assigning instead of comparing. All the single equal signs should be double. Example: if ($browse=('author')) { Should be if ($browse == 'author') { 2) endif? This is PHP not VB.
  3. You're right! Here is the solution for this problem. It will get the next biggest ID that's in the table. $prev_id = $_GET['ID']; $sql = "SELECT id FROM table WHERE id > $prev_id ORDER BY id LIMIT 1";
  4. Depends on how many times and how frequently you do this. Some search engines may consider this spam, but if you submit to directories it shouldn't matter. Are these the only changes you've made? Ranked on which search engine? Have you checked the others? Cause "they" don't banish you from ALL search engines, the search engines have you ban you individually. You rank 19th on Yahoo! And for Google... I didn't see your site for 5 pages and stopped looking. (this is all for "Utah Web Development") This may just be a Google issue but I'm no SEO expert. p.s.- there are scripts out there to tell you exactly what you rank on specific search engines so you don't have to sift through them manually.
  5. \t
  6. Ah, yes I see.
  7. onmouseover="alert('Visit W3Schools!')" /> Please read this W3 tutorial.
  8. I don't understand... You are selecting from the Keywords and Data field, this is what * does. Do you mean you want to search in the Keywords and Data fields? If so, do you want to select only what is in Keywords AND Data or, Keywords OR Data?
  9. Please read cURL. For your circumstances you may want to use file_get_contents(), it's a little easier to use. You should also Google Screen scrape because there are many classes, already made, to handle what you're looking for.
  10. Maq

    PHP Trouble

    *Bows* (Please mark the thread as solved bottom left hand corner) *claps* "premiso, you're so smart!" *blushes* I did not expect a standing ovation!!! I didn't stand... *throws tomato*
  11. Maq

    PHP Trouble

    *Bows* (Please mark the thread as solved bottom left hand corner) *claps* "premiso, you're so smart!"
  12. IMHO = in my honest opinion @bissquitt You're better off trying to write this script and coming back with specific answers.
  13. Maq

    PHP Trouble

    Both work =) mysql_numrows Awesome...
  14. DELETE vehicle.*, quotes.* FROM vehicle, quotes WHERE quotes.first_name = 'test' OR quotes.last_name = 'test';
  15. Maq

    PHP Trouble

    it's mysql_num_rows() NOT mysql_numrows()
  16. Some people may give you their pre-made scripts but usually don't build them from scratch. IMO this is what you should do, pseudo: for($i=0; icURL("http://bookstore.umbc.edu/SelectCourses.aspx?src=2&type=2&stoid=9&trm=Spring%2009&cid=$i"); //notice the $i var //use your regex to extract the appropriate information //store it somewhere, CSV maybe? }
  17. You will have to remove anything to do with "type". From main_1.html take out: Audio search.php take out: $type = mysql_real_escape_string($_POST['type']);//get video id if ($type == '') { $type = mysql_real_escape_string($_GET['type']); } $get_type = $type;//also send type to html if ($type == 'audio' || $type == '') { Take out everything that has to do with "type". You may want to post more of the code if that doesn't work.
  18. Do you have a question?
  19. That IS only 1 query... Why are you SELECTING and JOINING if you're trying to DELETE from all these tables? You need something like: DELETE FROM vehicles WHERE first_name = 'test' OR last_name = 'test'; DELETE FROM quotes WHERE first_name = 'test' OR last_name = 'test'; OR (I think this is correct syntax): DELETE vehicle.*, quotes.* FROM vehicle, quotes WHERE vehicle.first_name = 'test' OR vehicle.last_name = 'test';
  20. I don't even know how his code runs with that kind of syntax... Put this at the top: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  21. Why do you put config.php in that function anyway?
  22. What I mean by, is this: If you're only showing 1 image per page you can create the next, previous, and main by just doing a simple query by ID. For example, if someone is on the first image and clicks next you should pass the ID (?ID=1) and when the page refreshes you do (in pseudo): $new_id = $_GET['ID'] + 1; SELECT image_id FROM table WHERE ID = $new_id; //display image //create new links Next> Pagination is much better because it's more dynamic in case you want to alter how many images are on the page or if you want to do something like:'
  23. For starters store_lead only takes in 2 params and you're giving it 4. Should be: store_lead($_GET['uid'] ,$_GET['oid']); I also don't know why you're assigning $ok to store_lead as it does NOT return anything.
  24. Minor syntax errors, and you need to include the file. require_once('db_works.php'); $db = new db_works(); $db->connect(); $query = "SELECT blah1, blah2 FROM tblBlah ORDER BY timesUsed DESC LIMIT 10"; $result = $db->query($sql) or die(mysql_error()); ?>
  25. Maybe it's conflicting between as sales and then trying to access cs.sales ???
×
×
  • 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.