Jump to content

irvieto

Members
  • Posts

    43
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

irvieto's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Use mysql CONCAT() function to retrieve the data already formated. You should really fix table in order to have only 1 column of type date and remove the other 3 columns. In php the dot character is the concatenation symbol. example: echo 'Foo'.'-'.'bar'; //prints "Foo-bar"
  2. where are you catching $_POST values? e.g. $my_val = $_POST['some_field']; Also, avoid the use of mysql_result. use one mysql_fetch_array call.
  3. Hi.. Would you post the setEventVars() method and in what line are you appending it..
  4. Acording to the rules of integers syntax http://php.net/manual/en/language.types.integer.php, numbers in format of 0[0-9]+ are considered in octal. So intval(00000000000001525553) is being parsed as From right to left... 3*(8^0) + 5*(8^1) + ... the rest we know.. which gives the magical number of 437099. Have a nice day!
  5. Hi. So.. let me guess what you have.. a calendar table (id, start_date, end_date, id_type_of_item, title, etc..) and a students table. I think the "id_type_of_item" (1-Grade, 2-club, 3-homework,4- God knows what else...) will solve this issue. Now, how is the relationship between students and the items? Is there only grade per student or multiple?
  6. Hi. I do not understand the question. What do you mean with erase the checkbox?
  7. Search at google for phpMailer Class. It will allow you to attach files.
  8. User a recursive function to list the files in the subdirectories.. function read_directory($dir_path){ if ($handle = opendir('.')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if( is_dir($file) ){ read_directory($file); } else { echo "$file\n"; } } } closedir($handle); } } read_directory('/path/to/my/dir'); i didnt check the syntax but it should work.
  9. Change in the previous statement for: " set v_page = concat(v_page,'$visitor_page') "
  10. in Jquery, the .html() method gives you the inner text. Example: <div id="hello">World!</div> <script type="text/javscript"> var div_content = $("#hello").html(); window.alert(div_content); /*displays: World!*/ </script>
  11. Are tryin to assign the value of $visitor_page to the column "v_page" where visitor_ip = '$visitor_ip' AND visitor_date = '$visitor_day' or just read the data from the table? In case of assign. Use an update $sql_con = "update 'my_table' set v_page='$visitor_page.' where visitor_ip = '$visitor_ip' AND visitor_date = '$visitor_day';
  12. Hi. It is a HTML-javascript issue. "page_data" is just the id of the textarea (a html object). page_data.value will give you the text. Try: onclick="saveData(<?=$page_id?>, <?=$location_id?>, <?=$attribute_id?>, page_data.value);"
×
×
  • 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.