Jump to content

leitning

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

leitning's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Why are you checking for the same indexes in both $_POST and $_GET ? You can use $_REQUEST to check both but you should really just do one or the other, probably $_POST if you're deleting something so someone can't just pop stuff into the URL to delete stuff
  2. Are you sure the values you're evaluating are integers? Try: $posCount = 0; foreach($array as $value) { if( is_numeric($value) && intval($value) > 0 ) $posCount++; }
  3. Not sure why that wouldn't work for you. A header redirect only works if nothing else has been sent to the browser yet, so the only thing I can think of is something in your include files or your class constructors that's posting to the browser before you get a chance to redirect. If that's the case though you should get a warning. Is it possible it's not working because you're checking the value of $auth_satus instead of $auth_status? Also should $auth_status belong to something, ie $person->auth_status? On a side note you're probably better off using individual session variables to track your member than a serialized object.
  4. Add the external boilerplate CSS file before your own: http://html5boilerplate.com/
  5. Use some positioning.
  6. I wrote a rather complicated image gallery application that I want to be able to AJAX into other pages. All the code imports fine but I need to append external CSS and JS files to the page in order for it to work. Is it possible to append an external CSS or Javascript file to the head after the initial page has been loaded? In other words to have the following script in the content that is AJAXed in? var extCSS = document.createElement('link'); extCSS.setAttribute('rel', 'stylesheet'); extCSS.setAttribute('type', 'text/css'); extCSS.setAttribute('href', 'test.css'); document.getElementsByTagName('head')[0].appendChild(extCSS);
  7. I realize I'm reiterating what's already been said but I am super curious to see how in the heck your previous programmers managed to get 130-150 queries into your search.
  8. Yeah I just rebooted into Windows and it looks fine here, too. I suppose I could just leave it since I've never had a client that uses linux but that's irritating. I guess I'll go post on a Ubuntu forum. Thanks for your time.
  9. Haha, buzzwords or not it's what I'm saying to my computer. I guess to be more specific I'm on Firefox 11.0 on Ubuntu 11.10 and it's not showing up. And when I open up the source code all the code is there, but when I open Firefoxes fancy shmancy new editor tool (which I hate, but that's another topic) it says there's no html in the elements.
  10. Yeah, as LittleGuy said SESSION variables are the way to go in most cases, but you could also use GET variables depending on the situation. For example using GET variables could allow an external link to submit to the page as well; which could either be incredibly helpful or disastrous.
  11. This may be in the wrong topic because I have no idea what's causing the problem. I have a fairly straightforward page, I'll post code below, but for some reason out of the blue Mozilla is not showing anything except my headers. It has a list and it even shows the bullet points but not the actual list elements. I can only assume that there was some update to Mozilla that I missed that is screwing things up but I have no idea. Can anyone help me? Site: http://www.leitningstrike.com/resume.php Code: <?php /** * Leitning Strike * Resume * Leitning Strike Web Development * Written by Andrew Leitheiser **/ require_once('ls.conf'); $inc = $GLOBALS['incPath']; require_once($inc . 'template.classes'); $template = new Template(); $template->header('Leitning Strike Web Development', 'Andrew Leitheiser'); ?> <br /><br /><br /><br /> <h3>&#60;bio&#62;</h3> <p>I grew up around and have always loved computers, you could say it's an interest that runs in the family. I am a native of Milwaukee, Wisconsin but have lived in Denver for a little over a year. I'm studying computer science at MSCD with a 3.0 GPA. Web work has always interested me and I got my start coding HTML sites in middle school and went on to teach myself PHP in high school. I have a decade of experience in HTML, Javascript and CSS and six years of experience with PHP and MySQL.</p> <h3>&#60;/bio&#62;</h3> <br /> <h3>&#60;coding philosophy&#62;</h3> <p>I program according to the object oriented principles of encapsulation and abstraction with an eye towards extensibility and security. This means implementing an intellligent class architecture and focusing on portability. Portability can be achieved through methods such as maintaining file paths in a configuration file so as to easily change directory structure and abstracting database operations so as to be easily modified to interact with a different database. Security can be achieved through a user management system, double-checking user-input, and making sure include files are outside of the public domain. I believe in clean, neat, well commented code.</p> <h3>&#60;/coding philosophy&#62;</h3> etc... The thing that first came to mind was mozilla did something funky to the <p> tag but it doesn't show the list elements either (not shown in the code) which are not in a <p> tag.
×
×
  • 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.