Jump to content

pwes24

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Everything posted by pwes24

  1. The mail function takes 4 arguments like this: mail($to, $subject, $message, $headers) . Please refer to the php documentation for further explanation. Just search mail().
  2. Thank you everyone. It worked perfectly!
  3. One thing the <option> tag should be in between the <select> </select> tag.
  4. I have a problem with links on my site. I have used css to define the link states(hover, active etc) but once it has been clicked, it doesn't change on rollover(hover). What am I doing wrong? Here's the code: a:link { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; } a:hover { font-family:Arial; font-size:12px; color: #333333; text-decoration: underline; } a:active { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; } a:visited { font-family:Arial; font-size:12px; color: #333333; text-decoration: none; }
  5. If its a cell table and you'd like to like show details of a product echo '<a href="products.php?cat_name='.$row['cat_name'].'">'. $row['cat_name']. '</a>'; .
  6. If they only know their name, you can use that so instead of saying 'WHERE id=$id', you say 'WHERE name=$name' and use it to get the id. Just the opposite of what you're doing now.
  7. Hello everyone, I have an upload script that uploads resumes to the server. I'd like to make sure that only ms word documents are uploaded. What is the mime type for the ms word .docx? I know the mime type for the other .doc is application/msword. Thank you.
  8. Thank you everyone. Advice was helpful.
  9. Hello, I have this website where people can search for jobs. The problem is I don't know how to use the LIKE syntax and others like WHERE `column`=$myVal. Here's my code so far. I'd like to search using more variables. How do I do this? $squery = "SELECT * FROM `jobpost` WHERE `city`='.$city.' `title` LIKE '%$keyword%' "; I'd also like to search with additional variables like state, industry. Thank you.
  10. Hello everyone, I have a drop down menu with a list of the 51 states using the <select></select> tags. The problem is when you click to select, the menu starts at the top of the screen instead of dropping down from the position of the menu element on the form. How do I correct this? Thank you in advance!
  11. I've done some research and it looks like AndyB is right. All I did to make it work is: if (isset($_post['submit_x'])). The onclick function doesnt seem to do anything. I ommitted it and the code still works fine. Thank you people!
  12. This is good. But if I'd like to change the style of content e.g fonts, size across the website, this may way down the servers. What do you think?
  13. Hello everyone. I'd like to create a user friendly admin file where one can change elements like coloron a different web page. For example, to change the background of a web page, the client just logs on to the admin panel and makes the change. How do I write code to go to the web page and update this information permanently? Your help will be apperciated.
  14. Hello everyone. I'd like to create a user friendly admin file where one can change elements like coloron a different web page. For example, to change the background of a web page, the client just logs on to the admin panel and makes the change. How do I write code to go to the web page and update this information permanently? Your help will be apperciated.
  15. I'm using a custom made submit button using the image field like this: <input name="submit" type="image" value="submit" src="images/submit_bt.png" alt="submit message" /> but somehow it does not send information. What should I do?
  16. session_start(); //if you registered any session variables, you'll need to unregister session_unregister("SESS_USERNAME"); session_unregister("SESS_USERID"); session_destroy(); //to completely destroy session variables, set the $_SESSION to an empty array! $_SESSION = array();
  17. You get user name when they login. At this time you can assign the username to a superglobal variable($_SESSION[]) which can in turn be accessed by other pages.
  18. Thank you soo much people. I can't believe I didn't catch that. My head's gonna get a beating, lol!
  19. The variable is ok: $prod_id. I'm trying to delete the row where .pro_id is same as the value of the variable $prod_id.
  20. I have a simple code that just doesnt work. Can you help me point out the problem? Thank you. $prod_id = $_GET['product_id']; $query = "DELETE * FROM `shoppingcart` WHERE `pro_id`='".$prod_id."' "; Here's the error it gives me: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM `shoppingcart` WHERE `pro_id`='1'' at line 1
  21. Thank you sooo much Barand! I got it!
  22. How do I write the values of $row['total_price'] as an array so I can apply array_sum? This is the difficult part
  23. Hello everyone. Thank you for being very helpful. I'm creating a shopping cart and I need to add the figures in the 'totals' column. I know I need to use array_sum but I don't know how to lay down the code. Can someone offer some help? Thank you!
  24. Hello everyone, I'd like to set an interval for a fuction to execute after x minutes. Anybody know how to write it? Thanks in advance!
×
×
  • 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.