Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. I have this as my autoloader. All the classes are based off of Class O. I wanted to be able to do something like $dog = new Dog(); even if I hadn't yet created Dog.class.php and made it extend O. (I realize there are plenty of reasons this is a bad idea, this is a temporary part of the project, I am just trying to get a few things set up and thought it would work - now I'm probably going to spend more time trying to do this than it would have saved, but I'm curious. ) ( ! ) Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in C:\wamp\www\project\index.php on line 22 (line 22 is Class $class_name extends O{ <?php function autoload($class_name) { if(file_exists($class_name.'.class.php')){ require_once($class_name.'.class.php'); }else{ Class $class_name extends O{ } } } ?> Is it possible to do what I'm trying to do?
  2. How many topics have you created about this now? Make the text a link, and in the link add a parameter of what you want to search on. It should look like: http://mysite.com/show_houses.php?type=semi-detached Then on your page you'll check if $_GET['type'] is set and has value, and then create your MySQL query to use that. You have to try it before we can help you fix it.
  3. They really should have thought about that name.
  4. I always use MD5 with salt. It's tastier that way. https://www.google.com/search?q=salting+passwords
  5. Yeah, I already downloaded 3.3 and it won't let me login as root no password. :/ I was trying to quickly set up Wamp Server but I guess I'll have to mess around with it since it doesn't want to play nice with the older version of phpMyAdmin. *grumble grumble off my lawn*
  6. Just be consistent with all your standards. Don't switch from camelCase to underscore_separation and if you put your brackets on the same lines as if(), do it for every single one, not half of them.
  7. So what does self-aware mean? Sorry to derail the thread, I'm just trying to figure out what you meant
  8. .... I don't like the modal windows interface, or the ajax features. How do I turn it off? I am still able to create tables and run queries, etc. In older versions when you create a table you'd put the name and how many fields, and it would take you to the next page. Now, it pops up a modal window to enter the fields. I want the old way.
  9. I'm really hating this new interface for phpMyAdmin that uses a ton of modal windows/javascript/ajax stuff. Does anyone know when they started doing that? I'm having trouble figuring it out from their website.
  10. It's quite obvious, you saw " and thought it was two '. It's not really embarrassing. noXstyle is correct on the problem.
  11. You're storing the selected times in your students table, right? When you select the list of available times from your datetime table (which is a HORRIBLE name for that, rename it "classes" or something), you want to also select all the times from the students table. Then you get the difference. You can do it just in MYSQL, and it will be easy if you give each specific available day and time a unique ID. This is how it would look with a proper relationship set up and more descriptive names: SELECT class_id, class_datetime FROM class_times WHERE class_id NOT IN (SELECT class_id FROM enrolled_students)
  12. That's not javascript at all then. When you select the list of times, compare it to the list of already registered entries.
  13. So are you saying that if you called json_encode on an already escaped string, it would not add extra slashes like add slashes would?
  14. You're saying that if one person selects a time, you don't want that time to be visible for the next person, correct?
  15. Are you saying to want the select dropdown to be already selected, set to the value in the DB? You'll need a separate string for each option list, so you can set selected="selected" on the right one for each.
  16. What happens when someone accidentally picks the wrong one?
  17. I don't know why you'd call it twice, but ok...I never use it, just popped into my mind for this.
  18. Try this instead. You can't access $player again you've already "used it up" basically. <?php $selectplayers="SELECT * FROM players WHERE club='$club' AND team='$team'"; $player=mysql_query($selectplayers); $option_str = ''; while($rowplayer = mysql_fetch_array($player)) { $option_str .= '<option value="{you really need a value in here, probably their id}">'.$rowplayer['fname'].'</option>'; } ?> Then in your HTML <tr> <td>Prop</td> <td><select name="secondary" style="width: 150px"> <?php echo $option_str; ?> </select></td> <td>16.</td> <td><select name="secondary16" style="width: 150px"> <?php echo $option_str; ?> </select></td> </tr>
  19. I love how you blame it on Bill Gates, and in another thread someone says basically the same thing about Apple/Jobs
  20. To be fair, he does acknowledge that he's being vague and asking for anectada
×
×
  • 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.