Search results

  1. C

    Most recent data from php?

    Store the date in your database table that each topic was created on, then sort the results, using ORDER BY, by date.
  2. C

    Question about using HTML?

    I've never used open office for web pages before, so I don't know if you can. However, I'm sure your computer came with either Notepad or TextEdit. Either of these will work for creating HTML documents. As others have said here, to save it as HTML you click: File > Save As > File Format = All...
  3. C

    Which HTML editor is better for web development: Dreamweaver or Frontpage?

    I'm going to have to completely agree with Joe here. Using WYSIWYG's like FrontPage and DreamWeaver will really hinder your knowledge of style sheets and the markup language you are using. Not to mention, they produce (often) invalid markup and they tend to be overpriced pieces of software...
  4. C

    Running a php/sql query from javascript...is it possible?

    You can't do what you're trying to do without a page refresh, that is without using AJAX. However, if you wanted to do this with a page refresh I suppose you could... <script type="text/javacript" src="scripts.php"></script> Notice the ".php" file extension... As long as the php script is...
  5. C

    How to make an html/css horizontal navigation bar?

    If I were doing this for my own website, I'd use the unordered list element and style it accordingly: The HTML: <div id="navbar"> **<ul> ****<li><a href="link1.html">Button 1</a></li> ****<li><a href="link2.html ">Button 2</a></li> ****<li><a href="link3.html ">Button 3</a></li> **</ul> </div>...
  6. C

    MYSQL PHP DUPLICATES?

    <?php // Create your query $query = "SELECT HQ.ORDER, COUNT(HQ.ORDER) AS COUNT FROM HQ"; // Perform Query $result = mysql_query($query); // Check result // This shows the actual query sent to MySQL, and the error. Useful for debugging. if (!$result) { **$message = 'Invalid query: ' ...
  7. C

    why am i getting a php error message?

    These are the messages i am getting, do i have to edit the php.ini file to fix the problem, if not can someone please help: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\EasyPHP 3.0\www\TutorialWebsite\includes\functions.php on line 157 Warning...
  8. C

    PHP echo does not work?

    You must upload the php file to a web host that has PHP configured, or download and install something like WAMP or XAMPP to run PHP locally. http://www.apachefriends.org/en/xampp.html http://www.wampserver.com/en/
  9. C

    Installing PHP, mySQL onto hardrive?

    I was thinking of installing php and mysql onto my hardrive, so it acts like a server that i can use locally to test the websites i am building. Is this a good idea, and would i need to install apache ?
  10. C

    I need a project of some sort to build in php, I am kinda new and need experience.?

    Start with validating data from web forms. Then move on to creating a member signup and login area. This should be pretty simple, and there are plenty of tutorials scattered across the web to help you out if you get stumped.
  11. C

    10 Points for best idea to fill partial/full shade garden?

    the garden is brand new. It is about 20 feet long by 3-4 feet deep. So far, I have 1 rhododendron planted in one corner. What are some other plants that like to have full/partial shade that will flower in mid to late summer? I would like to fill it with different plants that flower in different...
  12. C

    $_SESSIONS ? How to use them properly ? - PHP?

    Is there any problem with starting a session at the beggining of every page, so i could use an include or a require statement to put session_start(); at the beggining of every page on my website. Some of the pages can be viewed if a user is not logged in aswell as if they are logged in. Ive...
  13. C

    What HTML tag is different?

    EM: Indicates emphasis. TT: Renders as teletype or monospaced text. STRONG: Indicates stronger emphasis. KBD: Indicates text to be entered by the user. This is a tough one to distinguish which doesn't fit...but if I had to guess - it would be KBD because the other three are presentation...
  14. C

    I have a php source code. How do I use it?

    Save it as a PHP file (.php) and upload it to your web host's server (assuming it's running Linux). Then go learn PHP at w3schools.com
  15. C

    I have a php source code. How do I use it?

    Save it as a PHP file (.php) and upload it to your web host's server (assuming it's running Linux). Then go learn PHP at w3schools.com
  16. C

    php and preg_replace?

    Hey there...try this out: $t['kitty'] = "Cat - Adult (Female)"; $pattern[0] = "/Cat - /"; $type = preg_replace($pattern, "", $t['kitty']);
  17. C

    Help me with basic PHP syntax?

    Hmm...what about if you remove the quotations around your $style variable? Like: <?php echo $style; ?> >Other than that...I know that EOD; doesn't allow any spaces or tabs before or after it...so make sure there are none in your actual php file - doesn't look like there are here though...
  18. C

    Good apps to start developing in PHP?

    You can do some or all of the following: 1. Contact Manager - To manage your friends, family, and business associates contact information 2. Guestbook - These were popular once, but I don't see them as often anymore (thankfully), but it is still a pretty easy app to start with. 3. User Login...
  19. C

    Do you think that Obama refuses to release the "torture photos" because Pelosi is

    Being forced to look at any picture of her constitutes torture in my book.
  20. C

    Do you have this weird feeling that the government?

    That's why we need to minimize government to its smallest form possible. Instead, we're growing it.
Back
Top