Jump to content

seanc722

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

seanc722's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yea I was looking at that one. Inconsolata also looks nice
  2. and what exactly is it you are trying to show in the list?
  3. I am curious what var_dump($products_attributes); produces. It may even help you in seeing what is going on and debug it yourself.
  4. What is the contents of $products_attributes? Earlier in the code you have "for($i=0;$i<$products_attributes['total'];$i++)" so Im curious as to the other keys/values you have in it
  5. Eh? Again what is the contents of the $products_options_name?
  6. Have an example of the contents of the $products_options_name array?
  7. Still not 100% sure what you are trying to do but what about something like ... $total = count($products_options_name); $count = 1; echo "<ul>"; foreach($products_options_name as $currValue) { echo "<li>{$currValue}</li>"; if ($count % $maxPerList == 0 && $count != $total) { //Check if remainder is 0 or if it is the last product echo "</ul><ul>"; } $count++; } echo "</ul>";
  8. $count = 0; echo "</li>"; $count++; I feel like the $count=0; then $count++ is pointless :S $count = 0; $count = 1; $count = 0; $count = 1; Edit : Nevermind, you changed your code from the first post and it is even more derranged now.
  9. Curious.. The lines you posted that you are suppose to search, are they taken from an example or did you just mash buttons to create it?
  10. What font do you code in? Just curious as I really want to switch to a nice monospace but can't find any that are to my liking.
  11. I actually tried looking for funky characters or differences under a few different ones but I like to use Kate. ...and it was a script I wrote and uploaded (from windows) then I was going to modify it, so I downloaded it (into linux). When I ran the local script it in my browser it was throwing all kinds of errors that it did not throw on windows nor on my web server (which is hosted under Linux). Having a bad day today so thought maybe I messed something up but... doesn't seem like the case. Maybe I try and download it again and see exactly where the problem was now that I know it wasnt me >>
  12. Thank you for the responses. I didn't think there was anything wrong with the code and with you confirming I just messed around in the file a little. I didn't actually change anything but I got it to work.. I dont know what it could have been... I just replaced spaces with spaces and brackets with brackets and quotes with quotes. Maybe a different encoded character somewhere? No clue... anyways thank you.
  13. Hello, I am not sure if you can help me or if this is the place but... I am running linux and php5.3.6 I am having problems that I did not experience on my Windows box and it has to do with arrays if ($answer['correct']) { (which contains 1 or 0) is throwing Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING removing the quotes works but just curious why it is not working and if there is a setting i can change Also $answers[] = $answer[id]; is throwing Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING Thank you to anyone who might be able to help.
×
×
  • 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.