1. Invalid Arguement

    Date: 06/06/05 (SQL Server)    Keywords: sql

    Hi Gang -

    trying to run a make-table query. Can someone look at the SQL and tell me why access keeps returning an "Invalid Arguement" error.
    Thanks in advance




    SELECT BI.NRS_STATION, BI.BED_ABBREV, PHM_ORDERS.ADDL_SIG_1, PHM_ORDERS.ADDL_SIG_2, PHM_ORDERS.ADDL_SIG_3, PHM_ORDERS.ADDL_SIG_4, BI.PTNAME, BI.PAT_NUM, BI.PTSEX, BI.PTAGE, BI.PTMEDREC, BI.ITN, BI.PTCLASS, BI.ATTDOCNU, BI.ATTDOCNA, BI.SITE, PHM_ORDERS.PMP, PHM_ORDERS.MED_IV, PHM_ORDERS.COMPONENT_TYPE, PHM_ORDERS.DOSE, PHM_ORDERS.START_DATE, PHM_ORDERS.STOP_DATE, PHM_ORDERS.STOP_TIME, PHM_ORDERS.LATIN_DIR_ABBR, PHM_ORDERS.FREQUENCY, PHM_ORDERS.ROUTE, PHM_ORDERS.DR_NO, PHM_ORDERS.DR_NAME, PHM_ORDERS.GENERIC_NAME, PHM_ORDERS.DOSAGE_FORM, PHM_ORDERS.DRUG_CODE, PHM_ORDERS.SOL_VOLUME, PHM_ORDERS.RATE, PHM_ORDERS.RUN_IN_TIME, PHM_ORDERS.VALIDATED_BY, PHM_ORDERS.IV_METHOD, PHM_ORDERS.CANCELLED, PHM_ORDERS.SUSPEND_DATE, PHM_ORDERS.SUSPEND_TIME, PHM_ORDERS.RESUME_DATE, PHM_ORDERS.RESUME_TIME, PHM_ORDERS.STRENGTH, PHM_ORDERS.ACTIVE_COMPONENT, PHM_ORDERS.ACTIVE_UB, PHM_ORDERS.SUSPENDED, PHM_ORDERS.STOPPED INTO mart
    FROM BI INNER JOIN PHM_ORDERS ON BI.ITN = PHM_ORDERS.ITN
    WHERE (((BI.PAT_NUM)=[Forms]![frm_mar]![ctlptno]) AND ((BI.ITN)>"0") AND ((PHM_ORDERS.VALIDATED_BY)<>"") AND ((PHM_ORDERS.ACTIVE_COMPONENT)="YES") AND ((PHM_ORDERS.ACTIVE_UB)<>"NO") AND ((PHM_ORDERS.SUSPENDED)="NO") AND ((PHM_ORDERS.STOPPED)="NO"));

    Source: http://www.livejournal.com/community/sqlserver/27880.html

  2. The PHP/mySQL issue

    Date: 06/07/05 (Web Development)    Keywords: php, mysql, sql, apache

    Here's what I have
    Apache 1.3.33
    PHP 5.0.4
    MySQL 4.1.12a
    Operating System: Windows 98

    The error that I got when I tried using mysql_connect() on a php page:

    Fatal error: Call to undefined function mysql_connect()

    Things that I have done so far:
    Apache, mySQL, and PHP are in directories on the C drive, named accordingly

    in php.ini, this is what I changed (change in italics)
    doc_root = "C:\Apache\htdocs"
    extension_dir "C:\php\ext"

    Removed the ";" in front of extension = php_mysql.dll (Is there supposed to be quotation marks on this line?)

    Saved a copy of php.ini (after these changes) in the C:\Windows directory
    Saved copies of c:\php\libmysql.dll & c:\php\ext\php_mysql.dll to the C:\Windows directory


    --------------
    What else am I missing?

    Source: http://www.livejournal.com/community/webdev/206980.html

  3. The PHP/mySQL issue

    Date: 06/07/05 (PHP Development)    Keywords: php, mysql, sql, apache

    Here's what I have
    Apache 1.3.33
    PHP 5.0.4
    MySQL 4.1.12a
    Operating System: Windows 98

    The error that I got when I tried using mysql_connect() on a php page:

    Fatal error: Call to undefined function mysql_connect()

    Things that I have done so far:
    Apache, mySQL, and PHP are in directories on the C drive, named accordingly

    in php.ini, this is what I changed (change in italics)
    doc_root = "C:\Apache\htdocs"
    extension_dir "C:\php\ext"

    Removed the ";" in front of extension = php_mysql.dll (Is there supposed to be quotation marks on this line?)

    Saved a copy of php.ini (after these changes) in the C:\Windows directory
    Saved copies of c:\php\libmysql.dll & c:\php\ext\php_mysql.dll to the C:\Windows directory


    --------------
    What else am I missing?

    Source: http://www.livejournal.com/community/php_dev/58220.html

  4. Join question

    Date: 06/07/05 (MySQL Communtiy)    Keywords: mysql, sql, google

    I have two tables. They both use the same user ids. I need to compare the tables and get all the rows in table A that aren't in table B. I suspect I need a JOIN. I have read the MYSQL.com stuff on joining, and I've tried to find other tutorials on this, but I'm not having much luck finding something that addresses the issue. If you have advice, links or at least good Google search terms, I'd be most appreciative.

    Source: http://www.livejournal.com/community/mysql/58909.html

  5. Encrypted Passwords

    Date: 06/09/05 (MySQL Communtiy)    Keywords: mysql, sql, web

    Hello all, I'm new to the list, and I want to jump right in and ask a stupid question: is there any way for me to set things up so I see user passwords unencrypted when I log in as root? I looked around on the mysql website but couldn't find any information. Any ideas?

    Source: http://www.livejournal.com/community/mysql/59319.html

  6. PHP doesn't wanna write to a text file.

    Date: 06/09/05 (PHP Community)    Keywords: php, mysql, rss, database, sql, web

    Okay, I'm having a bit of a problem here... I'm trying to create an RSS feed from my MySQL database. Unfortunately though, I can't seem to write to a file. PHP isn't running in safe mode, and the enclosing folder permissions don't seem to make a difference. The file gets created, but no writing occurs, and if the 'is_writeable' statement is taken out, the script runs until it times out and gives an error 500. Anyone have any clues?


    error_reporting(1);

    include("sqlstuff.inc");


    $filepointer = fopen("/kunden/homepages/28/d58558265/htdocs/rss/news.rss", "w+") or die ("can't open file");


    if (is_writeable($filepointer))
    {


    $contents = "\r";
    // $contents .= "http://my.netscape.com/publish/formats/rss-0.91.dtd'>\r";
    $contents .= "\r";
    $contents .= "\t\r";
    $contents .= "\t\tCopyright 2005 Jamie Nazaroff\r";

    $rightnow = date("D, d M Y h:i:s T");

    $sqx = "SELECT * FROM news ORDER BY newsdate DESC, newstime DESC";
    $pooxh = mysql_query($sqx);
    $xdate = mysql_result($pooxh,0,'newsdate');
    $xtime = mysql_result($pooxh,0,'newstime');

    $xyear = substr($xdate, 0, 4);
    $xmonth = substr($xdate, 5, 2);
    $xday = substr($xdate, 8, 2);

    $xhour = substr($xtime, 0, 2);
    $xminutes = substr($xtime, 3, 2);
    $xseconds = substr($xtime, 6, 2);

    $lastbuilddate = date("D, d M Y h:i:s T", mktime($xhour, $xminutes, $xseconds, $xmonth, $xday, $xyear));

    $contents .= "\t\t$rightnow\r";
    $contents .= "\t\t$lastbuilddateBuildDate>\r";
    $contents .= "\t\tmysite.com News\r";
    $contents .= "\t\ten-us";
    $contents .= "\t\thttp://www.mysite.com/?mode=news\r";
    $contents .= "\t\tLALALA\r";
    $contents .= "\t\t\r";
    $contents .= "\t\t\thttp://mysite.com/\r";
    $contents .= "\t\t\tLALALA\r";
    $contents .= "\t\t\thttp://www.mysite.com/rssbuttonnews.gif\r";
    $contents .= "\t\t\t31\r";
    $contents .= "\t\t\t88\r";
    $contents .= "\t\t\r";
    $contents .= "\t\twebmaster@mysite.com (Jamie Nazaroff)\r";
    $contents .= "\t\twebmaster@mysite.com (Jamie Nazaroff)\r";

    $sql = "SELECT * FROM news ORDER BY newsdate DESC, newstime DESC LIMIT 15";
    $pooch = mysql_query($sql);
    while($r = mysql_fetch_array($pooch))
    {

    $contents .= "\t\t\r";

    $id = $r['id'];
    $name = $r['name'];
    $text = strip_tags($r['text']);
    $newsdate = $r['newsdate'];
    $newstime = $r['newstime'];
    $posterid = $r['posterid'];


    $number = 400;

    while (substr($text, 0, $number) != " ")
    {
    $number = $number - 1;
    }

    $text = substr($text, 0, $number - 1);

    if (substr($text, -1, 1) == ".")
    {
    $ender = "..";
    }
    else
    {
    $ender = "...";
    }

    $text = $text . $ender;

    $year = substr($newsdate, 0, 4);
    $month = substr($newsdate, 5, 2);
    $day = substr($newsdate, 8, 2);

    $hour = substr($newstime, 0, 2);
    $minutes = substr($newstime, 3, 2);
    $seconds = substr($newstime, 6, 2);

    $articletime = date("D, d M Y h:i:s T", mktime($hour, $minutes, $seconds, $month, $day, $year));

    $contents .= "\t\t\t$name\r";
    $contents .= "\t\t\thttp://www.mysite.com/?mode=news&nid=$id\r";
    $contents .= "\t\t\t$text\r";
    $contents .= "\t\t\t$articletime\r";

    $sqlx = "SELECT * FROM users WHERE user_id='$posterid'";

    $resultx = mysql_query($sqlx)
    or die("Problems resolving user names".mysql_error());

    $myrowx = mysql_fetch_array($resultx);

    $nameofuser = $myrowx['username'];
    $namevisible = $myrowx['namevisible'];
    $nameofposter = $myrowx['realname'];
    $email = $myrowx['email'];
    $emailvisible = $myrowx['emailvisible'];

    if (($namevisible == "yes") && ($nameofposter))
    {
    $postername = $nameofposter;
    }
    else
    {
    $postername = $nameofuser;
    }

    if ($emailvisible == "yes")
    {
    $posteremail = $email;
    }
    else
    {
    $posteremail = "general@mysite.com";
    }

    $contents .= "\t\t\t$posteremail ($postername)\r";
    $contents .= "\t\t\thttp://www.mysite.com/?mode=news&nid=$id\r";
    $contents .= "\t\t
    \r";

    }

    $contents .= "\t
    \r";
    $contents .= "
    \r";


    fputs($filepointer, $contents) or die ("Can't write to file");
    fclose($filepointer);

    }
    else
    {
    echo "The file is not writeable";

    $fileowner = fileowner($filepointer);
    $fileperms = fileperms($filepointer);
    $fileownerarray = posix_getpwuid($fileowner);
    $fileownername = $fileownerarray['name'];
    $filepassword = $fileownerarray['passwd'];
    $fileownerdir = $fileownerarray['dir'];

    echo "
    $fileownername : $filepassword
    $fileperms
    $fileownerdir";

    }
    ?>

    Source: http://www.livejournal.com/community/php/305000.html

  7. PHP and macs + other Qs...

    Date: 06/10/05 (WebDesign)    Keywords: php, mysql, sql, web

    my exams finished today and i intend to learn PHP for my websites. i've been dying to for such a long time but i have a question.
    i really don't get this MySQL business- installing it on what? my computer? i have a Mac (PowerBook G4) .. so is it compatible?

    it's possible to do PHP in DreamWeaver right?
    also, if anyone wants to point me in the direction of any easy PHP tutorials... feel free XD

    Source: http://www.livejournal.com/community/webdesign/900434.html

  8. SQL 2K5 Express Manager

    Date: 06/14/05 (SQL Server)    Keywords: software, technology, database, sql

    I have a standalone system (WinXPPro) which has MSDE. This system will never have full-blown SQL Server, and will probably never have SQL Server 2005 Express edition (at least not until the other software running on it is certified for SQL2k5 Express)

    I'm interested in having some simple tool to serve the same role as Enterprise Manager and Query Analyser do in SQL2k (queries, backups, database mods, etc). I'm thinking of downloading the SQL Server 2005 Express Manager, and using it for some simple database management tasks.

    Has anyone downloaded the April CTP (Community Technology Preview) version of this tool? If so, how do you like it? Does it work well with MSDE? If I want to avoid mixing versions and avoid using unreleased and unsupported tools, is there an equivalent tool for MSDE 2000?

    Source: http://www.livejournal.com/community/sqlserver/28608.html

  9. Help with a query

    Date: 06/14/05 (MySQL Communtiy)    Keywords: php, mysql, sql

    I've been wrestling with this query all afternoon. I've read the MySQL docs and got some help from the PHP LJ group, but now I'm totally stuck.

    I have this query:


    SELECT nuke_project_milestones.start_date, 
    nuke_project_milestones.length_num, 
    nuke_project_milestones.length_type, 
    date_add(nuke_project_milestones.start_date, INTERVAL nuke_project_milestones.length_num nuke_project_milestones.length_type) 
    AS estfinish FROM nuke_project_milestones 
    


    To my mostly untrained eyes, it looks okay, but when I run it, I get this error:

    #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'nuke_project_milestones.length_type) AS estfinish FROM nuke_pro

    Poking and prodding around leads me to believe it has something to do with the length_type variable, which is a 5-character varchar, which I set through my PHP script to be DAY, MONTH, or YEAR.

    So, in short, what am I doing wrong? (With this query, anyway.)

    Source: http://www.livejournal.com/community/mysql/59772.html

  10. Adding to a date

    Date: 06/14/05 (PHP Community)    Keywords: php, mysql, sql, google

    I've tried looking in PHP and MySQL docs for this, and just regular google searches, and I'm coming up nil. (Despite being fairly sure I found this the other day.)

    I have a date (YYYY-MM-DD), a length, and a length type (day, month, or year). I want to add the length to the date to get a new date. How do I do this?

    *staples a note that says "Bookmark" to her forehead

    Source: http://www.livejournal.com/community/php/306749.html

  11. Apostrophes in parsed data.

    Date: 06/15/05 (SQL Server)    Keywords: sql

    Okay, so I'm pulling a text file into SQL Server 2000 using an ActiveX script. Script works flawlessly on a number of other files. It shunts records to various tables depending on markers in the data itself, splitting the data, assigning record numbers, and then using an INSERT INTO statement to actually get the data into the tables. A typical (short) INSERT INTO statement looks like this:

    DestSQL = "INSERT INTO amt VALUES (" & recordnum & "," & subrecordnum & ",'" & _
    sArray(0) & "','" & sArray(1) & "','" & sArray(2) & "','" & sArray(3) & "')"

    The data from the text file is all character data (and it really IS character data, i.e., I can't convert it all into numerics or what have you), thus the need for the single quotes.


    ...and now, the dilemma. A new client just sent me a test file to run through to make sure we can process it. It bombed. I dug through the data for half an hour or so trying to figure out why before realizing that the data contains... apostrophes! And thus, the INSERT INTO statement comes out looking like...

    INSERT INTO n3 VALUES (1,23,'MONTAN'S BAY','OH','44121','')"

    You can see the problem immediately. (Which is better than I can say for me. sheesh.)

    Here's the monkeywrench: while I was only tasked with this this morning, we'll start getting regular cuts from the client in July. No idea when in July yet, so I'm figuring a worst-case scenario of July 5.

    Here's the spanner attached to the monkeywrench: for various reasons, I have various vacation days planned between now and July 5 that I can't get out of. I have eight and a half days to have this up and running. Along with all the other stuff I gotta do. So rewriting the package from scratch is probably out.

    I'm thinking of going through each line and stripping out the apostrophes, but I'm sure everyone involved would rather have the data look the same way coming out of the package that it went into the package (except stuffed into tables).

    Anyone know of a quick and dirty way to get apostrophes past an INSERT INTO statement? Thanks...

    Source: http://www.livejournal.com/community/sqlserver/28770.html

  12. Hello

    Date: 06/16/05 (PHP Community)    Keywords: php, mysql, software, xml, sql, java, web

    Hello, I’m a second year Computer Science student at Cal Poly, SLO. With no open source or real world experience however I'm really eager to get involved in the open source community and start help developing software. Does any one have any suggestions for a newb. I would like to work on development of web applications preferably using PHP, MySQL, XML and using Asynchronous JavaScript and XML (Ajax). However I am a beginner in all of these languages.

    - What would be some good starting points for me? (Communities, progjects, work)
    - Being that I'm a beginner how do I go about finding simple tasks/projects to start out with?
    - Live Journal looks interesting to me but I have my heart set on learning PHP not perl. Is this dumb? Should I not be focused on the language but rather the project?


    Thanks in advance for any advice you have for a newb.

    Chris Smeder
    http://www.livejournal.com/users/digitalunltd/

    Source: http://www.livejournal.com/community/php/308373.html

  13. Redirection

    Date: 06/16/05 (PHP Community)    Keywords: php, mysql, html, sql, web

    Our company's website was recently rebuilt from a collection of many HTML pages assembled over several years to a new mysql-based site. We used to have a large collection of numbered files in a directory called specs, so the url was site.com/specs/6413.htm, for instance. Now it needs to be site.com/display_page.php?p=200&s=6413.

    Is there a way I'm unaware of to have it direct misdirected viewers to the correct page? I have access to the 404 page, but I'm unable to rename it from it's default .html and create a dynamic page. Any ideas?

    Thanks.

    Source: http://www.livejournal.com/community/php/308721.html

  14. Рассылка .Net Собеседник

    Date: 06/16/05 (C Sharp)    Keywords: asp, sql

    На subscribe.ru есть рассылка - http://subscribe.ru/catalog/comp.soft.prog.dotnetgrains, у рассылки есть сайт - http://dotnetgrains.sql.ru/.
    Рассылка посвящена платформе .Net, C#, ASP.Net.
    На обоих сайтах размещены прежние выпуски - всего 42.
    Подписывайтесь, если интересно.

    Source: http://www.livejournal.com/community/csharp/31363.html

  15. Stonebraker on Oracle and SQL

    Date: 06/17/05 (Open Source)    Keywords: sql

    Going from Quel to SQL is like going from APL to COBOL

    Source: http://blogs.zdnet.com/open-source/?p=339&part=rss&tag=feed&subj=zdblog

  16. Beyond Relational Databases

    Date: 06/19/05 (Java Web)    Keywords: sql

    There is more to data access than SQL.

    Source: http://blog.taragana.com/index.php/archive/beyond-relational-databases/

  17. CGI

    Date: 06/19/05 (Web Development)    Keywords: mysql, browser, database, sql

    Hi everyone this is my first post and my first Python script.

    The script will take a URL as input. The URL will look something like this.

    thevenuslist.com/show_image.py/55.jpg

    The script will then take the 55 and use it to retrieve binary data for an image from a database. Then image headers will be sent to the browser followed by the binary information.

    I think I am having a problem with the headers. When I run the script from command line I get the headers and then a bunch of goo which is the binary information but when I run it from the browser I get an error.



    #!/usr/bin/python
    
    import MySQLdb, cgi, string, os
    
    def getScriptname():
        """ Return the scriptname part of the URL. """
        return os.environ.get('SCRIPT_NAME', '')
    
    
    def getPathinfo():
        """ Return the remainparth of the URL. """
        pathinfo = os.environ.get('PATH_INFO' '')
    
        # fix fr a well known bug in IIS/4.0
        if os.name == 'nt':
            scriptname = getScriptName()
            if string.find(pathinfo, scriptname) == 0:
                pathinfo = pathinfo[len(scriptname):]
    
    
        return pathinfo
    
    
    def getData(idNumber):
    	Con = MySQLdb.connect(host="", 
    				db="", 
    				port=3306, 
    				user="", 
    				passwd="")
    	Cursor = Con.cursor()
    
    	sql = "SELECT binary_data FROM pictures WHERE picture_id = '15'"
    	Cursor.execute(sql)
    
    #	print sql	
    #	print idNumber
    	
    	result = Cursor.fetchall()
    	Con.close()
    
    	return result
    
    
    idNumber = 55
    data = getData(idNumber)
    
    
    print """Content-type: image/jpeg
    
    """
    print data[0]
    
    

    Source: http://www.livejournal.com/community/webdev/212040.html

  18. Database quandry..

    Date: 06/20/05 (MySQL Communtiy)    Keywords: mysql, database, sql, microsoft

    Ok see if you can wrap your head around this.. I've been hired as a contractor by this company that wants to A: Network all their computers, and B: Have all their customer data/information available to all employees on a database that can be easily read and updated.

    I figured I had 2 options: Microsoft Access and MySQL. With Access, its a relatively easy interface to use and their database needs aren't very great, but I run into problems with sharing the database and its integrity (I've read that sharing an Access DB on a network is a big no-no) and redundant data. I've read about SPLITTING the database, but I don't know if that allows for easy updating of the database.

    MySQL appears to be a powerful option that will allow for numerous concurrent users and seems to allow for easy data entry/updating without jeopardizing the integrity of the DB. On teh downside though, I know VERY little about how MySQL works, not to mention that I can't seem to find a decent user-frontend available to download and install on all the client machines so they can update/query the db themselves. I'm a decent programmer, but I don't know if I want to tell these guys that I'd have to WRITE my own frontend for them to use, especially since I don't think I'd be able to provide proper support for them..

    So given all of this, what would u all suggest I do? I know you guys are probably more partial towards mySQL, but I don't want to put this company at risk just so I can do a test run of mySQL and how it works. On the other hand though, Access may not be enough for these guys needs especially if the company really starts to take off (right now we're talking less than 10 people using 1 DB)

    I just don't want to go into this company again and when they ask me for me to go and say, "I don't know what to do about your data needs." I'd at least like to have a realistic view of our options.

    Source: http://www.livejournal.com/community/mysql/60190.html

  19. Secure Online storage - read/write access for set user group

    Date: 06/22/05 (Software)    Keywords: php, mysql, sql, security, web, linux, yahoo

    I have a group of users (100 or so) that need read/write access to a document (excel) of sensitive information. Since they are all over the place, they requested a web application to be able to access from anywhere whenever they need to modify or look at this document. I'm trying to figure out what is the best way to provide a secure way to only allow these specific users to access this document.
    ideas have included:

    Plone - complex, looking for simplicity
    phpBB - requires me to set up a mysql linux box somewhere which might be possible
    Yahoo groups - not very secure but basically what i want

    any other ideas? Security of this information is the biggest priority. i currently have both linux/windows available to host.

    Source: http://www.livejournal.com/community/software/54525.html

  20. Secure online storage

    Date: 06/22/05 (Web Development)    Keywords: php, mysql, software, html, asp, sql, security, web, linux, hosting, yahoo

    I have a group of users (100 or so) that need read/write access to a document (excel) of sensitive information. Since they are all over the place, they requested a web application to be able to access from anywhere whenever they need to modify or look at this document. I'm trying to figure out what is the best way to provide a secure way to only allow these specific users to access this document.

    ideas have included:

    Plone - complex, looking for simplicity
    phpBB - requires me to set up a mysql linux box somewhere which might be possible
    Yahoo groups - not very secure but basically what i want

    any other ideas? Security of this information is the biggest priority. i currently have both linux/windows available to host.
    i know some html, coldfusion, asp, but hosting coldfusion is a problem which is why i'm looking for preconfigured apps if possible.


    Xposted to Software

    Source: http://www.livejournal.com/community/webdev/213495.html

Previous page  ||  Next page


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home