10,940 Topics

Member Avatar for
Member Avatar for dschuett

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

Member Avatar for dschuett
0
134
Member Avatar for smariano77

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 …

Member Avatar for smariano77
0
85
Member Avatar for Prorgamme

I have this simple script: [PHP]<?php // MySQL Connection mysql_connect($sql['host'],$sql['user'],$sql['pass']) or die("Unable to connect to SQL server"); mysql_select_db($sql['data']) or die("Unable to find DB"); // Getting rows $select = "SELECT * FROM table WHERE uid = '". $_POST['uid'] ."'"; $data = mysql_db_query($sql['data'], $select) or die("Select Failed!"); // Query results $row = …

Member Avatar for Hourglass
0
268
Member Avatar for andydeans

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 …

Member Avatar for andydeans
0
84
Member Avatar for ubi_ct83
Member Avatar for AndreRet
0
78
Member Avatar for bimaljr

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

Member Avatar for rch1231
0
184
Member Avatar for Puster

Hello, Can somebody help me to make a logon script? I want to make this script like that I add useres manually, in the database. And when people are going to the admin content it will show up: Pleas Login! Username: Password: Forgotten your password? click her! (And when the …

Member Avatar for P0lT10n
0
56
Member Avatar for quests

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 …

0
48
Member Avatar for priteshdesai

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 …

0
63
Member Avatar for dennishall

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 …

Member Avatar for dennishall
0
290
Member Avatar for pietpiraat

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

Member Avatar for pietpiraat
0
145
Member Avatar for CodeBoy101

Hello everyone, I'm working on a project where I wish to find out who the instructor for a particular course is. The user is has to input the course name and course id for that course id then the script will search for the instructor. If the value returned is …

Member Avatar for atikahuk
0
176
Member Avatar for bugmenot

Hi I have created a simple search form to search a movies database on my page using jsp and mysql, how can I make a download link after results have been extracted in a result page. Thanks for your nice reply.

Member Avatar for atikahuk
0
89
Member Avatar for _aGt_

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

0
124
Member Avatar for SunnySideUp

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 …

Member Avatar for SunnySideUp
0
110
Member Avatar for whiteyoh

Hi all, the following script will not increment (2nd level), but updates fine at level 1 (COMPLETED POSITIVE). can anybody see why? regards [code] if ($_REQUEST['16emp'] == 'Yes'){ $flag = $_REQUEST['flag']; $flag2 = 'COMPLETED POSITIVE'; mysql_query("UPDATE accounts SET `flag` = '$flag2' WHERE `client_id`='$clientid'") or die(mysql_error()); } else if ($_REQUEST['16emp'] == …

Member Avatar for i-hate-blue
0
78
Member Avatar for arjen

hello guys.. Can someone give me a code on storing path image and retrieve path into image using mysql database and vb.net/vs 2008. I only know how to make a browse button and get the image into hard disk and display it in picturebox. I'm done with the the problem …

Member Avatar for lolafuertes
0
943
Member Avatar for anetta

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 …

Member Avatar for anetta
0
280
Member Avatar for rikz

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 …

Member Avatar for rch1231
0
94
Member Avatar for camerondane

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 …

Member Avatar for camerondane
0
194
Member Avatar for teedoff

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 "&amp;" code. Thanks for any help or suggestions …

Member Avatar for griswolf
0
187
Member Avatar for Suhacini

[code] <?php include("conn.php"); include("session.php"); ?> <html> <head> <title></title> </head> <body> <form action="user.php" method="post"> <table border="0" align="center" width="100%"> <tr> <td align="center"><a href="editevent.php">Edit Event</a></td> <td align="center"><a href="addevent.php">Add Event</a></td> <td align="right"><a href="logout.php">Logout</a></td> </tr> <tr> <td colspan="3"><b>List of events</b></td></tr> <?php $str="SELECT * FROM eventdesc "; $res=mysql_query($str); if(mysql_num_rows($res)!=0) { while($data=mysql_fetch_array($res,MYSQL_ASSOC)) { echo '<tr> <td>'. $data['eventdesc'].'</td> …

Member Avatar for pamdooley
0
2K
Member Avatar for Capt Spaghetti

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 …

0
89
Member Avatar for gchurch

hey i despritly need some help getting this phpmyAdmin up and running again. i'm using wamp with mysql but can't get into my PhpmyAdmin for some reason. i've uninstalled it and re-installed it. the extension mysql.dll is there in the php.ini file uncommented the php extension for mysql is checked …

Member Avatar for paulrajj
0
215
Member Avatar for GTRMcLaren

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 …

Member Avatar for GTRMcLaren
0
2K
Member Avatar for Puster

Hello, I am starting to freak out with my php codes because it is just a mess and i get an error when i close my php tag. This php file is going to upload an image and set a name,description, and signature from the player, but i get this …

Member Avatar for Puster
0
101
Member Avatar for ddellostritto

Hello all - I'm having some trouble UPDATING my mysql using php. I'm working on a event planning system; the user can click on the company to see a small report that has some areas which must be editable (payment status, etc.). I get these values into a form to …

Member Avatar for ddellostritto
0
102
Member Avatar for andydeans

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 …

Member Avatar for andydeans
0
118
Member Avatar for dammmm

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! :)

0
67
Member Avatar for dre-logics

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 …

Member Avatar for dre-logics
0
833

The End.