- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 98
- Posts with Upvotes
- 88
- Upvoting Members
- 58
- Downvotes Received
- 7
- Posts with Downvotes
- 7
- Downvoting Members
- 7
Re: Your code seem fine for me. Have you tried to echo out the $user and $pass before the query and compare manually to the database? | |
Re: Or we can direct use `$datetime1 = new DateTime(date("Y-m-d H:i:s",strtotime("{$row->exstdate} {$row->exstime}")));` | |
Re: From your code: Session["Items"].ToString().Split('|'); I assumed that Session["Items"] is a string where its content is get through concat the session_item_arr array with '|' Therefore the return should be String.Join("|", session_item_arr)? | |
Re: location.reload() will reload the document, while your code only need the div to be replaced. So in my opinion, can try remove those location.reload() and try again | |
Re: Had your code calling for the function with correct parameter parsed in from action_page.php? | |
Re: May refer https://www.w3schools.com/php/php_form_url_email.asp for the validate of email and url, if matched then perform the action for each of them. | |
Good day, I having a problem where creating my setting table as condition below column User_id setting effective_date effective_end_date Row 1: 1 ABC 2017-03-01 2018-02-28 Row 2: 1 DEF 2018-03-01 2019-03-01 I wish to add a constraint to block if same user add in a setting with the effective_date or … | |
Re: This is due to during the looping, textarea with same id `id="reply"` created. Try change the id into class. | |
Re: $('.pgwSlider').pgwSlider({autoSlide : false}); | |
Re: If I am in the case, I will probably wrap the question and answer in same div. Then use class instead of id, and bind the script to the class. html: <div> <div class="flip"></div> <div class="panel"></div> </div> script: $(document).ready(function(){ $(".flip").click(function(){ $(this).sibling(".panel").slideToggle("slow"); }); }); | |
Hi, recently I am taking part in a project which using data-id and data-type to perform script selection. I had read a few articles regarding the issue 'HTML5 Custom Data Attributes ' including [http://stackoverflow.com/questions/15507354/what-are-the-differences-between-using-data-attributes-and-class-id-for-javasc](http://stackoverflow.com/questions/15507354/what-are-the-differences-between-using-data-attributes-and-class-id-for-javasc) I am here asking opinions on the usage of difference in performance, tidyness of code and … | |
Re: First of all, the php code(line 106 - 108) These codes show that the return of the php code will display $name,$add and $postcode with each of the value append behind. Next I seen your ajax response(line 47 - 50) You assign the same data into each of the field … | |
Re: Use $_GET to get the variables into array, then use asort() to sort it. Next, joins the parameters using http_build_query() | |
Re: You are resize-ing the div. What can be done is set the image to having its max-width and height based on its container. .TA_selfserveprop img{ max-width: 100%; max-height: 100%; } | |
Re: As per your code(line 4-5), after getting the content from file_get_contents(), the content of the file is not stored. It should be a variable declared to store the content, then parsed the data into file_put_contents (). Is there any error/warnings displayed after the process? As if it is permission issue, … | |
Re: The code `if($exists)` only it insert the data. Shouldn't it be `if(!$exists)`? | |
Re: Use array_merge(). Detail API can refer to http://php.net/manual/en/function.array-merge.php | |
Re: http://stackoverflow.com/questions/9693758/how-do-you-bind-jquery-ui-autocomplete-using-on | |
Re: Wordpress is already built in with its own search function. Anyway, if one insist, there is some suggestion [Click Here](https://wordpress.org/support/topic/add-search-box-in-header) | |
| |
Re: Just for your info: we are not here for a job. There are a few ways to achieve the effect. If I am in the case, I will play with CSS to have all images positioned in same place, then use the onclick to hide/display certain image. Another way is … | |
Re: I had been developing the payment system in my previous employment and we do provide a few payment methods for the users to 'Go Premium'. Coding wise I will suggest MOLPOINTS as its implementation is similar to paypal and can be easily adopted into same class of payment verification in … | |
Re: Please show a more complete code, based on the code provided, we cant even know where your variables getting data from. What I can see from your code, there is problem with `<a href="'localhost/project/'.$id.'" >` | |
Re: maybe using a `<select><option>` was what you wish for, by using then onchange event from to select box using jquery/javascript, you can easily change the form's attribute. You may even prevent default action from the form submit using jquery function and based on the user's selection and then submit the … | |
| Re: You should gone throught your own array of `$this->session->userdata()` using `<pre><?php print_r($this->session->userdata()) ;?></pre>`. You `$this->session->userdata('username')` working as it is declared directly beneath `$this->session->userdata()`. But, your `'user_id'` is under `'sessiondata'` |
Re: Your problem should be the part of foreach($imggall as $key => $imgname) { $path = "./img/gallery/".$imgname; foreach($imgtemp as $key1 => $imgtemp1) { move_uploaded_file($imgtemp1, $path); } $confirm = mysqli_query($connect, "INSERT INTO gallery (image) VALUES ('$imgname')"); } I assumed the values for $imggall = $_FILES["gallery_img"]["name"]; $imgtype = $_FILES["gallery_img"]["type"]; $imgtemp = $_FILES["gallery_img"]["tmp_name"]; are … | |
Re: First of all, mysql_* is depreciated. Please consider to use mysqli_* or PDO as alternative. Please do give us details like what is the exact error caught, the information of the database structure of your `stud_class` table, especially its indexes. Through digging the provided code, what I suspected is your … | |
Re: @Lau_1 means that instead of `<? } ?>`, it should be `<?php } ?>` |