- 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
334 Posted Topics
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 } ?>` | |
Re: First of all, had you check your database if last data that matching the condition is having values? As from what I can see from your code, for every rows of data the `mysqli_fetch_assoc` fetch, you will replace your $h1,$h2 etc with the newly fetched data. So, if the last … ![]() | |
Re: First of all, mysql_* is already depreciated. It is encourraged to use the PDO or mysqli_* instead. For you problem, here is what doesn't work in php: `for( $i=0 ; $i<sizeof($checkbox1); $i++)` In php, we use `for( $i=0 ; $i<count($checkbox1); $i++)` and the query `$query = "insert into stud_class (class_id) … | |
Re: http://php.net/manual/en/function.filter-input.php | |
Re: Your array structure is having problem where the error `Notice: Undefined offset: 3 in C:\xampp\htdocs\latihan2\print4.php on line 44` is actually informing that you try to assign a value into Array[application] and probably you not defined the veriable 'application'. I assume your array creation is in text pointer. Then the array … | |
Re: If you wish all elements to be in one place regardless the resolution, then don't bother to use percentage to style your page, simply use fixed value. | |
Re: One thing I wanna ask: are you defining all the functions in a class? or just a normal php and inplement the functions. If it is second choice, then the problem might be that when you calling message() function, the session may not be started as you put the session_start() … ![]() | |
Re: Your question is about 'I want to style only a span using javascript'. I assume your code maybe consist of more than one span. Eg. (copied from @diafol) <div id="sometext"> <span>Let's</span> <span> do something...</span> </div> so, what you wisht to do in jquery to style only the desired span, Eg, … ![]() | |
Re: If you means to directly made the connection from jquery to database, then from my understanding, it cannot be done or not encaurage to be done. As jquery script is a client based scripting, so it is too risky to connect using jquery. However, we can always using a ajax … | |
Re: play with css `vertical-align: middle;` | |
Re: Based on my experience, you would probably set the body with a fixed width like 1000px with margin:auto; where it will fixed the content width to 1000px and centered. With this, the layout will not be distorded due to your float:left condition. If you wish to be more flexible, then … | |
Re: Maybe a little more google shall answer your question. Here is an example: http://stackoverflow.com/questions/3611682/facebook-graph-api-how-to-get-users-email Instead of storing 123456789@fbconnect.apps.sgcdn.net, I suggest your site to store the email used to register the fb account. | |
Re: Wrap your .change event in `$(document).ready();`. As you code your script before the body, the script loaded before the DOM is ready and causing the issue. Another way is moving the javascript to end of the file before closing the body. | |
Re: Have you include the jquery library before your scriptings? View the console tab in developer tools(F12) to see if any include is having error/warnings. | |
Re: Have you tried to echo the variable holding the description before put it into the `title` attribute? | |
Re: Hehe, this is a bit tricky that needs some help from jquery/ajax. Here is a few solution: 1. Ajax Your existing code: <select name="dept_id" id="dept_id" onChange="showCompany(this.value);"> <option value="">--Select--</option> <?php $sql1 = "select * from dept"; $sql_row1 = mysql_query($sql1); while ($sql_res1 = mysql_fetch_assoc($sql_row1)) { ?> <option value="<?php echo $sql_res1["dept_id"]; ?>" <?php … | |
Re: 1. Try google for solutions/explaination on why the error occurs by search the key word like 'Notice: unserialize(): Error at offset'. There is plenty of explaination found. Eg. http://stackoverflow.com/questions/10152904/unserialize-function-unserialize-error-at-offset 2. Show us the code and the solution you tried if you still failed to solve the problem. | |
Re: Probably the php is having error in the line `$subject = @trim(stripslashes($_POST['subject'])); ` where your form is not having the post for 'subject' area. | |
Re: Does your meaning of 'getting user infomation' refered to the basic information? if it is basic user info, then you can direct get data from graph.facebook.com/username and json_decode() the data. | |
Re: Just want to be confirm, is your html file is in the root directory? If yes, then try `<link rel="stylesheet" type="text/css" href="./resources/css/docTech25Banner.css">` | |
Re: May I know why you just backup your wp_content folder? Normally I will just dump the whole folder containing my wordpress sites to new path, then the database I will export as .sql and edit with notepad(or what ever editing tools) replacing the url to the new path url. |
The End.