Jump to content

CORT0619

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by CORT0619

  1. Yes I did for testing purposes after the fact. but excuse me if I thought this forum was for helping ppl, u don't have to be nasty.
  2. No, I set up my code like requinix where the variable is set to array.
  3. Okay, I'm having a problem with the implode function. I'm getting the error message "Invalid arguments passed" and I set $conditions equal to a string to verify that it wasn't coming up as null so I'm not sure what the problem is. My code is: if($conditions) { $query .= " WHERE " . implode(" AND ", $conditions); echo $query; }
  4. Oh ok. Well there is only one field that isn't coming from a selection list.
  5. Ok I will do that Christian. Requinix so where the code says /* escape($name) */ am I supposed to just put the variable name?
  6. I was wondering if I can do an if statement within the sql query such as "if(empty($name) || $name == '' || $name == null) {}else{name='$name'}" however I'm not sure how to write it correctly, because the sql query is embedded within php.
  7. Well an example of my current query is $query = "SELECT ticket#, date, name, phone, email, description, tech, notes FROM table WHERE name='$name' OR email='$email' OR phone='$phone' OR tech='$tech'"; But for instance if the administrator selects just the name and that's it, all of the tickets still come up because OR is used in the WHERE part of the query.
  8. Does anyone know of a way that I can use php to determine if a variable is included in a query? But the thing is that I don't think it could be a simple if statement because it's not just one variable I'm testing it's many. My problem is that I'm trying to check whether the variable has a value and if it does to then include it in the query but in the "WHERE" part of the sql query. But like I said any of the variables that have a value would also be included in the same query. Thanks.
  9. Thanks alot to everyone who responded. I'm on the right track!
  10. Well i have the opening and closing form tags as well as get as the action and search.php as the method which is the current page.
  11. So, I'm using the get request to send values input by the user through the url to another page: <a href="tms.php?ticket_num=$ticket_num&name=$name&email=$email&phone=$phone&problem=$problem&tech=$tech"><input type="submit" value="Search" /></a> however, once I click the above button the url reads: <form>http://localhost/get?ticket_num=1234&name=Tiffany+Happy&email=tharmon15%40gmail.com&phone=3523453643&problem=hardware+issue&tech=Calvin+Schaffer</form> So, I'm wondering why the url changes to get? instead of tms.php? Thanks, -Crystal.
  12. Thanks Drongo this is perfect!
  13. I'm creating a form and I don't know much javascript but I have a value that displays in a textbook before the user enters anything and I would like to clear the textbook on click but I was wondering if I could set it to only be cleared on the first click or something like that because if the user enters a value and accidentally clicks again I don't want that value to be cleared. Thanks, -Crystal.
  14. I don't think so. This pretty much allows the developer to create pages keeping the content and design separate.
  15. Does anyone know where I can get information about pagelets from? Just in case they go by another name a pagelet is where you pretty much build your entire website off of a template and it doesn't require as much code. On one page you would have the general template where you would put a variable that would maybe represent the page title, something to represent where the body would go for each page that would be based off of the name of the page, maybe an include for the navigation bar and maybe an include for the footer. Then on another page you would define what those variables were for each page. Then there would be individual pages for each page with the information that will be in the body of the page.
  16. On a site I am working on: http://loveforallpeople.org/gallery.php I have created a gallery that if you click on a picture (only the first picture is setup) the image will be enlarged. The problem I am having is that the close button isn't working properly but if you click just below the close button the box will close. However, I'm not sure where the code is located for the link. I have attached the files with the code below. Thanks, -Crystal. 18612_.zip
  17. Yes, after trying different things in photoshop and css I found out that was the problem but i'm not sure how to fix this. Thanks.
  18. I'm currently working on the following site: http://loveforallpeople.org/ and if you take a look at the sides there are white gaps between the shadows. Would this be a css issue or maybe a problem with the images? In creating this image I pretty much combined three images into 1.
  19. I understand it's just that the way that the instructor taught the only thing that really changed from page to page was the content and there was nothing that needed to be changed except for added defining the title and things of that nature but they changed from page to page dynamically.
  20. In a class I was taking the teacher taught pagelets (building php pages off of one template) however, my hard drive crashed so I lost all of my notes on this subject and I forgot exactly what I need to be able to build the pages. Does anyone know exactly how this is done or know of any resources that talks about using pagelets?
  21. Pretty much I would just like to have each item selected printed out to be sent in an email.
  22. if a user were to select multiple items in a selection list I would like to concatenate those items into a list and assign that into a variable. I know I should loop through the list but i'm not sure how I would continue to add those values to a variable.
  23. I figured it out. I had the correct code I just also had extra code. The only thing I wanted to do was have a value selected from a drop down list if the user had previously selected the item in the drop down list.
  24. I have a drop down list that contains expiration dates in the format 01/12 and if the user selected a certain drop down list I would like that same date selected. Does anyone know the code to do this? Thanks.
×
×
  • 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.