334 Posted Topics

Member Avatar for Helder_1

I modified your codes and it is working <form method="POST"> <table> <tr> <td><input name="input_servicos[0]" id="input_servicos[0]" type="checkbox" value="1" />Acolhimento</td> <td><input name="input_servicos[1]" id="input_servicos[1]" type="checkbox" value="1" />Atrium</td> <td><input name="input_servicos[2]" id="input_servicos[2]" type="checkbox" value="1" />Bar</td> </tr> </table> <input type="submit" name="submit" value="submit"/> </form> <?php if (isset($_POST['submit'])) { $input = array(); for($i = 0; $i < 36; …

Member Avatar for lps
0
781
Member Avatar for rpv_sen

Don't quite understand what you are trying to do, but from what I see, the code for country works as the code: $(document).ready(function() { $(".country").change(function() { var id=$(this).val(); var dataString = 'id='+ id; $.ajax ({ type: "POST", url: "ajax_city.php", data: dataString, cache: false, success: function(html) { $(".city").html(html); } }); }); …

Member Avatar for rpv_sen
0
2K
Member Avatar for fireburner29

Design your database with stock_id,stock_count fields, when the order placed, past the stock_id and use the query `update stock set stock = stock - 1 where stock_id = $stock_id`

Member Avatar for fireburner29
0
459
Member Avatar for singhsd2005

I think your show_cart_update.php probably is just return the array of results. What you need to do is `echo json_encode($your_result_array)` so that the data returned is in json format.

Member Avatar for diafol
0
454
Member Avatar for Neha_13

You can probably use an ajax to call for another php to store the data instead of using the code `$query = mysql_query($sql);` in the <script> tag as this code will not having anything to do with the php function mysql_query();

Member Avatar for diafol
0
310
Member Avatar for Djmann1013

Remove the code in line 12, which is `echo $row_users['username'];` and you shall get what you wish for.

Member Avatar for matrixdevuk
0
138
Member Avatar for KingGold171

I not totally understand the question though but if I not mistaken, your problem is changing the string to variable name in php? If it is, it is posible to be done by refering [Click Here](http://php.net/manual/en/language.variables.variable.php)

Member Avatar for jkon
0
209
Member Avatar for sanjay@srvmedia

Please do google it there is plenty examples online. One of it is http://php.net/manual/en/function.date.php

Member Avatar for sanjay@srvmedia
-1
149
Member Avatar for mattyd

I don't know if my approach is appropriate to the condition, but normally what I done is I will put the filter just before data inserted to database. And redirect back to the form with error message code as indicator for display the error message. As for the processes of …

Member Avatar for almostbob
0
526
Member Avatar for k_manimuthu

Maybe try this UPDATE tb2 SET data = tbl1.data FROM tb1 as 'tbl1' WHERE tb2.id = tbl1.id I done this by refering http://stackoverflow.com/questions/4920394/how-to-update-data-in-one-table-from-corresponding-data-in-another-table-in-sql

Member Avatar for k_manimuthu
0
317
Member Avatar for Niloofar24

check your coding for $sql = 'CREATE TABLE Posts( ID INT(128) UNSIGNED AUTO_INCREMENT PRIMARY KEY, Title CHAR(100), Author CHAR(100), Content CHAR(100), )'; should be $sql = 'CREATE TABLE Posts( ID INT(128) UNSIGNED AUTO_INCREMENT PRIMARY KEY, Title CHAR(100), Author CHAR(100), Content CHAR(100) )'; Don't add comma at the last field

Member Avatar for Niloofar24
0
274
Member Avatar for stokie-rich

This line of code `if(isset($_POST ['submit']))` check and run the script inside if only if the value of $_POST ['submit'] is set. But based on the current codes provided, there is no form posted the field value with name 'submit' to it. I think what you wish to is something …

Member Avatar for lps
0
189
Member Avatar for Niloofar24

Modified a little of the codes to work: 1. supporting @Niloofar24's comment on line 18. 2. add in if-else condition to process only the form is posted else just display the form. 3. the comparism `if ($password == $result) {` is used before the query being executed. 4. the queried …

Member Avatar for lps
0
592
Member Avatar for Nisha_3

mysql_query is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. Refer http://php.net/manual/en/function.mysql-query.php for alternatives

Member Avatar for lps
0
2K
Member Avatar for ramsiva

Try use array_diff <?php $a1=array("2015","03","12"); $a2=array("2015","03","13"); $result=array_diff($a1,$a2); print_r($result); // returned Array ( [2] => 12 ) ?> while <?php $a1=array("2015","03","12"); $a2=array("2015","03","12"); $result=array_diff($a1,$a2); print_r($result); // returned Array ( ) ?> then we can use if(empty($result)) to check if the array is different.

Member Avatar for ramsiva
0
338
Member Avatar for ramsiva

Actually your codes work fine. What you should do is to handle your reponse well. I ammend a little of your codes for testing. <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('.button').click(function(){ var clickBtnValue = $(this).val(); var ajaxurl = 'ajax.php', data = {'action': clickBtnValue}; $.post(ajaxurl, data, function (response) { // Response …

Member Avatar for ramsiva
0
6K
Member Avatar for subbu_1

The problem is this line `$search = $_POST['searchvalue']; ` where the link you click did not 'post' data. What you can do is to either made the 'link' become 'post' or you can include the search terms into the url and use the 'GET' instead of 'POST'

Member Avatar for lps
0
137
Member Avatar for Sophia_1

First of all, supporting @diafol's comment on the 'proper indenting' issue. Proper indenting easier the job for us. Then the problem in this program: 1. The <select> and the looping for its <options> is outside the <form> tag where it is imposible for the selection to be 'post' to $_SERVER['PHP_SELF']. …

Member Avatar for lps
0
887
Member Avatar for Niloofar24

The action is not a mandatory as if it is not set, the form will just post to same file. The problem here mostly is about the part VALUES ('$username', '$password')"; where these 2 variables is not set to anything yet. Perhaps adding these lines before the query will help. …

Member Avatar for lps
0
261
Member Avatar for vishalkumar1234

After instalation, there will be a xampp control panel, the Apache should be started before localhost can be accessed.

Member Avatar for lps
0
288
Member Avatar for sarathnair

Support @OsaMasw's comment, "simply put jquery code for slider inside your page" and change the image to the directory your image are. But, please do understand that by using php loop, the url for the image can be changed accordingly with code but if you hardcoded the image url to …

Member Avatar for diafol
0
155
Member Avatar for davy_yg

you can try to use define() if (defined($_SESSION['banner'])) { echo $_SESSION['banner']; }else{ echo "$_SESSION['banner'] not defined"; }

Member Avatar for OsaMasw
0
196
Member Avatar for klemme

I think what you wish to achieve is not posible without a little help of CSS + javascript. With the help of those 2, you can probably show all and add/remove a 'hidden' css class to the div containing submenu while the hidden css class will having the CSS styling …

Member Avatar for lps
0
121
Member Avatar for daniel.conlinjr.1

put the left sidebar before the section and assign a 'float:left' to its css style will do.

Member Avatar for lps
0
96
Member Avatar for davy_yg

if($image_width > $data2['maxwidth'] or $image_height > $data2['maxheight']) shouldn't this be like if($image_width > $data2['maxwidth'] || $image_height > $data2['maxheight'])

Member Avatar for Traevel
-1
130
Member Avatar for Shannon_1

We are not going to provide code for you to get your task done. What we do, we can only give guidance Tables you should create and the fields needed: course_attendance present course_id week_id student_id students student_id courses course_id attendance week_number_id I am sure you can googling for 'php mysql …

Member Avatar for lps
-2
216
Member Avatar for riwakawd

If I am in the case, I will do like: foreach ($banner_image as $key => $each_banner_image) { // use your $each_banner_image['image'] here }

Member Avatar for lps
0
212
Member Avatar for AntonyRayan

So, the image field in database is correct if you update other fields without updating image field? If not, maybe as you update other field, the file input type is empty and you probably update the database to empty.

Member Avatar for lps
0
151
Member Avatar for hallianonline

Please do try googling around. There are plenty of suggestions/solutions provided online. Anyway, you can refer this links http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php

Member Avatar for pritaeas
0
149
Member Avatar for engrjd91

Try this: $query_one = "SELECT * FROM 'users' WHERE 'username' = '".$username."' AND 'password' = '".$password."'";

Member Avatar for engrjd91
0
411
Member Avatar for arafath077

This problem is actually cause by the data is not in correct format. As the data provided is in {features: {forecast10day: 1 }} format while the json decode function accept {"features": {"forecast10day": 1}}

Member Avatar for arafath077
0
224
Member Avatar for AndyGraham

Wish to double confirm if the post is ask for development language, platform, or software? Wouldn't the software use depends on the platform and programming language? As far as I know, microsoft word also having a function of generating html.

Member Avatar for abrienda_noec
0
197
Member Avatar for harshedh

If I am in the case, I will use htmlentities to encode the text before having it store to database and when query out the data, decode it with html_entity_decode(). Detail on how to use the functions will be on http://php.net/manual/en/function.htmlentities.php

Member Avatar for IIM
0
205
Member Avatar for littledevils326

apparently this code is messing around: $("#list").remove($(this).attr('id')); According to http://api.jquery.com/remove/ .remove() will remove the whole dom element with the selector. In order to unset the id, I will use .attr('id',''); to set the id to empty.

Member Avatar for lps
0
213
Member Avatar for kyo.yamagata
Member Avatar for lps
0
165
Member Avatar for lps

Good day, I wish to print out the content of the files uploaded by the user from a input file type. It is passed to backend using post method. I have done some research but unforturnately I still haven't found a solution that satisfy me. The answer that are close …

Member Avatar for lps
0
162
Member Avatar for tinabina22

In my opinion, you should put your div with class="shadowblockmenu-v" to the top in body and set its css to float:left;. Then a value of margin-right and bottom will made it look good. Moreover, if you wish the content will not go below the nav bar, then you have to …

Member Avatar for tinabina22
0
2K
Member Avatar for siyajoshi

Actually that will be the part of responsive design. If you done everything then it should be look fine in any size all depend on how you style them. You may need a few media queries to achieve different view from different size. For example, viewing the site from ipad/iphone …

Member Avatar for unni6849
0
152
Member Avatar for <M/>
Member Avatar for <M/>
0
1K
Member Avatar for shhh

@godslove I tried using your codes by replacing header() with a basic echo statement, and it work fine.

Member Avatar for rotten69
0
335
Member Avatar for Jjameskf
Member Avatar for lps
0
113
Member Avatar for dan_code_guru

Based on my opinion, the main problem is not in the menu wrap. It should be the container of it. Maybe the its container is set to a fixed width.

Member Avatar for dan_code_guru
0
195
Member Avatar for <M/>

Have you double check the link structure? It should be something similar to this: <a class="logo" href="http://www.google.com"><img src="logo.png"/></a>

Member Avatar for <M/>
0
92
Member Avatar for ZER09
Member Avatar for riahc3

In my opinion, instead of establishing db connection, why don't you try to use cache to set the time. What I mean is use php to establish a cache which will expire in a certain time. Then, use the login function to assign the cache data. If the data is …

Member Avatar for Dragennd
0
391
Member Avatar for tabj

I think the main problem is that the content is long enough and there will be a white space below the footer. Normally we have our footer div set to absolute position and bottom:0 in the case.

Member Avatar for lps
0
855
Member Avatar for tobik999
Member Avatar for bettybarnes

1. what you need to do is to confirm if you have the remote access to the server. 2. the payment is actually depends on the service provider, some provide free hosting and other charge. 3. if the forum site is uploaded, the content is basically viewable by everyone provided …

Member Avatar for diafol
0
254
Member Avatar for rashibakshi
Member Avatar for JameB

Just want to know a few information, where is the location, how many page you want(normally my designed site consist of 4: home page, about us, product/service, contact us)? already having hosting plan?. If you are interested, you can probably email to me at lauodd@gmail.com. The cost is negotiable

Member Avatar for juliagarner
0
182

The End.