Jump to content

vchris

Members
  • Posts

    1,529
  • Joined

  • Last visited

Posts posted by vchris

  1. I already told you. it's in the subfolder /ext in the php directory. copy it from there.
    No subfolder ext in php folder
    There is a configuration setting in php.ini that specifies the extension directory, so look there and make sure that it is pointing to the correct directory in the first place. If you can't find where it is, search for php*.dll on your computer. If you don't find the mysql extension at all, you probably installed PHP5 with the Windows installer, which does not include MySQL support. You will need to use the manual installation package, which includes all of the extensions.
    Where can I get this manual installation package?
  2. That's great but what if I don't have the file php_mysql.dll in my PHP folder??? Would it be some similar solution to resolve my absolute path problem with php?

  3. Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\deepcoding\includes\mysql_connect.php on line 10Line 10:

    $dbc = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );

  4. Try using an echo statement right before the require statement, another one inside the file itself, and a third after the statement. All three of them should print.
    I just tried that and it seems like it stops echoing after this line:
    $dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );

    But why wouldn't it give me at least an error message?

  5. Thanks! You're my favorite prof :)Yes it's for a menu. It's for the coding section on my site. Basically I will have a sub horizontal nav bar for the programming languages (html, css...) and once the link is clicked the content underneath would display some <ul>s with projects/exercises.How do you call this kind of script? I tried to search for them on google but I didn't have any name so couldn't find much. Any site to recommend for this? I'm open to other ideas for my coding section.Oh yeah and I'm used to working with Photoshop CS but got CS 2 installed and haven't really worked with it much. You know how in CS you could Ctrl+click on another layer and you would select the content of that layer and then you could erase part of the other layer? How do you do that in CS 2?

  6. You've probably seen those sites where you click on a link and without the page reloading the content changes. I know it's done with javascript. Is there a way to do this in css/xhtml? If not can you recommend a great site for such a script?Only thing I can think of is changing the class name in the div that contains the content to another name so in the css I simply set it to visible.

  7. Put echo statements around to figure out where the control flow is going. It's much easier to debug a problem if you at least know where the execution path is. Try changing include to require and see if it generates an error.
    I tried that. I put an echo statement right after where I included the mysql_connect.php file and nothing displayed. If I check the source code it stops right before the include. I can still include other files like header.php. I guess it has to do with the connection info but it is correct. I tested the login on another program (navicat 2004) and it connects and I can perform queries no problem.oh yeah and I always use require_once('mysql_connect.php'); for that file. Always worked.
  8. you know, that used to happen on one of my webhosts... I don't know why. is this on your local machine? if so, try it on a remote host if you can.
    Yes this is on my dev server (my machine). Unfortunately I don't have access to another web server I could test this on. So no solution?
  9. Hi all!I'm working on my new portfolio. I formatted my comp about 2 months back and reinstalled php, mysql, IIS 5.1... Everything works great. I can view php pages but I have 2 issues:1. Seems like I can't use absolute paths. Before formatting my comp I could modify the root folder in IIS to the site I was developing and absolute paths worked. Now when I do that, it only works for html/css and not for php includes. This works in html: <a href="/gallery/index.php">...</a> but this <?php include('/includes/header.php'); doesn't. File location is correct.2. I then tried to do a select from the db. I have 1 table with 1 row for now. I have a php file named mysql_connect.php which contains this code:

    <?php//This file contains the database access information.//This file also establishes a connection to MySQL and selects the database.//Set the database access information as constants.DEFINE ('DB_USER', 'root');DEFINE ('DB_PASSWORD', '******');DEFINE ('DB_HOST', 'localhost');DEFINE ('DB_NAME', 'dc');//Make the connection$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) OR die ('Could not connect to MySQL: ' . mysql_error() );//Select the database@mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );?>

    This is the exact same code that I used to work before to connect to DBs so I don't understand why this wouldn't work. The output on the page simply stops right before this include as per the source code.BTW DB pass is correct.If you need more info, just ask!

  10. Yeah but it is nicer to have a built in form, plus you don't have post your email address that way.Yeah everyone has Outlook Express because it is built into windows, but that is like saying everyone has Internet Explorer...so, what's your point :)

    Exactly! It's nicer to have. I never do mailto links anymore on my sites. I always do nice forms that emails me or that goes to a cp. When I was in school I couldn't access outlook express so there must be others too.
  11. Firefox Critic!Table site:- Same as my IE critic. BTW the image used as background on "the games" is way too large!!! :) Images should normally be no larger than 20kb and yours is 235kb. Dial up users would experience long load times for that page. You can maybe try to save it in a poorer quality or maybe make it so you can make it very small and repeat it (gradient, pattern...)CSS site:- Still on the right (same as IE)- Last link on the right of your horizontal nav is missing, there is only a black rectangle. It seems to be on a second line.- The rest is the same as IE.I would recommend having somekind of form for the contact us page so users who don't have a mail program or access to it can still contact you.Nice work!

  12. Works great!Is there a way to place the code echoed by php just as it would be in html in the source? Because if you take a look at the code in view source, it's all screwed up because of the php.

  13. Ok so I have a mysql query that returns a link description (Google) and an address (www.google.com). What I want is have all the links displayed in 2 equal ul list when total # of links are even and when odd there would be 1 more in the first list.I know this involves a loop but I'm unsure exactly how to do that.

  14. I have to say before hand that you've done some nice work. Critic was done with only IE 6 since at work :)Table site:- Text size might be a bit too small for some people to read.- Link MMORPG News and Contact Us on hover changes the gradient (not sure if was supposed to do that)- copyright at bottom way too small- stylesheet and javascript should be external to save bandwidthCSS site:- Site completely on the right hand side and requires a bit of scrolling- Text size a bit small (see table site)- can only see half of horizontal nav bar- no doctype- javascript should be external (see table site)- padding should be added on the right and left of content text- maybe try another font familyThat should do it. Hopefully this will help you in getting better at web designing :)

  15. Your question is not very precise... If you want to read them for yourself to get some info I recommend using a third party app... If you need those rss feeds to have them as news on your site or something then, you can code a rss reader with php, asp, coldfusion and such... Code can be found on some sites, check google.

×
×
  • Create New...