39,393 Topics

Member Avatar for
Member Avatar for rpv_sen

Hi I am trying to clone a row with dependent dropdown. first row is working fine. Once i click add row button, if i select the project option its not working on client select option. can anyone please help me to fix. Note: I used trying using id="client[]" and id="project[]" …

Member Avatar for diafol
0
991
Member Avatar for mimiaes

Hello, everybody! I have learned a lot by reading others questions and your solutions. Now it's time to ask one myself. I have a dynamic form (with dynamically adding rows). This form has 2 normal input fields which send data to table 'orcamen' and 4 dynamic fields which are stored …

Member Avatar for diafol
0
192
Member Avatar for Raakesh399
Member Avatar for gacha23

hi guys pls help me with this problem i realy can't fix this problem <?php function protect($string){ $string = mysql_real_escape_string($string); $string = strip_tags($string); $string = addslashes($string); return $string; } function connect(){ $con = mysql_connect('127.0.0.1','root', '') or die(mysql_error()); $db = mysql_select_db("users",$con); } ?> // this is for the protect function and …

Member Avatar for zebnoon1
0
407
Member Avatar for rpv_sen

HI I need a information for the below, If i send a mail to ticket@domainname from gmail or other mail providers, it has to generate the ticket number and update in the ticket system. Please guide me on this.

Member Avatar for rpv_sen
0
150
Member Avatar for Stefce

Hello i want to make upload button so users can upload images/gifs/videos/music but i cannot understand how i can do that i fuond a code on w3schools but it just uploads the image to folder in my computer called `/uploads` i want to store the images into database which they …

Member Avatar for jkon
0
606
Member Avatar for Lonestar Jack

session start has been evoked. I need the value of $v. $key = $_SESSION['sys_var_key']; $v = $_SESSION[$key]; echo '<br>key =>'.$key; echo '<br>value =>'.$v;

Member Avatar for Gideon_1
0
175
Member Avatar for hallianonline

hello I am facing a problem with my htacess i have two php files that are used for URL rewriting first one is video.php and second one is channel.php. on homepage when I click any video its properly works for rewriting the url e.g. `mysite.com/video.php?url=1234` changes to that works properly …

0
106
Member Avatar for zebnoon1

Hello Dears Friends, I want to make aRegistration form for users, and save data of user in my database.I tried my best best but cannt Please, check my Code. <?php include "conn.php"; //database connection file if($_SERVER["REQUEST_METHOD"]=="POST"){ $username=filter_input(INPUT_POST,'uname',FILTER_SANITIZE_SPECIAL_CHARS); $sql = "SELECT username FROM usersystem WHERE username = '$username'"; $result=$conn->query($sql); if (!$result) …

Member Avatar for zebnoon1
0
346
Member Avatar for Syed Asim Ashiq

I want to integrate Paypal functionality in my website. Plz provide some easiest way to do so. or sample code.

Member Avatar for pritaeas
0
36
Member Avatar for hell hansen

Hi Guys, can someone explain me, the advantage using .html or .php Look i know exactly what each extension mean, what im trying to get is in term of website performance. I know that we use it every time but i thing no one ever think about it. Please some …

Member Avatar for hell hansen
0
189
Member Avatar for lewashby

My head is starting to hurt just thinking about all the possabilities and impossabilities of mixing html and css with php and I'd like to understand how's this works. I did a php project for a guy one time and I came close to shooting myself in the face and …

Member Avatar for almostbob
0
363
Member Avatar for Hilal2009

The following on the attachment below are the page feeds with its comments returned by facebook PHP sdk and Graph API. What I want here is to get number of comments per user on each feed. Here are the codes $helper=new FacebookRedirectLoginHelper($url); try{ $session=$helper->getSessionFromRedirect(); if(isset($session)) { $request=(new FacebookRequest($session,"GET","/357971644373038/feed"))->execute()->getGraphObject()->asArray(); $comment=$request["data"]; $counter=count($comment,1); …

Member Avatar for pritaeas
0
396
Member Avatar for OtepTheThird

Hi Php'ers, I'm new to Php. I have some issues INSERTING date to MySQL by PHP. here's my code snippet: //date format $date1 = mysqli_real_escape_string($_POST['j_avail']); $d1 = date('Y-m-d',($date1)); $date2 = mysqli_real_escape_string($_POST['j_expir']); $d2 = date('Y-m-d',($date2)); the query: $sql = "INSERT INTO table (....,j_avail,j_expir) VALUES (....,'$d1','$d2')"; the HTML: <td id="ititle">Availability :</td> <td><input …

Member Avatar for Hilal2009
0
11K
Member Avatar for connoisseur2010

I am working on a multi-level marketing (matrix type) web application for a friend. I need assistance with a code snippet for generating a tree view of the downlines and the income calculations. The width is 3 and depth is 4. Thanks

Member Avatar for pritaeas
0
175
Member Avatar for shany0786

function getImage() { $session_data = $this->session->userdata('sessiondata'); $id = $session_data['user_id']; $this->db->where('user_id',$id); $r=$this->db->get('tbl_usrs'); if($r->num_rows()>0) { foreach ($r -> result_array() as $row) { $data[] = $row; } } $r->free_result(); return $data; //print_r($data); }} //class ends hello everone i am new to php codeigniter while displaying image from database i am getting error Severity: …

Member Avatar for cereal
0
168
Member Avatar for undertaket
Member Avatar for kannasekar

Hi to all. I am a newbie to PHP programming. In my project I'm having a student registration form. In that page I've populated checkboxes from database values for students who wants to enroll more than one classes. Everything got done. Now I need to give edit option to student …

Member Avatar for kannasekar
0
185
Member Avatar for anmol.raghuvanshi1

I get sick in finding error in my code i want to display a image from database having field profile_picture which has value like upload/large/imagename.jpg but i can't able to display it main thing is nothing is printed when i echo or print from controller when i view page source …

Member Avatar for anmol.raghuvanshi1
0
185
Member Avatar for davidjennings

Good day to you all, I ham having an issue the the following error (Fatal error: Call to a member function fetch_result() on a non-object in on line 167) which is the while ($row = $result->fetch_object()) every way I try to change this another error crops up. If yo can …

Member Avatar for davidjennings
0
1K
Member Avatar for cyb3r khan

hello ....... i am new in php i have started cms for the college but i am stucking in exam module . our college requirement is like this that they would enter questions from ms word and they want that every student should get randomize questions from one another ,,, …

0
76
Member Avatar for zeeshan009

Hi All, I am new in php and i am creating an application of attendence management where i have mark 'present' or 'absent'. I can do listing with the last column of two radio button 'A' or 'P' , user will select and then finally press submit. Please tell how …

Member Avatar for gabrielcastillo
0
94
Member Avatar for shanibb

HI, I am getting this error. I am very new in php. Kindly guides me. Warning: require_once(/home/ethnicera/public_html/system/startup.php): failed to open stream: No such file or directory in /homessd/ethnicera/public_html/index.php on line 17 regards, shanibb

Member Avatar for cereal
0
105
Member Avatar for mark103

Hey guys, I need some help with my code, I have a trouble with checking on two different strings as I want to check if the string in the variable `$program_times` are equal to `PM` and `$next_program_times` are equal to `AM`. When I try it, it will show nothing and …

Member Avatar for cereal
0
150
Member Avatar for solomon_13000

I am attempting to organize my code in the following manner: if (is_ajax()) { if (isset($_POST["action"]) && !empty($_POST["action"])) { //Checks if action value exists $action = $_POST["action"]; switch($action) { //Switch case for value of action case "initMsg": initMsg_function(); break; case "initCombo": initCombo_function(); break; } } } function is_ajax() { return …

Member Avatar for minitauros
0
58
Member Avatar for kannasekar

Hi Everyone, I am a newbie to PHP programming. I just need to update the status when user click delete button. Here is the piece of code that I tried. When I echo the values of $mode and $id it prints properly. But the update query block doesn't working. <?php …

Member Avatar for kannasekar
0
474
Member Avatar for Stefce

Hello i have three colums which i want to make users can upload pictures/videos and automaticly to add to one of the colums but i cannot figure out how to do that... here is the HTML code i have <div class="main"> <div class="row"> <div class="col-md-3"> <div class="panel panel-default"> <div class="panel-body"> …

Member Avatar for pritaeas
0
182
Member Avatar for anmol.raghuvanshi1

hello, I want to store image path in database along with image name like /uploads/profilepic/name.jpg. what happening is only path is beinged saved not image name like field in my table prfile_picture has updated /uploads/profilepic/ but i want image name also after trailing slash so that i can retrieve that …

0
128
Member Avatar for Susan_4

Good day, I am a PHP beginner, but have managed to set up a shopping cart on my jewelry website (with the help of video tutorials found online). Everything is working well, but I need to add a text box to my product page where people can add the engraving …

Member Avatar for Susan_4
0
917
Member Avatar for James_43

Hi Guys, As part of an online store, I have a dropdown box where the user selects a size. If the user selects size L then the 'add to cart' button needs to link to a page different than if the user selected size M. I figured out that I …

Member Avatar for James_43
0
306

The End.