10,940 Topics

Member Avatar for
Member Avatar for coolvasu

Hi everybody, i have problem in my php code (it just showing nothing....means no error no results).......can anybody tell me what is wrong with this code.....i'm new to PHP........here is my code <?php try { $config=array( 'DB_USERNAME'=>'root', 'DB_PASSWORD'=>'' ); $conn=new PDO('mysql:host=localhost;dbname=scc',$config['DB_USERNAME'],$config['DB_PASSWORD']); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); echo rand_id(); } catch(Exception $e) { echo …

Member Avatar for coolvasu
0
339
Member Avatar for Tinnin

Hi all, Regarding a football (soccer) league: I am trying to find the top goalscorer for each team in the league in December 2012. Each time a player scores a new row is created in the table "Scored" with their name in it and their corresponding team and the date …

Member Avatar for Tinnin
0
204
Member Avatar for anjerodesu

Hi everyone, I would like to ask a question about MySQL. Say, I have a database like this: database 1: articles |- id |- title |- description database 2: tags |- id |- articleID |- tag I needed to search from articles.description and tags.tag and while doing so, the searched …

Member Avatar for anjerodesu
0
323
Member Avatar for manaila

I have a couple of messages which are stored in the databases. I have an app which depending on the answer that the user gives should get the right message from db and include the user answer to the record. Example: record-> **Hello ____ Thank you for your answer**. The …

Member Avatar for pritaeas
0
148
Member Avatar for hunterious.latham

***Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/crysta21/public_html/hospital.phpon line 53*** <?php /* MCCodes FREE hospital.php Rev 1.1.0c Copyright (C) 2005-2012 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the …

Member Avatar for GraficRegret
0
419
Member Avatar for earlxph8

hello, i have a basic code, and i want to fetch a data from mysql using PHP, and display in my html page; i just want to have a basic idea so i can add more details later on, like data of birth, nationality, profession etc. im planning to make …

Member Avatar for simplypixie
0
22K
Member Avatar for earlxph8

hello guys, how can i display the data from php mysql with text decoration for example underline or a dotted line css/html? thanks.

Member Avatar for earlxph8
0
725
Member Avatar for eltonpiko

hi i have some data in mysql db and i need to create a page where i have a dropdown down box with different categories. when a user select a category from a the drop down it will show data form the mysql table from that category. so how can …

Member Avatar for eltonpiko
0
189
Member Avatar for 2mhzbrain

Please show me what is the correct code to compare the DateAdded (2012-12-26 00:00:00 - its format inside MySQL) and DTPicker (01-01-2000 default format from user input) Sub FilteredQuery() cnDDR.Open "Driver={Mysql ODBC 3.51 Driver}; server=x; port=3307; database=x; user=x; password=x; OPTION= 1 + 2 + 8 + 32 + 2048 + …

Member Avatar for AndreRet
0
436
Member Avatar for showman13

Good Morning, This may seem like a very basic and simple question from someone that has been doing programming as long as I have, but it is something that has always eluded me, and I've never taken the time to ask, so here it is... When I am doing queries, …

Member Avatar for showman13
0
124
Member Avatar for chophouse

My Python environment: Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32 I have a script that has been running for months. It's a cron job and suddenly it started throwing this error: *pymysql.err.Error: (<class 'TypeError'>, TypeError("'int' does not support the buffer interface",))* I don't …

Member Avatar for chophouse
0
626
Member Avatar for islam-morad

Hello Floks, I have been working on a database design for my company which is in the filed of calibration. I have came up with thae attached design and i need you to give me feedback.

Member Avatar for drjohn
0
502
Member Avatar for showman13

Good Morning... I seem to be having a problem getting the data that I want from a single query... I have a table that contains various information on record processing it has an auto increment field called period_id also a field called max_pl_trans What I need to be able to …

Member Avatar for showman13
0
152
Member Avatar for riahc3

Man that was a mouthful! Basically I have a page which when I click on a button, a jQuery (iframe) window comes up. Here there is a combobox that should be filled with values I read from a database. Ive been reading two pages: http://openenergymonitor.org/emon/node/107 http://stackoverflow.com/questions/8019489/simple-ajax-jquery-script-how-can-i-get-information-for-each-of-the-rows-in-the But Im having problems …

Member Avatar for riahc3
0
949
Member Avatar for kenomote

Hey guys how do you filter a datagridview with a the contents of a combo box? For example i have a combobox filled with categories. btw im using a MYSQL as database

Member Avatar for artemix22
0
86
Member Avatar for joshmac

I am having a devil of a time trying to get my arrays to print right, but I am missing something. I am hoping another set of eyes can help me figure it out. I have this current function: function getArrayUsers($id) { $sql = DB::inst()->query( "SELECT * FROM " . …

Member Avatar for joshmac
0
278
Member Avatar for Ancient Dragon

![Untitled40](/attachments/small/0/Untitled40.png "align-left") I'm trying to figure out how to add a new connection to MySQL running on a different computer on my network. When I click Project --> New Data Source a list of drivers appears, but none of them are MySQL (see thumbnail) which I have previously installed. I'm …

Member Avatar for Ancient Dragon
0
276
Member Avatar for GlenRogers

This is probably simple enough to do, but I cant get it! I have a mysql table 'links' with these fields; id int 10 primary ai link varchar 200 description varchar 200 I have a links page to populate with this info. I want the desciption as the visible text. …

Member Avatar for EvolutionFallen
0
128
Member Avatar for dharmendra1986

I am using 'MYSQL' datasource in ODBC' for my project. My deployment is failing with the error "Error 1 An attempt has been made to use a data extension 'ODBC' that is either not registered for this report server or is not supported in this edition of Reporting Services. 0 …

Member Avatar for dharmendra1986
0
150
Member Avatar for showman13

Good Morning, Hopefully someone can help me with a quick answer. I have a transaction table with a 'description' column that contains a combination of the members name and some static information i.e. "'username' PURCHASE" or "'username' PAYMENT" and a 'type' column that contains various types of transactions i.e. 'FEE' …

Member Avatar for showman13
0
93
Member Avatar for teedoff

Hi, ok I have about 1600 records in a mySQL db. Many of them have a forward slash "/" in the itemName column. In my site, I am passing the itemName as a URL variable on many search forms, so obviously the forward slash is not a good naming convention …

Member Avatar for BASHA`
-1
140
Member Avatar for garyjohnson

This code is suppose to take the images array and use its value for the name of the table. When I echo the images varaible I get kids, which is what $images[3] is set to equal, but when I put it in the query the $result2 is echoed as resource …

Member Avatar for AARTI SHRIVAS
0
285
Member Avatar for mgrichen

I have got MySQL Workbench 5.244 installed. I have a server instance created (MySQL55). Everything works perfect inside the workbench. The problem is when I try to connect to the server on my PHP (version 4.2.1) file. (Pleasew find header.php and default.php below) I get the message below: Warning: Unknown …

Member Avatar for mgrichen
0
412
Member Avatar for Venter

i' saved the key names as column names in database.so i want to insert i all the values in database.with out mentioning the column names in the database. <html> <body> <form action="#" method="post"> Firstname: <input type="text" name="name"> Lastname: <input type="text" name="lname"> Age: <input type="text" name="age"> <input type="submit"> </form> </body> </html> …

Member Avatar for diafol
0
533
Member Avatar for rayidi

Dear All, I'm facing a problem when using DISTINCT in mysql. Please refer my database design below. id lang album singer title family writer song hits In my db i want distinct title and the id from the db. I'm trying the following code. But it only fetching the results …

Member Avatar for code739
0
236
Member Avatar for Webville312

I am trying to display values fetched from a MySQL database as an excel spreadsheet. Now, I have been successful to create a csv file using the code below; <?php error_reporting(0); include("includes/connect.php"); // This is the connection string to the database //Select the required records from the database $result = …

Member Avatar for Webville312
0
181
Member Avatar for anandschiru

What is the risk or problem while upgrading mysql5.1 to mysql5.5.

Member Avatar for pritaeas
0
80
Member Avatar for vizz

This is my word "नमस्कार". (It is Indian language (Marathi language) ) mysql is showing like something in image attached How to store Unicode characters to Mysql to show properly?

Member Avatar for vizz
0
1K
Member Avatar for Vingklippt

Hi. I'm trying to get my hover-effect to work , but the php seems to destroy the hoverfunction. My javascript works fine if I remove all php-code. What have I done wrong? <?php $host="*********"; // Host name $username="**********"; // Mysql username $password="geronimo"; // Mysql password $db_name="***********"; // Database name $tbl_name="****"; …

Member Avatar for Vingklippt
0
252
Member Avatar for bradly.spicer

Hey all, Looking for some quick guidance, Trying to make it so that I can have a field which presents how many customers the database has. E.g This is the DB: http://prntscr.com/o2vuf This is my php: <?PHP $id_customers = "SELECT id FROM Customers"; $Customeramount = mysql_query($id_customers) or die(mysql_error()); echo $Customeramount; …

Member Avatar for bradly.spicer
0
202

The End.