39,326 Topics

Member Avatar for
Member Avatar for Madiri Salman

how to update multiple update in database using checkbox with php mysql <form action="enableprofile1.php" method="post"> //user id <input type="hidden" name="id1[]" id="id1[]" value="<?php echo $sn; ?>" /> //user id //enable checkbox <input type="checkbox" name="enable[]" id="enable[]" value="1" <?php if($en=='1'){ echo 'checked';} ?> /> //enable checkbox <input type="submit" name="save" value="Save" class="fontBold"> </form>

Member Avatar for Madiri Salman
0
2K
Member Avatar for harishprakash
Member Avatar for ravi142

Hello, Need your help for this error i have search also wordpress Forms but **not find out perfect solution** for that Even not given permission of wp-admin. **Fatal Error:** Call to undefined function wp_get_current_user() in /wp-includes/class-wp.php Line no.529 Thanks

Member Avatar for minitauros
0
121
Member Avatar for PinoyDev

Good day! I have a news letter form and ajax validation on empty fields is working find.. But when I try to submit the form with all the required fields, I cannot get the data_html response from my php file? Maybe i missed some part that I cannot see t …

Member Avatar for PinoyDev
0
201
Member Avatar for emaus9

here's the html code <article> <table id="wrap"> <tr> <td> <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. Our translations are well researched and thorough. Below you will find our process of Translation in detailed.</p>--> <img src="Translation Process.jpg" alt="Translation Process" id="transprocess"> </td> …

Member Avatar for broj1
0
342
Member Avatar for emaus9

<article> <table id="wrap"> <tr> <td> <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. Our translations are well researched and thorough. Below you will find our process of Translation in detailed.</p>--> <img src="Translation Process.jpg" alt="Translation Process" id="transprocess"> </td> <td> <form id="form" action="formdata.php" …

Member Avatar for emaus9
0
379
Member Avatar for iveto89

Hi everybody, I'm using CodeIgniter framework. I use checkboxes for student_type, lecturer_type and user_type, but it can't insert in my DB table. They must be inserted in 3 different table columns. My form is: <form> <input type='checkbox' name="student_type" value='0'>Student <input type='checkbox' name="user_type" value='1'>Customer <input type='checkbox' name="lecturer_type" value='2'>Lecturer </form> And my …

Member Avatar for iveto89
0
207
Member Avatar for matrixdevuk

Hey guys. I've been putting some really good thought into this and I can't seem to figure out a good solution. What would be a logical way or sorting the following by their "number" value. $someArray = [ [ "country" => "US", "number" => 552 ], [ "country" => "GB", …

Member Avatar for matrixdevuk
0
133
Member Avatar for Whilliam

Hi guys. I've stayed away from web development for 2 years so forgive me if I'm a bit outdated. I'm planning to make a website. One of features is anti-spam registration. So, as the title says, I want to capture the client's IP Address and store it in the database. …

Member Avatar for matrixdevuk
0
275
Member Avatar for nadiam

hello i have this code: $event_id = $_POST['event_id']; $euser_id = $_POST['euser_id']; $getpic = $dbh->prepare("SELECT chair_id,chair_image,ext,posx,posy FROM cinema WHERE cuser_id = ? AND event_id = ?"); $getpic->bindParam(1, $euser_id, PDO::PARAM_INT); $getpic->bindParam(2, $event_id, PDO::PARAM_INT); $getpic->exectue(); but im getting error: `Fatal error: Call to undefined method PDOStatement::exectue() in.... on line 10`; line 10 being …

Member Avatar for nadiam
0
734
Member Avatar for OsaMasw

I've noticed recently there is a javascript tag generated in html code only while viewing page <script type="text/javascript" src="6_S3_"></script> search for it in file but couldn't find it, and am worried about this.

Member Avatar for Zvz
0
218
Member Avatar for Rabia_3
Member Avatar for imti321
0
108
Member Avatar for emaus9

index.html file <form id="form" method="post" action="formdata.php" enctype="text/plain" autocomplete="on" target="_blank"> <!-- onsubmit="return confirm('Your request have been submitted. Thank You.')" onsubmit="this.submit(); this.reset(); return false;">--> <fieldset> <legend>Get a FREE Quote</legend> <label for="flname">First and Last name:</label><input type="text" name="flname" autofocus placeholder="Please type your first and last name." size="40" required /><br> <!-- <label for="lname">Last name: </label><input …

Member Avatar for emaus9
0
194
Member Avatar for Stefce

Hello everyone have a nice day or night where ever you are so i hope i will have a great night if i fix this problem i have right here :D i have a array list with some match tips and i have a 16 input fields so i want …

Member Avatar for Stefce
0
213
Member Avatar for PinoyDev

good day! I have a php form. I have made some ajax validation on it but everytime i click the submit button it does not validate, and when I try to issue an alert command on ajax function, it returns undefined on certain variables? Here is my present code: <Form …

Member Avatar for PinoyDev
0
242
Member Avatar for VernonDozier

I have a Yahoo website that uses phpMyAdmin. I've been given the directive "Please run the script mysql_fix_privilege_tables that should be included in your MySQL server distribution to solve this problem!" I do not know how to run this script (or any script) through phpMyAdmin. I've been looking online and …

Member Avatar for Nishant_3
0
3K
Member Avatar for Jon94

Hi guys, im new here and new to web development. I want to build a marketplace for tutors where they can upload their profile and information. Students who want to find a home tutor can go there and find a suitable one by submitting a home tuition request. I want …

Member Avatar for almostbob
0
223
Member Avatar for AntonyRayan

<?php include('connect.php'); $upid=$_POST['id']; $upname=$_POST['categoryname']; $updesc=$_POST['description']; $newupid=mysql_query("update tbl_category set categoryname='$upname', description='$updesc' where id='$upid'")or die(mysql_error()); echo "<script type='text/javascript'> alert('Updated Successfully'); window.location.href='view.php';</script>"; ?> This is updated code. It works successfully. but I want to show alert box "Nothing can be updated" if no changes made. And it should have the same .

Member Avatar for pixelsoul
0
189
Member Avatar for PinoyDev

Good day! I just want a little help on how to get all data from mysqltable where month=january or feb.. etc. and year =2015 or maybe 2014 I have a table with datefield(yyyy-mm-dd) example dates data are: 2015-01-17 2015-02-17 2014-12-17 2014-10-17 2014-03-17 And I have a span list of months …

Member Avatar for PinoyDev
0
143
Member Avatar for fireburner29

sorry for my bad english... Is it possible to create a Pharmacy Portal(multi-Portals) online Pharmacy delivery system using Drupal commerce? It has multiple Pharmacy Portal (Pharmacy) in different locations which can be manageable by individual portal admins and Portal admin will have n number of medicals and medicals will have …

0
128
Member Avatar for Khoo

Currently I'm using xampp, and creating chat-app with AngularJS and integrated with Laravel framework. My AngularJS front-ends is actually placed in Laravel's views folder. And the back-ends stuff (Angular's controller, services) placed in public/app folder. I try to integrate chat-app template (front-end) into my video template. So it's actually a …

0
177
Member Avatar for Stefce

I have a little problem over here this code doesn't work well what is the problem if anyone know ? $getUsername = getUserData('Username'); $sql = "INSERT INTO `kladilnica` VALUES ('', '".$getUsername."', '".$betAmouth."', '".$gain."', '".$date."', '".$match1."', '".$match2."', '".$match3."', '".$match4."', '".$match5."', '".$match6."', '".$match7."', '".$match8."', '".$match9."', '".$match10."', '".$match11."', '".$match12."', '".$match13."', '".$match14."', '".$match15."', '".$match16."', …

Member Avatar for broj1
0
216
Member Avatar for double_cola

Hey guys. I have a function that is returning options that the user has selected. I need to get these options in an array for matching. Here is my rough code. $test = array(); $newVals = (printList($file_names)); $newArray = array_fill_keys($test, $newVals); if (in_array("this.pdf", $test, TRUE)) { echo "Match found<br>"; } …

Member Avatar for double_cola
0
214
Member Avatar for klemme

Hi all, I am using Ardent as a standalone package, together with Laravels Database package. Things are set up, and I can query just fine - But when I define my relations, I get a white screen when I try to dump the expected data. I have double checked and …

Member Avatar for diafol
0
315
Member Avatar for Stefce

Hello is there a way of checking the input field have a value but with out clicking a button, for ex. if i write any letter inside the field to give me result for example `hello` or something else...

Member Avatar for diafol
0
258
Member Avatar for fireburner29

Is there any simple PHP based backend system that has multi user and multi roles access control?

Member Avatar for fireburner29
0
504
Member Avatar for Ana_2

i want to add another function for level of access in this code. admin=3 artist=2 client=1. like that. but need some help to to that :( thankyou in advance (: <?php include('password.php'); class User extends Password{ private $_db; function __construct($db){ parent::__construct(); $this->_db = $db; } private function get_user_hash($username){ try { …

Member Avatar for fireburner29
-1
235
Member Avatar for sergio_pb

Hello guys, I create an aplicattion for read value from a PLC. When I used one function socket the php page works fine, but when i put two or more I need around 20secundes to open one php. Somene Knwos i can improve my code or sockets in php are …

Member Avatar for sergio_pb
0
572
Member Avatar for Stefce

Hello i have this code and something isn't working but i dont know what, the code it does not updating the database at all and i don't get any errors. <?php if(isset($_POST['howMuch']) && isset($_POST['where'])) { $howMuch = $_POST['howMuch']; $where = $_POST['where']; if(!empty($howMuch) && !empty($where)) { $user_mBalance = getUserData('payCheck'); if($howMuch > …

Member Avatar for broj1
0
460
Member Avatar for ernesto22

i have a problem with generating a one time password that will expire once used or after a few miute. this is what i want to do page 1. create a captcha. if verification is valid then direct me to page2 page 2. this page asks for my name or …

Member Avatar for ernesto22
0
227

The End.