Recent content by Ilyakar

  1. I

    php help dynamic variable?

    hi, could you help me with this code: $source1 = 'hello'; $cnt = 1; $print = $source$cnt; print $print; I'm trying to dynamically build the variable $source1, but i cant seem to get it right. thanks
  2. I

    php setcookie function middle of page?

    how do i tell php to start the setcookie function which will be on top of page in the middle of the page as it is included? i know the setcookie function has to be on top of page, but how can i call it from the middle of the page?
  3. I

    php add url to keywords specified?

    hi, how can i make php add an a href="" tag to a keyword, if found?
  4. I

    check php string for repeating characters?

    hi, i am making a comment script, and i would like to know the best way to check if there are for example more than 5 of the same characters next to eachother in a string, aka spam.
  5. I

    check php string for repeating characters?

    hi, i am making a comment script, and i would like to know the best way to check if there are for example more than 5 of the same characters next to eachother in a string, aka spam.
  6. I

    check php string for repeating characters?

    hi, i am making a comment script, and i would like to know the best way to check if there are for example more than 5 of the same characters next to eachother in a string, aka spam.
  7. I

    get the form id with php?

    after i will click the submit button it will send this info: <input name="submit" type="hidden" id="submit" value="<?php print $cnt; ?>" /> where the value is the unique number for every form as i will have many forms. what php function can i use to get the value from the submit field?
  8. I

    php redirecting without changing url?

    hi, so yeah. i would like to know how to redirect the user to a different page but still keeping the same url name that the user is redirected from.
  9. I

    php redirecting without changing url?

    hi, so yeah. i would like to know how to redirect the user to a different page but still keeping the same url name that the user is redirected from.
  10. I

    how can i add the php function?

    how can i add the php function that says if the 50th charcter is a space: " " then print "abc";
  11. I

    i need a little help with some php.?

    i have a php function to add "..." at the end of text if it surpasses 50 characters. but on some texts the last character is a space (" ") so instead of it looking like: lorem ipsum ..., how can i tell it to remove the last space if the last character is a space: lorem ipsum... thanks
  12. I

    could you help me with a php form problem?

    hi i have a form that needs to access the db. everything works as it should but it keeps saying edit_btn is underfined as a php error. but the script works... could you take a look a the script for me at tell me whats wrong with it? <?php $error_msg = ""; $success_msg = ""; $title = ""...
  13. I

    php database help please?

    instead of saying <?php inlude "connectToMysql"; $id = 1; $sql_default = mysql_query("SELECT * FROM extra WHERE id='$id'"); etc etc ?> how can i get the $id variable from a form? e.g. <form> <?php $id = 1; ?> </form how can i give a form an individual id? istead of all forms (if i have...
  14. I

    please help me with php db?

    lets say i have a db with 8 cells/pieces of info and i will have about 500 rows. what is the best way to be able to edit all the 8 pieces of info on all the rows by imputing the id of the row. e.g. 5 yes i know how to do all that.. but can u give me a full code example because thats the part im...
  15. I

    what is the point of the php form id?

    hi what does the id in a form do? i know that the name can be used as a variable but what is the point of the id="" function?
Back
Top