10,940 Topics
| |
hi guys. i hav this drop down menu, which i need to populate with data from one column of a particular table of MySQL dbase. i hav read a lot on this, but have not been able to come up wid any code. any and all help in this regard … | |
Hello, I want to create a favorites option for something I am working on. I have two tables. The main table where the posts are kept called "place". [CODE]+---------+--------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------+--------------+------+-----+-------------------+----------------+ | id | int(11) | NO | … | |
*********************************************** select * from table_name where RIGHT_CODE IN (SELECT GROUP_CONCAT(''',`RIGHT_CODE',''')as right_code FROM table_name GROUP BY `GRP_CODE` , `ROOT_DESC` HAVING count( `RIGHT_CODE` ) >=2 **************************************************** Actually the above query returns empty result. But the query Inside IN cluase which returns ('1','28').. If i directly pass the value inside IN clause means … | |
Thi si probably a really simple thing to solve but I am failry new to PHP and cannot find the answer anywhere. I have a search results page that calls data from a MYSQL database. All of the correct information is displaying but one of the fields contains text on … | |
Hey Im trying to connect to a remote MySQL server running on Windows using a Ubuntu client (via a local IP on the same network) and I receive this: Lost connection to MySQL server at 'reading initial communication packet', system error: 110 I imagine that it is in the host … | |
Hello, I'm trying to insert values from a form to a table (employee) on my database using prepared statements. From what I can tell the connections are fine, am able to query the database (as shown in the code to check the user type of the current logged in user). … | |
Hello, I'm normally pretty good with PHP but since updating to the latest version I can't seem to get most my script's to work. I am trying to pull two variables, from the database and count how many row's there are. [CODE] $query = mysql_query("SELECT * FROM notifications WHERE to='$username' … | |
Hi, All i want to show is the 'fr_players' to have two categories of 'fr_nations' and 'fr_clubs' and fetch the names from the foreign id... Here what i have done so far but it doesnt shows any error or return any tables either: [CODE]SELECT a.id as club_id, a.fr_name as club_name, … | |
I have a table in my database and i would like to bring up all the details where the datafield "votes" is the largest. i cannot get the fuctionality i desire. i would like a user to make a choice from the selection then have all the datafield where "votes" … | |
Hi Guys. I'm having an error "Error No. 2003. Can't connect to MySQL server on 'localhost' (10061)". I am using windows XP in my laptop. Before, I have no problem in using MySQL. I also tried to connect using MySQL Administrator, but I got the same error. Sometimes I can … | |
Hello everybody, My question is simple. I wish to develop a web site and I have been looking for web hosts and most offer MySql. At my job we use oracle, but after some searching I haven't found any great differences between them and any real reasons why I should … | |
I have a php wizard for an application that does the MySQL insert but it comes back with an error message, and I can't seem to figure out what. Any help is greatly appreciated. Insert Statement [CODE]CREATE TABLE `{dbprefix}permissions` ( `ID` bigint(20) unsigned zerofill NOT NULL AUTO_INCREMENT, `permKey` varchar(30) NOT … | |
I'm installing Drupal 6.22 to my host server but when registering the database upon install this is what I'm getting...I'll admit I'm new to coding but a fast learner. Any input is greatly appreciated. These are the errors. Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory … | |
I have a form which submits comments onto a page. When the comment is submitted I'm using jQuery to submit the variables and then return me a success message. I have also coded a way of reloading my <div> tag which contains a PHP include file, but I receive a … | |
Hi guys, I have a project that reads a json data and parse it. The program is working properly except that I cannot get its individual rows and view it in separate panels. Here is my code: [CODE] Imports System.Net.Json Public Class Form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal … | |
When I type in: "mysqladmin -u root -p" and enter the password I get reset I get the message: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) | |
So i was busy playing around with the python module MySQLdb and looking at sql injection. [CODE] import MySQLdb def hack(name): db=MySQLdb.connect('xxx','xxx','xxx','xxx') cursor=db.cursor() sql="SELECT * FROM PLAYERS WHERE NAME = %s" %(name) print sql cursor.execute(sql) print cursor.fetchall() [/CODE] i entered Hack("'pete' OR '1'='1'") results were: SELECT * FROM PLAYERS WHERE … | |
I'm working on an auction script for a client. This portion of the script pulls all the open auctions from the database and allows bidding, but they only want bidding on auction with 30 seconds left until it ends. [CODE] $query = "select * from DSI_auctions WHERE closed='0' AND suspended='0' … | |
My project scope is on android forensic. 1. After extracting all the information from an android phone, the information is saved to an excel file. Currently, I'm trying to transfer all the data saved in the excel file to MySQL database in Java. 2. After which, implement a feature that … | |
i want to send the mail , when product got expire from before and ondate and after day, in php i was used datediff mysql function with php, but if product expire date comes like 31-1-2012 , the differ value is not suit for my coding , plz help how … | |
I have written a small query. I want to create link on my php site which on click will run this script automatically and export results to an excel file. I dont want to create a page to view the results. Any help to this new bie will be very … | |
Hi all! Can anyone help me on finding out if it is possible to fill an iframe in a jsp loading text from MySQL? or a different way to do it? Thanks in advance [CODE] Example: <% Connection conn = null; Statement stmt = null; ResultSet rs = null; String … | |
this my new syntax for my new website [CODE] echo "<li class='childmenu'><a href=#equipment?id='".$row['id']."'>".$row['name']."</a></li>"; [/CODE] and this is the old one for my another website [CODE] $isi .= "<li><b><a class='topikMenu' href=reset/survey.php?id=".$row['kodetopik']."><span title='".$row['jumlahpenyurvey']." surveyor'>".$row['namatopik']."</span></a></b>"; [/CODE] I think it's same concept about give the $row[''] in the middle of html syntax, but I … | |
The attached image is the example of .xls file that I want to import those data to mysql database using Java. Any help I get will be very much appreciated. | |
Hi There are two tables. Cities and Countries Countries have Id, Country name and Short Code (Id is primary key) Cities have Country_Short_Code, City and Populations. (city is indexed) There are 5000 records maximum to be processed. PHP will give 5000 city name and its country. What is the best … | |
Hey guys.. i need some help.. lets say i have a table and i have a column called 'brand'. Then for each record, for brand name i put say Nokia, Apple etc. i want it so that i can create a php page that displays records with only brand = … | |
I have two table named:[B] Blog[/B] for displaying blogs post and [B]comments[/B] for displaying comments section for each blog post. The fields for these are as follows: [B]For Blog:[/B] 1: blog_id 2: title 3: body 4: author 5: updated [B]For Comments:[/B] 1: comments_id 2: username 3: email 4: comment_body 5: … | |
I found a way on how to code the backup for mysql database table. but I was wondering on how PMA(PHPMyAdmin) does this scenario on backing up the sql file. the one that has AUTOMATIC download to your machine. this is the simple syntax I made myself [CODE=PHP]<?php /*TOOLS YOU … | |
Hey How do I mirror a entire database to another server? Federated tables arent a option in this case as I need foreign keys. Thanks |
The End.