Jump to content

Minase

Members
  • Posts

    339
  • Joined

  • Last visited

Everything posted by Minase

  1. thank you i will look into it
  2. i did google it but nothing relevant came up
  3. hy all,im trying to create a 3d box which will have 6 faces (front,left,right,back,top,bottom) on each side i want to place an image. something like combine 3-6 images to create a 3d shape. how can i do it with jquery or other JS script? Thank you very much
  4. hy everyone,i have a div which contains some images and i want to select few images and store them into array. how can i achieve this? like when you hover over an image a button appears and say add to list. is there a plugin or so? thank you
  5. thats the trick i need to overlap the first div the second one is a menu. DIV 1 content DIV 2 menu (which stays at left,but inside div 1) when i click buttons inside div 2 div 1 content changes
  6. hi im trying to attach a div to another one so when div 1 moves the second follow the first (remaining in same position) any one knows how can i do this? Thank you
  7. Minase

    Curl

    hy all long time no see recently i did find this problem i'm trying to login to a webpage with curl ,but without success ,ofcourse the basic posting is not the problem xD but the page have a hidden field (for security) so everytime you load the page it changes so post wont work if you first use get to take the page and extract the hash from it. the page contains something like input type= hidden value=A RANDOM VALUE THAT CHANGES EVERYTIME without that value passed to post it wont login. anyone knows how can i pass it so the post will be valid? thank you
  8. no one really? please really need this.
  9. in that part of javascript just do <?php echo $variable; ?> you must assign the $variable with values like $variable = 'var x = 10'; in $variable content you should put the normal javascript content,ofcourse with modification from your database
  10. sorry but i cant edit the post above. it does seem that if i use a normal array like $arr = array("tes's","be'ss"); foreach($arr as $a) { echo addslashes($a); } it does work,but if i use an array generated by preg_match_all it doesnt... preg_match_all($a_preg,$asd,$some_array); foreach($some_array[2] as $value => $value2) { echo addslashes($value2)."<br>"; } if i print the array nothing weird,everything is fine,even the $value2 is correct but the slashes doesn't add ... :|
  11. just a simple echo with escaped data nothing more ,nothing less
  12. recently i was building a script to parse some values blablabla here is the deal foreach($variable as $a => $b) { echo addslashes($b); } that little script doesnt work... i mean the loop is fine but it doesn't add slashes :| if i print_r the array i get something like this [0] => waz'ap [1] => another's page etc you get the idea... this little problem made my wonder why it didnt work... if i add slashes to a normal string it does work so it's not a php compile error... thanks
  13. ups i already answered my own question sorry for this thread
  14. hy all im wondering how can i structure a string and use it to call an object like $test = "MyFunction".$anothervariable; return $class->$test; hope you understand what i mean thank you
  15. replace entire php file with this code only and see if it does populate sorry was in a hurry and didnt write last post good,use the code bellow <?php if (isset($_POST["request"])) { echo " <option value=\"$bed_and_breakfast\">$bed_and_breakfast</option> <option value=\"$bed_and_breakfast\">$bed_and_breakfast</option> <option value=\"$bed_and_breakfast\">$bed_and_breakfast</option> "; } ?>
  16. no we dont need that,just tested the code and it's working very good here... try changing php file to <?php if (isset($_POST["request"])) { <option value=\"$bed_and_breakfast\">$bed_and_breakfast</option> <option value=\"$bed_and_breakfast\">$bed_and_breakfast</option> <option value=\"$bed_and_breakfast\">$bed_and_breakfast</option> } ?> do you see the other menu populated??
  17. index.php find http.open("POST", 'php.php', true); // edit php.php to your actual php file path replace http.open("POST", 'your other php file path', true); // edit php.php to your actual php file path
  18. did you modify index file the value php.php with your actual php file path?? double check if needed here http.open("POST", 'php.php', true); // edit php.php to your actual php file path that line you need to modify
  19. hmm ok replace that line with this $result = dbquery("INSERT INTO ".website_forums."phpbb_users (user_id, user_type, group_id, user_permissions, user_perm_from, user_ip, user_regdate, username, username_clean, user_password, user_passchg, user_pass_convert, user_email, user_email_hash, user_birthday, user_lastvisit, user_lastmark, user_lastpost_time, user_lastpage, user_last_confirm_key, user_last_search, user_warnings, user_last_warning, user_login_attempts, user_inactive_reason, user_inactive_time, user_posts, user_lang, user_timezone, user_dst, user_dateformat, user_style, user_rank, user_colour, user_new_privmsg, user_unread_privmsg, user_last_privmsg, user_message_rules, user_full_folder, user_emailtime, user_topic_show_days, user_topic_sortby_type, user_topic_sortby_dir, user_post_show_days, user_post_sortby_type, user_post_sortby_dir, user_notify, user_notify_pm, user_notify_type, user_allow_pm, user_allow_viewonline, user_allow_viewemail, user_allow_massemail, user_options, user_avatar, user_avatar_type,user_avatar_width,user_avatar_height, user_sig, user_sig_bbcode_uid, user_sig_bbcode_bitfield, user_from, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_occ) VALUES ("mysql_insert_id()", 0, 3, '', 0,'".USER_IP."', 0, '".$user_info['user_name']."', '', '".$user_info['user_password']."', '', 0, '".$user_info['user_email']."', 0, 0, 0, 0, 'index.php', '', 0, 0 ,0, 0, 0, 0, 0, 'en', '-6.0', 0, 'D M d, Y g:i a', 13, 0, '', 0, 0, 0, 0, -3, 0, 0, 't', 'd', 0, 't', 'a', 0, 1, 0, 1, 1, 1, 1, 230271, '', 0, 64, 64, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0)"); it should work and btw you have stored user ip in a constant USER_IP ?? or is that just an undefined value??
  20. hmm lets see didnt test this but in theory it should work PHP File <?php if (isset($_POST["request"])) { include("inc/connect.inc"); $request = $_POST["request"]; $sql = "select * from clients WHERE $region = '" . $request . "' ORDER BY type ASC"; $sql_result = mysql_query($sql); if (mysql_num_rows($sql_result) ==0) { echo (" <p>An error Occured</p>\n"); } else { while ($row = mysql_fetch_array($sql_result)){ $bed_and_breakfast = $row["bed_and_breakfast"]; $type_options .= "<option value=\"$bed_and_breakfast\">$bed_and_breakfast</option>"; } } echo $type_options; } ?> and index page <? include("inc/connect.inc"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" /> <title>Example</title> <script type="text/javascript"> function get_XmlHttp() { var xmlHttp = null; if(window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } else if(window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } return xmlHttp; } function ajaxrequest(tagID,post) { var http = get_XmlHttp(); var info = 'request='+post; http.open("POST", 'php.php', true); // edit php.php to your actual php file path http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.send(info); http.onreadystatechange = function() { if (http.readyState == 4) { document.getElementById(tagID).innerHTML = http.responseText; } } } </script> </head> <body> <select name="region" style="width: 196px; margin-bottom: 2px;" class="userinput" onchange="ajaxrequest('select2','this.value')"> <? $sql = "select distinct region from clients ORDER BY region ASC"; $makes_result = mysql_query($sql); while($row = mysql_fetch_row($makes_result)) { print("<option value=\"$row[0]\">$row[0]</option>\n"); } ?> </select> <select name="type" id="select2" style="width: 196px; margin-bottom: 2px;" class="userinput"> </select> </body> </html>
  21. hmm saw some errors in your code can you post your actual full code to take a look at 1 error is that you <? echo "$type_options";?> and the variable type options isn't defined in the file that echo it i supose you have the php code in separate file right?
  22. i think it should be like this...not sure thought SELECT email_addressid , email_address , status , email_addresses_secondary.email_addressid AS spamID , email_addresses_secondary.email_address AS spamEmail , email_addresses_secondary.status AS spamStatus FROM email_addresses INNER JOIN email_addresses_secondary ON (TRIM(email_addresses_secondary.email_address) = TRIM(email_addresses.email_address)) WHERE (email_addresses_secondary.status = 1)
×
×
  • 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.