2,070 Topics
| |
I want to get data from my database table "Client",but I get this result: `[{},{},{}]` this is my code: <?php namespace OP\OPBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use OP\OPBundle\Entity\Client; class ClientAPIController extends Controller { public function indexAction() { $em = $this->getDoctrine()->getManager(); $personne = $em->getRepository('OPOPBundle:Client')->findAll(); // $personne_tab=array(); // $personne_tab['nom']=$personne->getNom(); // $personne_tab['prenom']=$personne->getPrenom(); // $personne_tab['id']=$personne->getId(); $personntojson= … | |
sorry for my english its kind of its not my primary language.. i am new with programming, and also connecting databases. i use vb2008 and ms access 2010. i watched lots of videos with binding source etc on it connecting with database and i found it easy but somehow i … | |
Hello!!I have a database and I want to display its data into a QTreeView in PyQt.The database's column has file paths.I have a problem in filling this treeview with data because it's a database and I'm not sure if it is like working with txt files and because it is … | |
I am try to make a program that alows the user to input their username and password to recive a set of options. Right now the options are to look at a file or quit. In order to complete it I need to know how to turn of the visability … | |
Hello everyone i have a little problem over here im making share button so i want to update the database on the column 'isShared' with value `1` so here is my code but it doesnt work, all the time is showing me `Already shared ticket!` Here is the code: if(isset($_POST['share'])) … | |
| I would like code to display ms access database dynamically in a jframe . here is my database.**[img]http://i.imgur.com/PtuGLnX.png?1[/img]**.I tried searching a lot but i think i need personal help in this area as this is a suppose to be dynamically updated Jframe.on the other hand i am open to suggestion … |
Hi guys Im trying to save a combobox selected item to my database but i cant get it working, it saves "user" instead of the username that is stored in the combobox, any suggestions? here's a snippett Try '----------------Sends the message------------------------------------------------------------------- MysqlConn.Open() ' opening the connection to the DB Dim … | |
| My code performs separation of "**S12*T0*0832*B*86*N1C0~**S12*T0*0832*B*86*N1C0~"...Next i need to separate data between the "*" and utimately insert it into the database(ms-Access).i would like to recieve some code lines for that. Basically now the entire string i.e"**S12*T0*0832*B*86*N1C0" is being inserted into a column.i need to insert "S12" "T0" etc into separate … |
Hi everyone i need some help down here. i am trying to connect multiple db and at the same time i want to sum the value of the column. what i have right now is this SELECT SUM(total) as branch1sales FROM icm.sales UNION SELECT sum(total) as branch2sales FROM hism.sales its … | |
I have a code: <body> <?php global $wpdb; $sql = ""; $sql = "SELECT * FROM emgAdmin"; $sql = "$sql INNER JOIN wp_posts ON wp_posts.ID = emgAdmin.ID_OfPost "; $ArrResult = $wpdb->get_results($sql); while ($emgAdminResult = mysql_fetch_object($ArrResult)) { echo($emgAdminResult->post_date); } ?> </body> and I'm getting an error that says,"Call to a member … | |
Hello. The scenario is a div and in the div are multiple cloned images, its like a floor plan thing and I would like to save that into the database and i guess i would have to convert it into a pdf or something to do so. That pdf would … | |
| here is my code and i have tokenized the data in my .txt file.I want to insert them into a database. import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.StringTokenizer; public class test1 { public static void main(String[] args) { BufferedReader br = null; try { String sCurrentLine; br = new … |
Hello everybody! Me again with an other question :) I have a file with a list and 3 functions in it; view, sort, append. I used pickle to save data changes in to an other file (films.db). Imagine you want to use this programe for the first time on your … | |
I have problems with the enable/disable of textboxes if the radio button is selected/deselected. Normally, if I select "Others" from the radio button group "Project List", the textbox is enabled. But if I select other than "Others", the textbox is not disabled. This also happens on the radio button groups … | |
Hi all, I am trying to compare output from DB The code below works on 1 check, but I require to do this on multiple products like so `if rowProduct("GRPCODE") <> "Cross Hire" or rowProduct("GRPCODE") <> "Boiler Ancillaries" then` etc but the above line does not work as I have … | |
| here is my code i want that what ever value is checked that value is inserted into database i have created database with name doctor table name diseases with 3 field id dis_name and Ans plz help its urgent <?php error_reporting(E_ALL); ini_set('display_errors', 1); require 'db.php'; if ( !empty($_POST)) { // … |
| [Click Here](http://www.drmanoj.com/articlesdisplay.php) this is type of website i have to work upon there should be list of diseases and clicking upon differnt diseases treatment can be done i have doubt for different disases differnt question are asked with check boxes i want to know how can be this achieved should … |
if i have html forms that takes data from the client with jsp code i want to save this data at mysql data base how can i do this with code ??? | |
Hi, I'm creating an Events calendar whereby i store event data in an sql database. How do I make it so that when I click on a date in the calendar, it'll display the events details happening on that day in a GridView? I've researched for super long but I … | |
is there a way to search database viwable in datagrid view by selecting rows through a combo box, values trough a text box and display resoult in label? here is the code that doesnt work: Private Sub Command1_Click() 'populate datagrid trough textboxes DBGrid1.Columns(0).Text = Text1.Text Text1 = "" DBGrid1.Columns(1).Text = … | |
Dear Friend, I create a dropdown list and want to retrieve data(company name list) from MYSQL to this dropdown list ,please, help me.no error but data does not show. code is bellow Company Name: <?php include "conn.php"; $sql="SELECT * FROM login1 "; $result=$conn->query($sql); echo "<select name=cn value=''>Company Name</option>"; // list … | |
I am Using a form to insert data into a table i have created, I receive no errors but for some reason, it states it worked, although it does not insert any data, Here is what I'm using: this is the form page: [CODE]<head> <link rel="stylesheet" href="../uploads/css/style.css" type="text/css" /> </head> … | |
Hi everyone. I want to ask a question on how to show pictures (jpg files) from access database to a form I have a database called DataBase, i have some fields there. One is called picture, and the data type is attachment. and i have the following code Dim ds … | |
Is there are an easier way of serializing a vector attribute of an object in c++ using sqlite3? | |
Hi I have three pages to upload an image or another type of work for particular client. One of these pages are to show the uploaded files if i uploaded before and it called clientwork.php, the second page is called nework.php, this is a form page to choose the new … | |
Hello all, zoidmaster here. I have a question regarding work with a MS Access database. I have the code written out from a tutorial I found online for a basic database, however all it can do with the database is read, add and delete lines from it. I'm trying to … | |
Here is a link to a list of college names and their .edu email http://pastebin.com/LND21t5F I want to take those lines of code and put the .edu part into one coloumn of a database and the name of the college into another coloumn. My database is structure like this (id, … | |
Greetings pros, Can someone give me an idea on how to create a notification like the comments on facebook? What i have in hand is; The Counter increases when the database updates. But the counter only updates when the user hovers it. So What i need to do is. When … | |
Dear friend, i have 2 tab 1) atab 2) qtab.. when i put question and options answers .. i use three forms qset.php, Ans.php and result.php here are code what i want that email of user updated after click button submit code is below ans.php <?PHP include "conn.php"; //session_start(); ?> … | |
I can serialize an object if it's class definition has attributes. So if I have an object whose class does not have attributes, do I serialize the attributes importedi in it's class definition? For example; suppose I have the following class, #ifndef BREAD_H #define BREAD_H #include "EGGS.h"; #include "FLOUR.h"; class … |
The End.