Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. vcherubini

    How to set mysql to work with php?

    Nope, if it's just printing out your code, you've got a while to go. You need to tell apache how to interpret .php files. How did you go about installing each of these? Might I suggest using XAMPP (http://www.apachefriends.org/en/xampp.html) to install PHP/Mysql/Apache on your machine so its...
  2. vcherubini

    How to set mysql to work with php?

    Yes, using mysqli is deliberate. Using mysqli is recommended by the PHP manual and is much, much more robust. Its also object oriented, which is good for new programmers to see. newtomysql, you can't click on the localhost link because localhost points back to your computer, it points to the IP...
  3. vcherubini

    How to set mysql to work with php?

    Ok, there are several things to check. 1. Is apache running with mod_php enabled? If not, going to http://localhost/index.php will say page not found, or return a 500 status error. 2. Is mysqld running? You're on a Windows machine, so check your services and see if mysqld is running. 3. A...
  4. vcherubini

    New PHP Framework - Artisan System

    Hello, I've released a new open source PHP framework for fast and efficient web software development. It is named Artisan System and found at http://artisansystem.com The current stable version is 0.1, however, 0.2b1 was just released, and 0.2 will be released before the end of the year. 0.2...
  5. vcherubini

    How to set mysql to work with php?

    What does your php.ini file look like? Do you have the extension enabled in there? What is the error you're getting to show that mysql support isn't enabled? Is mysql not working as you don't have the server running, or is the mysql extension not working in PHP?
  6. vcherubini

    VBScript automation, ActionIsRunning not working

    Hi, I have a VBScript to automate a ReRasterize action I've created within Illustrator. The action takes the DPI of images (RasterItems) within an AI file from 300+ DPI to 72DPI. The action works fine, and I've got the script working to perform that script. However, if the AI file is large...
  7. vcherubini

    Regular Expressions

    That works perfectly! Thanks a ton for the help. -Vic vic cherubini vic @ openglforums.com
  8. vcherubini

    Regular Expressions

    Thanks for the help guys, but turning global off doesn't work. Here is my code in its entirity: <% dim str, myreg, newstr str = &quot;this is a paragraph that {{{var1}}} contains {{{var2}}} absolutely nothing {{{var3}}}&quot; dim replaced(3) replaced(0) = &quot;value 1&quot; replaced(1) =...
  9. vcherubini

    Regular Expressions

    Thanks for the replies, but I'm still having some trouble. The string that reads &quot;this is a paragraph that {{{var1}}} contains {{{var2}}} absolutely nothing {{{var3}}}&quot; should read &quot;this is a paragrap that value 1 contains value 2 nothing value 3&quot; I want to replace the...
  10. vcherubini

    Regular Expressions

    Thanks for the response. One question though: how do I replace the values found in the string with values in an array. For example, I modified the code to read: <% dim str, myreg, newstr str = &quot;this is a paragraph that {{{blah}}} contains {{{blah}}} absolutely nothing {{{blah}}}&quot...
  11. vcherubini

    Regular Expressions

    Hello, been a while since I've been here. :) Here's my question: I am writing a template class and I want to use Perl regular expressions. This is easy. However, I can't get the replace function to work. For example, in Perl, all you have to do is: $_ =~ s/blah/replace/; Which replaces...
  12. vcherubini

    Associative/Hash Array within ASP

    Hello: I was wondering if ASP supports associative arrays (also known as hash arrays or name/value pair arrays)? An example in PHP would be: $array['name'] = &quot;value&quot;; However, if I try: dim my_array(1) my_array(&quot;name&quot;) = &quot;value&quot; I get a parse error. Is there...
  13. vcherubini

    Table information without queries

    Nevermind, I found the answer: <% dim oConn, ors1 set oConn = Server.CreateObject(&quot;ADODB.connection&quot;) oConn.Open &quot;DSN=dsn_here&quot; set ors1 = oConn.OpenSchema(20) ors1.movefirst while not ors1.EOF response.write(ors1(&quot;Table_Name&quot;) & &quot;<br />&quot;)...
  14. vcherubini

    Table information without queries

    Hello. I come from a PHP/Perl background and have recently been forced into using ASP at work. I am having a problem with getting information about a database so that I can work with it. Specifically, how do I find out the names of the tables in the database? I am using Access. In PHP, I could...
  15. vcherubini

    Converting date from DB to date subtype

    Hello: I've got a value in a database stored as a string but its in the form of a date like 7/08/02. It has to be stored as a string because its in a configuration table and the other values can be strings as well, so its just easier to make it a date. I load the value from the database and...
  16. vcherubini

    Access/ASP Error: Too many fields

    Actually, I found out there is a maximum number of fields that can be updated at one time; it is 40. I found a bunch of info on it at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q192716. Rather than just messing with Access, we decided to switch to SQL Server, which can handle just...
  17. vcherubini

    Need help with strings!

    Use the split() function like so: $variable = array() $text_line = &quot;Here is some text;Here is some text;Here is some text&quot;; $variable = split (&quot;;&quot;, $text_line); Hope this helps. -Vic vic cherubini krs-one@cnunited.com
  18. vcherubini

    problem with SQL statement

    Hmm, I still don't think you are giving enough information. You do realize that the mysql_query() function does not connect to the database, right? I think you want something like: $conn = mysql_pconnect(&quot;hostname&quot;, &quot;username&quot;, &quot;password&quot;) or die(&quot;Failed to...
  19. vcherubini

    Access/ASP Error: Too many fields

    Hello: I am new to this specific forum, and really new to ASP, so please bear with me. I have an Access database that has a table with literally hundreds of fields. All is well, apparently Access lets you do that. However, I created a query that updates the table all at one time. To give you...
  20. vcherubini

    multiple sql inserts on refresh

    Well, after the user presses the submit button and goes to the page that inserts the SQL, have that page redirect him to somewhere else. On the page that inserts the SQL, say something like &quot;You're stuff has been added. In 3 seconds, you will be fowarded to another page.&quot; And then add...

Part and Inventory Search

Back
Top