Jump to content

vchris

Members
  • Posts

    1,529
  • Joined

  • Last visited

Everything posted by vchris

  1. vchris

    Includes

    I'll try that tonight! What do I run first? PHP 5.1.4 or the manual install?
  2. vchris

    Includes

    No subfolder ext in php folder Where can I get this manual installation package?
  3. vchris

    Includes

    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?
  4. vchris

    Includes

    I guess that would explain... How would I fix that?
  5. vchris

    Includes

    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() );
  6. Thanks Dan! Exactly what I needed
  7. vchris

    Includes

    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?
  8. 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?
  9. 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.
  10. vchris

    Includes

    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.
  11. vchris

    Includes

    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?
  12. vchris

    Includes

    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!
  13. I wanna see your scrolling favicon. Post a link!
  14. vchris

    Critique please

    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.
  15. vchris

    Critique please

    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!
  16. vchris

    2 ul list from DB

    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.
  17. zanfranceschi: those are nice sites. They work for me. Simple and nice!Nice work!
  18. vchris

    2 ul list from DB

    This seems to make sense :)I'll try that maybe tonight if I have time.Thanks guys!
  19. vchris

    2 ul list from DB

    What about the first part, right after I queried the DB. How do you split it in 2 arrays? what about when there is only 1 link?
  20. vchris

    2 ul list from DB

    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.
  21. vchris

    Critique please

    I'll try to check it with firefox. I like the scroll on hover.
  22. vchris

    Critique please

    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
×
×
  • Create New...