Jump to content

eits

Members
  • Posts

    72
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.exclusiveuse.com

Profile Information

  • Gender
    Not Telling

eits's Achievements

Member

Member (2/5)

0

Reputation

  1. Was looking for opinions on PHP calendar options - so it isn't the wrong section is it.
  2. Hi, I'm looking for some kind of opensource calendar which offers VERY simple functionality (basically just displays a calender in month view), in a database I have a table called duedates... if a duedate is found in the database it will display the correlating ID (called dueID) within that square. Anybody know of any opensource calender that I could modify to do the trick? All of the ones I've found so far seem to have about eight different pages which is definitely overkill for what I'd want. I'm not looking for any backend, just pull dates out of my db. Thankyou in advance !!!
  3. An array within an array within an array... Yes... I see whats happened sort of! Thankyou for your help, I'll need an hour or so to see if I can get this to work lol.. I'll keep you posted! Again, Many thanks!
  4. Hi, I'm having troubles with that, but I think its because I can only display by 'name' not by anything deeper in? For example: foreach($array as $user) { echo $user['name']. "<br />"; } will print all names, but if I try to do: foreach($array as $rating) { echo $rating['rating']. "<br />"; } It doesn't? When I print_r on the array it displays like this: Array ( [0] => Array ( [Name] => SimpleXMLElement Object ( [0] => Marcus ) [0] => Array ( [Version] => SimpleXMLElement Object ( [0] => 14.03 ) [0] => Array ( [Rating] => SimpleXMLElement Object ( [0] => 17 ) ) ) )
  5. Hi, I create both arrays like so (within a foreach loop): $array[] = array("Name" => $name, array("Version" => $version, array("Rating" => $rating))); } Also, I am getting array_replace is an unrecognised function? Is this redundant in newer versions of PHP?
  6. You can get a version of XAMPP I think which'll run from USB.
  7. Hi, I have two arrays: array1 = name, version, rating array2 = name, version, rating within both arrays are the same variants of name and version except the rating will be different. I am looking for a way to be able to merge these arrays and create a new array which would look like this: newarray[] = name, version, rating1, rating2 Can anybody please help???
  8. A bit of both works great for me.
  9. OK - this is what I want it to look like after they are merged! Array ( [0] => Array ( [Name] => Array ( [0] => SimpleXMLElement Object ( [0] => SP Press ) ) [0] => Array ( [Version] => Array ( [0] => SimpleXMLElement Object ( [0] => 14 ) ) [0] => Array ( [Array1Rating] => Array ( [0] => SimpleXMLElement Object ( [0] => 80 ) ) [0] => Array ( [Array2Rating] => Array ( [0] => SimpleXMLElement Object ( [0] => 50 ) ) ) ) ) )
  10. Hi! I'm really stuck trying to work out how to merge an array like so...... I have two arrays, both have three data values (name, version, rating) in it. In each of the arrays will be data which matches (the name and version). Is there a function which would help me merge these arrays so that I could have the rating from array2 appended onto array1.. something like this: Array ( [0] => Array ( [Name] => Array ( [0] => SimpleXMLElement Object ( [0] => SP Press ) ) [0] => Array ( [Version] => Array ( [0] => SimpleXMLElement Object ( [0] => 14.00 ) ) [0] => Array ( [Array1Rating] => Array ( [0] => SimpleXMLElement Object ( [0] => Good ) ) [0] => Array ( [Array2Rating] => Array ( [0] => SimpleXMLElement Object ( [0] => Good ) ) ) ) ) ) Sorry if this isn't clear, please ask if you need any elaboration!
  11. hi i'm using this function function getOptionValues($string, $first, $second) { $pattern = "/<$first(.*?)$second/"; preg_match_all($pattern, $string, $matches); print_r($matches); }
  12. Hi, I'm using preg_match_all to create an array. (Each time an instance of text appears on a webpage it adds it to the array). I think what I'm ending up with is a double dimensional array. If I print_r I get this before the data I want (if I have ten items in the array, there will be 10 blanks: Array ( [0] => Array ( [0] => [1] => [2] => [3] => [4] => [5] => [6] => [7] => [8] => [9] => [10] => ) [1] => Array ( [0] => Can anybody please tell me how I can remove these from my array?
  13. Hi, I'm using the dompdf class for creating pdfs from a php page. The php page gets some dynamic data from a database depending on what the id is at the end of the page. (e.g. pdf.php?id=1). However, when I try to do this I get the following error: Warning: DOMXPath::query() [domxpath.query]: Invalid expression in D:\Websites\pdf\include\stylesheet.cls.php on line 573 Warning: DOMXPath::query() [domxpath.query]: Invalid expression in D:\Websites\pdf\include\stylesheet.cls.php on line 573 Warning: Invalid argument supplied for foreach() in D:\Websites\pdf\include\stylesheet.cls.php on line 575 However if I remove the variable at the end it makes a PDF, just not with the data that I require. I have had this working before but just cant for the life of me work out why this isn't happening, has anybody got any ideas? Thanks
  14. Thankyou very much I really appreciate it - will try it in a little while. I should really take some time to learn Javascript, think 'Procrastination' is the keyword there though!
  15. I have the following code which checks a disclaimer box is ticked and also checks a field (productuse) has some text in. I also have a field called custemail which I want to validate is an email address otherwise return false. Could somebody please help me add the appropriate 'else if' statement to do this, I've tried several scripts out there but just can't get them to work with this current script: <script LANGUAGE="JavaScript"> <!-- function validate(frm) { // // Check the Email field to see if any characters were entered // if (frm.productuse.value.length == 0) { alert("Please tell us why you require this product.") frm.productuse.focus() return false } else if (frm.disclaimer.checked == false) { alert("You must read the disclaimer before requesting a quote.") frm.disclaimer.focus() return false } } //--> </SCRIPT> Sorry, I'm a complete javascript n00b!
×
×
  • 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.