Posts
 
Reputation
Joined
Last Seen
Ranked #368
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
91% Quality Score
Upvotes Received
98
Posts with Upvotes
88
Upvoting Members
58
Downvotes Received
7
Posts with Downvotes
7
Downvoting Members
7
16 Commented Posts
10 Endorsements
Ranked #180
Ranked #182
~160.81K People Reached
Favorite Tags
Member Avatar for spud91

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?

Member Avatar for GESTIC
0
1K
Member Avatar for ianhaneybs

Or we can direct use `$datetime1 = new DateTime(date("Y-m-d H:i:s",strtotime("{$row->exstdate} {$row->exstime}")));`

Member Avatar for lps
0
189
Member Avatar for Shiva_20

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)?

Member Avatar for lps
1
235
Member Avatar for Sananil

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

Member Avatar for Biiim
0
4K
Member Avatar for AngelEyes

Had your code calling for the function with correct parameter parsed in from action_page.php?

Member Avatar for Dani
0
1K
Member Avatar for charlie.kirk.140

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.

Member Avatar for knarfs
0
171
Member Avatar for lps

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 …

Member Avatar for lps
0
297
Member Avatar for Laith_2

This is due to during the looping, textarea with same id `id="reply"` created. Try change the id into class.

Member Avatar for lps
0
183
Member Avatar for Latrell_vie
Member Avatar for garyrichard

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"); }); });

Member Avatar for garyrichard
0
280
Member Avatar for lps

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 …

0
208
Member Avatar for slowlearner2010

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 …

Member Avatar for slowlearner2010
0
143
Member Avatar for malatamil

Use $_GET to get the variables into array, then use asort() to sort it. Next, joins the parameters using http_build_query()

Member Avatar for lps
0
105
Member Avatar for uttar14

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%; }

Member Avatar for lps
0
199
Member Avatar for masimies

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, …

Member Avatar for masimies
0
3K
Member Avatar for janicemurby

The code `if($exists)` only it insert the data. Shouldn't it be `if(!$exists)`?

Member Avatar for cereal
0
292
Member Avatar for shany0786
Member Avatar for shany0786

Use array_merge(). Detail API can refer to http://php.net/manual/en/function.array-merge.php

Member Avatar for lps
0
191
Member Avatar for ramsiva

http://stackoverflow.com/questions/9693758/how-do-you-bind-jquery-ui-autocomplete-using-on

Member Avatar for ramsiva
0
99
Member Avatar for Latrell_vie

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)

Member Avatar for jkon
0
389
Member Avatar for diafol
Member Avatar for hamza_8
Re: plz

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 …

Member Avatar for aaronplo
0
141
Member Avatar for Ashleigh1

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 …

Member Avatar for cpsi
0
348
Member Avatar for SimonIoa

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.'" >`

Member Avatar for SimonIoa
0
314
Member Avatar for davy_yg
Member Avatar for James_43

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 …

Member Avatar for James_43
0
303
Member Avatar for anmol.raghuvanshi1

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'`

Member Avatar for lps
0
2K
Member Avatar for UK-1991

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 …

Member Avatar for lps
0
239
Member Avatar for kannasekar

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 …

Member Avatar for kannasekar
0
294
Member Avatar for Ventech_IT
Member Avatar for lps
0
281