Jump to content

spiderwell

Members
  • Posts

    1,008
  • Joined

  • Last visited

Everything posted by spiderwell

  1. $modify_products_query .= " link_image='" . $link_image . "', "; becomes if($link_image <> '') $modify_products_query .= " link_image='" . $link_image . "', "; or something similar to that
  2. http://www.phpfreaks.com/tutorial/php-add-text-to-image
  3. you could get the php to output some javascript that would do the redirect, or a meta refresh tag
  4. *** EDIT post above seems to cover it better than i did *** first thing would be to create a database, and then in that database you would need a table with columns with names like the ones in the array. A unique identifier which is usually called id or perhaps in this case call it player_id, have it auto increment and as a primary key. then have other columns, use the <th> values as a guide to what you need. once you have this table ready you can go about setting up a database connection and sql statement to insert the data into the table on the database
  5. spiderwell

    PNG Issue

    i think z-index wouldnt be any good as it would then make the image in the view port lay on top of the alpha png file. I think your best bet is to put 2 divs inside the #headergrnd which are floated left and right and simulate the same idea but leaving an actual gap in the view port area . so main container is 100% and floated divs to left and right are like 25% width of their containing div( #headergrnd) and just apply the background image to the smaller divs. hope that makes sense to you
  6. I'm not up on regex enough to know if your statement rules out hythen, since those will occur in first names, Eva-Sophia for example.
  7. what have you got so far, there is not anything in your code that relates to a database. is the array $players filled from a db query?
  8. you dont appear to be actually executing the sql statement in the variable $sql, so that might be why
  9. you will need to have 2 sql statements, one that doesnt update the image column if a new image hasnt been uploaded, and the other one that does if an image is uploaded. please post the sql bit of the code
  10. flash and php can pass variables to each other, so shouldnt be too hard to do, i dont think you can see what pages are called from within a flash file in its swf format, especially if you lock it on final export. it should be enough to discourage chancers and casual attempts.
  11. try this one then: $('input:radio[name=vote_radio]:checked').val();
  12. I guess to ensure it doesnt drop down you need to be sure that the some width of both boxes will not exceed the container. max-width would go someway towards this but only if you split that 50/50 for the 2 boxes. this would not really be a satisfactory resolve. I fear some sort of javascript trickery might be the only option, or perhaps turn it into a list with floated list items?
  13. spiderwell

    HTML5

    its harder to tell what the classes are without meaningful names, which is what i would rather do , and anyone who picks up my work would probably appreciate that too. Recently i have been using the OOCSS style and find it quite good for reuseable style sheets. however i then end up with a class="floatleft bold italic curvedborder" which is almost the opposite of what you want to acheive!
  14. i think its var vote_radio = $("input#vote_radio").val();
  15. as i said, what have you given the value of the variable $some_other_value? does it match the input from the POST['couponcodenumber']
  16. have you put a value into the $some_other_value variable? <?php $coupon_code = $_POST['couponcodenumber']; if ($coupon_code == $some_other_value) { header ('Location: specialordersDiscountForm.php'); exit(); } else { header ('Location: specialorderwrongcode.php'); exit(); } ?>
  17. the if statement has only 1 = sign thats probably where its falling over.
  18. can you explain what you are trying to change exactly, nothing is "locked" if you can edit the file
  19. its not finding a file with an include/require path, can you show the code where it is including the file? have you checked the paths, relative or absolute?
  20. why not just call it whiteboard? ok so on registration my username is restricted to 5 characters and i wanted to have Nick (its my name) but i had to settle for nicky. not a good start for a slogan 'Reducing Limitations, Increasing Fun' telephone is required field which i feel isn't a required field. but it let me enter 3456 so if its important enough to be a required field, it should be checked to have a valid format. really dont like the bright red input for the login panel. never received my email to activate
  21. its looks fine to me, but im no expert. its clearly laid out with decent thumbnails, the rollover isn't that bad. what surprised me is that people pay for template in wordpress! I have always managed to find plenty free ones, but i digress with that point.
  22. theres plenty of resouces out there, and google can find most of them for you.
  23. if you can put the url into the QR code why not add a querystring parameter to it as well? like ?codeid=somethingunique thus identifying the QRcode
  24. you can do it without forms, i have used one in the list site in my signature. the hlink is to the php code that adds the like, but the jquery takes the link and deals with it, and prevents the link working by returning false: HTML <div id="like"> <a class="likelink" href="returngenlist.php?action=like&id=46"> <img height="25" border="0" onmouseout="javascript:document.thumbup.src='../images/like.png';" onmouseover="javascript:document.thumbup.src='../images/like_over.png';" alt="I like this list" src="../images/like.png" name="thumbup"> </a> </div> [/html] JQuery: the msg is the returned output from the hlink above, so it will be a number 1 above its previous state. [code] $(function() { $('.likelink').click( function() { $.get( $(this).attr('href'), function(msg) { $("#liketotal").text(msg); }); return false; // don't follow the link! }); }); I hope this helps
×
×
  • 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.