Recent content by JDL12345

  1. J

    Some PHP code that is really confusing me.?

    I have a select box that is programmed 'onchange' to submit the form it is in, but the issue I have is that there is no 'action' in the code so how does the form know where to go?! The code does work and changes all prices on the site to the other currency so it is going somewhere but I need to...
  2. J

    I have an issue with chrome.js menu not working in ie?

    Chrome works perfectly in Mozilla Firefox and Google Chrome but gives the following errors in IE: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0...
  3. J

    Issue with php implode function?

    My code is: if($_POST) { $ids=implode(",",$_POST["appro"]); $ids2=implode(",",$_POST["original"]); $pr=new Products(); $pr->prod_id=$ids; $pr->prod_id2=$ids2; $pr->updateAppro(); unset($pr); } $_POST["appro"] is an array of checkboxes. The issue I have is that whilst the code works, whenever...
  4. J

    I'm learning PHP and there is a piece of code that I don't completely understand....

    ...All help welcome!? I took the code below from a PHP book I'm reading and I understand how it all works except 1 point that confuses me a little - I don't get how the line "while ($rows=mysql_fetch_array($results))" works. At the point in the program that $rows is tested as to whether it is...
  5. J

    In PHP I want to delete multiple records that have been selected using

    check boxes. How do I loop through them? I have a list of records on a web page using PHP, and I want to add a check box so that the user can check it and click on 'update' to delete all checked records. I've added the check box named 'delete' and with a value from the database within a form...
  6. J

    I have a PHP issue that I can't seem to resolve. If anyone can help it would be...

    ...greatly appreciated. Thanks.? I've got an issue with a page that is listing news stories from a mysql db. The problem is that it only lists stories if there are 2 or more in the db. It does not list anything if there is only 1 story in the db. I've looked through the code and the code it...
  7. J

    I would like to add IM to my website so that users can chat to eachother. I would like..

    ...to use a free solution? I understand that there are paid for versions of IM software that are plugins etc. but I would like something that is opensource and therefore free that I can add to my site to offer the facility to my users to be able to chat to eachother. Something like facebook's...
Back
Top