7,368 Topics
| |
hi all, i am trying a query but i am not getting the result properly.. Is there any error in my query.. [CODE]$query ="select Emp_Id,First_Name,Last_Name,Gender,Mobile_No,Email_Id,Blood_Group from Employee where"; if($empid!='') { $query1=$query . " Emp_Id like '".$empid."%' and"; // echo $query1; } if($empname!='') { $query1=$query . " First_Name like '%".$empname."%' and"; … | |
Hi, I am using Tiny MCE as a Textbox to get user generated input which can be bold, italic, underlined, lists and different alignments. When the user submits the form data the information is then saved to a variable like below: [CODE] $jobDesc = mysqli_real_escape_string ($dbc, $trimmed['txtJobProfile']); [/CODE] The I … | |
Hello I want to do that after submitting form it will insert in a table. the table has auto increment field. name of the field is ID. Now how can I get the ID number of that inserted data's ID number. for example I have a table which field are … | |
Hi. I want to have a query as below. [CODE] $sql = "SELECT amount FROM payment WHERE id = '$a'"; $result = mysql_query($sql); $row = mysql_fetch_array($result); $amount = $row['amount']; [/CODE] The value for $a variable is getting from the selection on drop down list. For example, the user select id=11, … | |
Hello. I am making a register/login function, and i want the user to be able to upload files to his account, and can later view these files. I wonder how i can make the upload script insert data in a mysql table only for the current user uploading, i dont … | |
Hello Everyone, I have triple drop down menu. I want to display the contents of the table based on the third menu selection. The code is in the link [url]http://php.pastebin.com/hgazULxi[/url] I know I need to include a onchange function to <select name="genus"> but as you can see I have a … | |
how come my real escape strings are getting entered into my table as blank entries - if i don't escape them, they enter just fine.... Any ideas? [CODE] <?php session_id($_POST['current_email']); session_start(); if (!empty($_FILES)) { $con = mysql_connect("xxx", "xxx", "xxx") or die("cannot connect"); mysql_select_db("xxx", $con) or die("cannot select DB"); $tempFile = … | |
Hi, I have this connction string: [CODE]Private conexion As New OdbcConnection("DRIVER={MySQL ODBC 5.1.50 Driver}; SERVER=localhost; DATABASE=netstore; UID=root; PASSWORD=123456; OPTION=3")[/CODE] I use: Visual Studio 2010 MySQL 5.1.50 When I try to open the connection, this error appears: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver … | |
hi, i am struggling and it will prob be a simple answer but cannot figure it out at all today. checked online but no use. my to create my view i need to compare a column to a yes or no. at the moment i have tried this but no … | |
| |
Hello I want a query to get my result I have two tables: 1) articles 2) comments 1) This is my articles table: [code] -------------------------------------- id | article_title | article_body | -------------------------------------- 1 | dummy article | some body | 2 | article2 | body2 | 3 | article3 | … | |
Iam working on a database and would like to write code to asign lecturers time ,and days of lecture automatically.I so far have this select stattement that matches the lecturers and their speciality. (select Courseunits.courseunitcode,lect_skill.courseunitcode where Courseunits.courseunitcode =lect_skill.courseunitcode;) now my problem is :how can I assign them to various days … | |
I have created a Java program which scans a given folder and creates a .txt with a list of names of all the files in that folder. I want to create a table on MYSQL server on a website and fill it with the names of the files given in … | |
Good day: I'm creating a form to write SEO into my php page head and have run into a block on the mysql_query() UPDATE function. I just cannot seem to get it to write multiple fields in a row. What I've done so far is as follows: [CODE] <? if … | |
hello everyone, i think this a rather complex question but i'll have a go. i have this output from mysql printed on a php page: user1 ------------------- week | hours worked | hours had to work | missing hours 32 | 30 | 32 | 2 user2 ------------------- week | … | |
hello,im new to hibernate and not so familiar to its query language yet. can anyone please help me to translate this mysql query to its hql counterpart. select TRANSACTION_RECORD.BOOK_TYPE,TRANSACTION_RECORD.ID, TRANSACTION_RECORD.RECORD_DATE, TRANSACTION_ACCOUNTS.ACCOUNT_NAME, TRANSACTION_ACCOUNTS.DEBIT_AMOUNT, TRANSACTION_ACCOUNTS.CREDIT_AMOUNT, TRANSACTION_ACCOUNTS.ACCOUNT_TYPE from TRANSACTION_ACCOUNTS inner join (TRANSACTION_RECORD inner join TRANSACTION_ENTRIES on TRANSACTION_RECORD.ID = TRANSACTION_ENTRIES.TRANS_ID) on TRANSACTION_ACCOUNTS.ID = TRANSACTION_ENTRIES.TRANSACOUNT_ID; … | |
Hi, I am looking to create a Jobs Board Database which will work with PHP 5 and PayPal, but I am having trouble figuring out the relationships: I know I might have a table for Company details and another one for Job Details but what do I do with regard … | |
Hello How to place a MYSQL database in my ASP.NET site? In what format I produces the file for my APP_DATA database folder to place it. How to build CONNECTION STRING to database located in APP_DATA I created a site communicates with a LOCALHOST database Now I want to import … | |
Hi! I need help with cobining two queries into one, if possible. The queries looks like this: [CODE]SELECT route, SUM(volume) AS rested_volume FROM buff WHERE route = 019 AND date = '2010-10-10';[/CODE] and... [CODE]SELECT id.RouteNo, SUM(id.PickVol) AS total_volume FROM imported_data id WHERE id.id_date = '2010-10-10' AND id.LoggCode = 40 AND … | |
I am running a form that pulls data from multiple mysql tables. However whenever the php/mysql code is in the html form tags it will not read the php/mysql nor will it read any php for exampl echo "here";. I have done this several times before so I imagine it … | |
Hi I have a dynamic page that doesnt validate because I have special characters such as "&" in the data. I was wondering if I should do a find and replace of all those ampersand signs and replace them with the safe "&" code. Thanks for any help or suggestions … | |
If I run my php file manually I am getting the output as follows: [{"org_id":"39575","orgname":"ARTHRITIS FOUNDATION - VIRGINIA CHAPTER","orgcity":"RICHMOND","orgstate":"VA"}] The php code is as folows: [code=php] <html> <body style="background-color:#33990f"> <?php // connect include require ("connect.php"); $query = "SELECT * FROM orgs WHERE org_id = 39575"; $result = mysql_query($query)or die(mysql_error()); if … | |
I have created a login system based in PHP and MySQL, where upon registration, users enter the information required in the form. However, there is another page where they can review their information once they have logged in. I am new to PHP but I would like to know the … | |
hi, i have a view in the database which queries about 6 tables to produce the results and works great. however i need to create a view based on the info from this view along with data from another table. when creating the view that queries the view and table … | |
Hello, I am looking for some fullscript/CMS ready-made which would help me to see how to articulate and merge ruby/html/MySql. I allready worked on these different languages but have difficulties into merging all of them togheter to create a website. I thank you in advance, Damiano from Nicaragua! :) | |
I use mysqldump.exe (Size 2.281 Kb, date 22-2-2010, time 18:06) I use MySQL Workbench 5.2 OSS Revision 6091 I have database [COLOR="Red"]TEST [/COLOR]with table [COLOR="red"]NAW[/COLOR] I use the i use the following statement to export table [COLOR="red"]NAW[/COLOR] [CODE] C:\mysqldump.exe --user=XXX --password=XXX --host=localhost test naw > c:\MybackupNAW.SQL [/CODE] This export file … | |
Hi i have SQL query problem im trying to get x from my database using an array the code below works but does not tell the SQL which user name to get x from so it just throws string. can anyone rewrite the below code so that it includes the … | |
Hello everyone, I have a little bit problem here.I have installed PHP version 4.4.1 and it's working well. I want to connect PHP with MySQl . I have also installed MySQL and it installed successfully. Inorder to configure PHP to work with Mysql, I did the following changes in the … | |
I was trying to backup a database with the name test. I got the error as below: ERROR 1064 (42000): You have an error in your SQL syntax; check...... This error occurred when I am executing (command line) mysql> mysqldump -u root -p password test > test.sql; How could this … | |
Hi I m using xampp server in my localhost. I m having problem. When I change value by phpmyadmin of any table. query does not give proper result. For example In contact table I have change user id number from 3 to 10 by phpmydmin. When I query by user … |
The End.