Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. http://www.w3.org/TR/REC-html40/interact/scripts.html
  2. That won't work....for the simple fact that you typed it three times proves that. This would perfectly suffice. echo ""; while ($row=mysql_fetch_array($result)){ echo "".item($row[item]).""; } echo "";
  3. X:\documentRootFolder Pretty straight forward....just look in the http.conf file.
  4. you could have a projects table and a milestones table and link the milestones to a projects query. m_id project milestone mcost -------------------------------------- 1 2 2009-06-15 500 2 2 2009-07-03 580 3 1 2009-05-21 100 unless of course you are only going to have a maximum of 3 milestones per project...then it would be logical to have the schema you do.
  5. if you want to make an entire drive the document root...you'd have to run the apache service on another drive....or else you'd be making your Apache configurations and such...well...public
  6. actually after re-reading your question you would add more columns as well like date and order.
  7. Why would you have all those fields like that...that's extremely redundant. you could just as easily have 2 columns (m_id and cost) ------------------- m_id | cost 1 3.99 2 3.99 3 88.99 4 3.99 5 4.98 6 30.99
  8. jesus christ.. 9 million! How the fuck do you get those jobs? I'd be lucky if I could get a bid for 2 grand....hell 500 would be a surprise to me too (assuming the job isn't deciphering other peoples code)
  9. by nothing you mean....?.... - it does literally nothing at all - the program doesn't execute without an error - NOTHING is deleted from the database. - NOTHING is displayed on the screen - sounds don't chime and jingle along with fireworks when you run the code. - so...what DOES happen...because the code seems to be fine...especially since the query works in phpmyadmin (if that's true)
  10. you don't have any semicolons $connect = mysql_connect("127.0.0.1", "root", "") // ; mysql_select_db("MainDB", $connect) // ; also...you need to assign mysql_query to a variable like so $query = mysql_query("delete bad_rows.* from account as good_rows inner join account as bad_rows on bad_rows.username = good_rows.username and bad_rows.id > good_rows.id)", $connect); mysql_close($connect);
  11. Yes, register_globals is BAD. instead of $page use $_GET['page'] or $_POST['page']....depending on which one you're using
  12. this would work better onclick="if(this.value==''){this.value='Default text string'};" I would also use onblur instead of onclick
  13. well for one....it's less complicated and you don't need a JOIN for every single thing. you can easily select all the interviews, reviews, or features with a WHERE clause.
  14. try a LEFT JOIN or OUTER JOIN....I'm not sure of their differences but...play around with different joins and you should get a positive result at some point SELECT * FROM schedules_private sch LEFT JOIN users u ON sch.user_id = u.id WHERE sch.week = '2009-07-06' SELECT * FROM schedules_private sch OUTER JOIN users u ON sch.user_id = u.id WHERE sch.week = '2009-07-06' SELECT * FROM schedules_private sch JOIN users u ON sch.user_id = u.id WHERE sch.week = '2009-07-06'
  15. doing this $reg_username =$_POST[username]; will make an isset($reg_username) return true...always you need to test if it's empty() instead of isset. use isset on things in which if they weren't set you wouldn't have all the other variables either.....such as the submit button
  16. well....... just add them as NULL columns then.
  17. SELECT * FROM schedules_private sch INNER JOIN users u ON sch.user_id = u.id WHERE sch.week = '2009-07-06' LIMIT 0 , 30 try that
  18. If all of those tables have the same schema...why don't you just put them all in one table like .... articles id, title, information, content, image, link, type, wordsby, VIEWS, article_type where article_type could be the......well....article type.... interview, feature, or review. Or you could use numbered values where article_type could be like 0 for interview, 1 for feature, 2 for review, etc,etc,etc
  19. SELECT MAX(views) FROM interviews i , features f, reviews r you may get an "ambiguous" error.. if so you'll have to do this SELECT MAX(i.views), MAX(f.views), MAX(r.views) FROM interviews i , features f, reviews r
  20. SELECT * FROM schedules_private sch, users INNER JOIN users ON sch.user_id = users.id WHERE sch.week = NOW()
  21. is would be better if we saw a layout of your table.......using DESCRIBE
  22. $search = array('preteen girls', 'nigerian porn', 'sell password', 'credit card', 'trade accounts'); $replace = "banned word"; if(count(preg_filter($pattern, $replace, $search_txt)) != 0) header("Location: illegal_action.php?action=key_illegal($search_txt)"); Code not tested EDIT CODE!! review it
  23. Well, someone had to develop these applications that are apparently sending the computer market "downhill." Being able to duplicate such point and click applications is what would set you apart from a beginning programmer. Is computer science the best major? No and yes. Unless you plan on learning how to code an operating system or retail software package, Basic programming and logic and math is pretty sufficient for a web developer. When it's all said and done and you have graduated with your Associate's/Bachelor's/Master's...that's the end of the question of "what did you study in school?" Simply putting on a resume that you have a Bachelors degree in (Arts, Applied Science, or the Medical study) will let an employer know that you're reliable You could have a bachelor's in Underwater Basket Weaving and still get a job coding somewhere so long as you know how to do the work. If I could start back I would be majoring in something like Biotechnics, Bioengineering, etc technology. I've been in college for Web Technologies and Computer Information Systems and every class I had seemed to easy to me...no challenges...just constant lectures about things I read about everyday on the net itself. (teaching myself). As awesome as it may seem to know it all in a class already..it's not and after awhile it becomes like a chore to go to class ... well..to at least get the attendance grade. You find yourself coding things without thinking, cutting corners, etc, etc, etc...and for no money! Find what interests you and use your coding background to complement your decision.
×
×
  • 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.