10,942 Topics

Member Avatar for
Member Avatar for jonlloydd

I am trying to code a search box that will search though a column in my database. If the search matches the column then that record will be printed in the table below. I am searching on a column that contains the county of a company record. There are no …

Member Avatar for Gideon_1
0
9K
Member Avatar for greenindia.hope

<div class="panel-body"> <div class=" col-xs-12 col-sm-12 col-md-12 col-lg-12"> <form class="form-inline" role="form" action="leadentry.php" method="POST"> <div class="form-group form-groupp"> <label>Business Name</label> <input class="form-control" type="text" name ="business_name" placeholder=""> </div><br> <div class="form-group form-groupp"> <label>Contact person</label> <input class="form-control" type="text" name="contact_person" placeholder=""> <div class="person" id="TextBox_person > <button id="add_person" type="button" value="Add more" class="btn btn-default btn-sm" placeholder=""> <span class="glyphicon …

Member Avatar for pritaeas
0
166
Member Avatar for ribrahim

Hello, I'm using fpdf library to generate pdf invoice. I manage to view the pdf invoice for one item row only. below is the code: $qry = "SELECT invitems.itemId, invitems.invoiceId, invitems.itemNumber, invitems.ChargesID, invitems.itemDesc, invitems.itemAmountO, invitems.itemAmountP, invitems.discountAmount, charges.ChargesTitle, invitems.itemqty FROM invitems LEFT JOIN charges ON invitems.ChargesID = charges.ChargesID WHERE invoiceId = …

Member Avatar for ribrahim
0
2K
Member Avatar for shankar.nstl

Good afternoon, I have a very little knowledge in php mysql. I want to make a periodical report of my company's strength of various departments. I have a html page like <!DOCTYPE html> <html> <head></head> <body> <form action="" method="post"> Department : <select name="dept"><option>admin</option><option>finance</option><option>motor dept</option><option>logistics</option></select> Designations:<select name="design"><option>clerks</option><option>executives</option><option>helpers</option><option>drivers</option></select> No. of employees:<input type="text" …

Member Avatar for tobyITguy
0
214
Member Avatar for Devi_3

$str="james//bond"; $str= mysqli_real_escape_string($con,$str); //insert query after successful insert in database it value shows as "james/bond" how I can insert exact string

Member Avatar for Gideon_1
0
280
Member Avatar for paul-lucas

Hello, I'm looking for the download solution from data on MySql to file .ical aims to import to Outlook Calendar. Do you have something to share with me? Thank a lot.

Member Avatar for diafol
0
247
Member Avatar for ramsiva

Any body help me how to use stored procedure and sample code for how to use. I dont know usage of stored procedure. Currently i am facing interview questions on stored procedure

Member Avatar for ramsiva
0
371
Member Avatar for paul-lucas

Hello, please help me sold this issue. It can read the content on the MySql table but when I change the value on the input, then click on Submit, nothing is updated on the table. I don't know why. <?php global $wpdb, $current_user; $user_id = get_current_user_id(); $sql = 'SELECT `slot`, …

Member Avatar for tobyITguy
0
254
Member Avatar for Roldan_1

I have my codes here, i cant update my database using this codes please help. if(isset($_GET['submit'])){ $servername = "localhost"; $username = "root"; $password = ""; $dbname = "elev8groupportal"; $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } //$req_code = $_POST['req_code']; …

Member Avatar for lps
0
219
Member Avatar for ribrahim

Hello, I hope that I can get an answer for this question. I have a MYSQL table for charges which contains the following fields: ChargesID, ChargesTitle, OfficialFees and ProfessionalFees. What I need is to make a dropdown list which contain ChargesTitle and upon selection to autofill the OfficialFees and ProfessionalFees. …

Member Avatar for ribrahim
0
4K
Member Avatar for SimonIoa

I have a problem with mysqli syntax. I really can't see what the problem is in this code. I dont know much about it. When i use it on a function like this public function Somefunction() { $query=mysqli_query($this->db,"SELECT title,url,img FROM table WHERE status='1' ORDER BY id DESC")or die(mysqli_error($this->db)); while($row=mysqli_fetch_array($query,MYSQLI_ASSOC)) { …

Member Avatar for SimonIoa
0
176
Member Avatar for sam1

hi, I am creating a form for user to update their details which is saved in the database. So far i can show their details in the form where i have a submit button but the updating part doesnt work(it doesnt update at all). here is the code: [CODE] <html> …

Member Avatar for diafol
0
3K
Member Avatar for Gideon_1

Hello everyone, I have been using xampp for my web app developments for quite a while now. Usually after the app development is done, I upload my files to paid hosting. Now, this is the case I'm designing a school's accounts managements software which will be used on an intranet. …

Member Avatar for broj1
0
1K
Member Avatar for AlexDada

I was wondering if someone could tell me how I could store audio files in a mysql database

Member Avatar for diafol
0
86
Member Avatar for Tatar_1

I am trying to update for some products their category in Database. But I get an error and and I dont understand where my statement is wrong. Please help me. I want to find products that have in their name a specific word and after that I want to update …

Member Avatar for pzuurveen
0
281
Member Avatar for jonlloydd

I am trying to force log out an inactive user from my CMS. The timeout value is stored in a value called PREF_TIMEOUT in my database. Ive borrowed this code and modified it a little. The code does not seem to be doing anything. Does anyone know of a better …

Member Avatar for jkon
0
294
Member Avatar for AntonyRayan

In a form, I am displaying a select box value , based on that select box value i show two more select boxes using ajax in div id. And I don not know about session, I want to save that in session using ajax . How to do?

Member Avatar for lps
0
210
Member Avatar for nimz143

Hi all :) Before i'm starting futher more about my problem. lets me tell a short description about my program. user will choose path ID (retrieve all this data from table TPATH of database SDO) that they want to delete. before the path ID would be delete, it will compare …

0
237
Member Avatar for Trabelsi

Good evening, I wanted to know if we can create a table with an array type fields with phpMyAdmin , thank you

Member Avatar for diafol
0
270
Member Avatar for cy163

I have two tables tb1 and tb2. I would like to sum up field values from two tables. How to do this using a SQL statement. tb1 Name Salary Bob 1000 Tom 2000 John 3000 Winson 4000 tb2 Name Bonus Bob 100 Tom 200 I would like to get the …

Member Avatar for rpv_sen
0
11K
Member Avatar for Trabelsi

hello I have an application run in php with mysql database that shows me a list of people in different services it occupies. I would like to make a menu that is based on the clicked service shows me the list of persons who holds this service and each new …

Member Avatar for Trabelsi
0
270
Member Avatar for AntonyRayan

Hi, In a representative table, I have fields, like, id, mark_id, rep_id rep_name, father name,etc, In this table, rep_id field is empty, And in rep_area table, the fields are like id, rep_id, dist_id,etc, in this table, rep_id has values. While editing the representative form i want to display rep_id from …

Member Avatar for e.geofrey
0
207
Member Avatar for Pelle_3

I am quite new to web development, so I naturally came to a point where I needed some help. I am making a web site where the user has to log in, and if authentication is successful, the user's data will be fetched from server and displayed on page (and …

Member Avatar for Pelle_3
0
265
Member Avatar for UK-1991

function view_report($dateval1, $dateval2, $id) { global $connection; $query_get = "SELECT * FROM presence WHERE p_date BETWEEN {$dateval1} AND {$dateval2} ORDER BY DATE"; $query_confirm = mysqli_query($connection, $query_get); if(isset($_POST["show"])) { while($record = mysqli_fetch_assoc($query_confirm)) { $output = "<tr>"; $output .= "<td>" . $record["p_date"] . "</td>"; $output .= "<td>" . $record["p_day"] . "</td>"; $output …

Member Avatar for Gideon_1
0
156
Member Avatar for Mushfik

<?php $this->user_id = $_SESSION['user_id']=$user->id; //create a database connection mysql_connect("host","user","pass") or die("Error:".mysqlerror()); //select database mysql_select_db("db"); ?> <html> <body> <link href="tab.css" rel="stylesheet" type="text/css" media="all" /> <table id="box-table-b"> <tr> <th>User ID</th> <th>Status</th> <th>I.P</th> <th>Offer Id</th> </tr> <?php $result = mysql_query("SELECT * FROM clicks where userId='$id'"); //return the array and loop through each row …

Member Avatar for Gideon_1
0
7K
Member Avatar for StuntHacks

Hey everybody, I'd like to get some specific, but not all rows of a MySQL DB into an array, like those I get if I use mysql_fetch_array(). But feth_array, fetch_row, fetch_object, etc... just returns one row. There are many search functions in the internet, so it must be possible. I …

Member Avatar for Gideon_1
0
401
Member Avatar for Ventech_IT

Hi guys i have simple problem that i can't seem to solve and has been frustrating me for some time i am a newbie when it comes to Codeigniter so be kind hahah, okay so on to my problem i have form validation on a subscription form that seems to …

Member Avatar for lorenzoDAlipio
0
391
Member Avatar for rpv_sen

Hi I am trying to read the datas from mysql using php in json. but i am not getting my expected output. Please help me to fix the issue. **code** <?php include('../config.php'); //mysql_query("SET NAMES 'utf8'"); $tdate = date('d-m-Y'); $url = 'url'; $sql = "SELECT * FROM pimage where date<='$tdate' and …

Member Avatar for rpv_sen
0
3K
Member Avatar for anil14353

I'm trying to implementing faceted search in a Jewellery store, but failed. Problem is when try to filter the attributes table. structure is as follows: Products Table: Id Product_Code Product_Name 1 ABCGOLD1GM 1 gm Gold 2 ABCGOLD2GM 2 gm Gold 3 ABCGOLD394 3.94 gm Gold Attributes Table: Id Attr_Name Alias …

Member Avatar for diafol
0
782
Member Avatar for AntonyRayan

Hi, I am displaying list of jobs that are posted by admin from mysql db. In that Table I used requisition_id (job id) , and the datatype is varchar(255), if we click the job id , it will show the description . My problem is, if it more than one …

Member Avatar for bugz313
0
190

The End.