2,070 Topics

Member Avatar for
Member Avatar for kalcio

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= …

Member Avatar for pritaeas
0
284
Member Avatar for MasterHamster

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 …

Member Avatar for Santanu.Das
0
228
Member Avatar for Odyssey2001

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 …

Member Avatar for Odyssey2001
0
667
Member Avatar for DragonMastur

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 …

Member Avatar for DragonMastur
0
513
Member Avatar for Stefce

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'])) …

Member Avatar for diafol
0
296
Member Avatar for amogh.max

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 …

Member Avatar for JamesCherrill
0
408
Member Avatar for darragh.mcmahon.5

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 …

Member Avatar for darragh.mcmahon.5
0
2K
Member Avatar for amogh.max

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 …

Member Avatar for JamesCherrill
0
183
Member Avatar for ehpratah

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 …

Member Avatar for ehpratah
0
330
Member Avatar for Kewne

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 …

Member Avatar for Kewne
0
2K
Member Avatar for nadiam

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 …

Member Avatar for diafol
0
515
Member Avatar for amogh.max

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 …

Member Avatar for JamesCherrill
0
290
Member Avatar for Niloofar24

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 …

Member Avatar for Niloofar24
0
2K
Member Avatar for SpottyBlue

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 …

Member Avatar for madCoder
0
2K
Member Avatar for davidjennings

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 …

Member Avatar for MaxMir
0
579
Member Avatar for anmol.raghuvanshi1

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)) { // …

Member Avatar for cereal
0
5K
Member Avatar for anmol.raghuvanshi1

[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 …

0
73
Member Avatar for man.chester.581

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 ???

Member Avatar for stultuske
0
205
Member Avatar for greenpotato

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 …

Member Avatar for greenpotato
0
253
Member Avatar for slavica.k

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 = …

Member Avatar for slavica.k
0
589
Member Avatar for zebnoon1

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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php include "conn.php"; $sql="SELECT * FROM login1 "; $result=$conn->query($sql); echo "<select name=cn value=''>Company Name</option>"; // list …

Member Avatar for zebnoon1
0
266
Member Avatar for hankmeyer

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> …

Member Avatar for shafakhat91
0
9K
Member Avatar for Hawk123

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 …

Member Avatar for imti321
0
520
Member Avatar for Pyler
Member Avatar for marifard

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 …

Member Avatar for marifard
0
285
Member Avatar for Dragennd

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 …

Member Avatar for Dragennd
0
469
Member Avatar for garyjohnson

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, …

Member Avatar for broj1
0
116
Member Avatar for Jake.20

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 …

Member Avatar for Taywin
0
493
Member Avatar for zebnoon1

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(); ?> …

Member Avatar for broj1
0
228
Member Avatar for Pyler

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 …

Member Avatar for mike_2000_17
0
274

The End.