Jump to content

semlabs

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://semlabs.co.uk/

Profile Information

  • Gender
    Male

semlabs's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I need to integrate PayPal, but I am not sure which of their packages would be best. I want to use the system across a number of sites all of which only have one item which can be bought, but I need to be able to change the price.
  2. Thanks for the heads up. Are you on Windows, Linux without MSCoreFonts or Mac?
  3. You can order database entries using SQL. In your SQL query just do something like: SELECT datetime FROM table ORDER BY datetime DESC Alternatively, you can use ASC instead of DESC to sort the results in ascending order.
  4. mysql_query("UPDATE agents (aname, address, post_code) VALUES ('{$_POST[aname]}','{$_POST[address]}','{$_POST[post_code]}') WHERE AID = '[$_POST[aid]}'"); When inserting array values into a string, you should use the curly braces as per the example above. What you have done might have caused some errors. I would advise you research PHP templating engines. They allow you to separate all your PHP and HTML output, rather than just stuffing it all in one file. Also, I'd recommend using PDO for your database: http://uk.php.net/manual/en/book.pdo.php
  5. Don't know if this is of any help: http://gcov.php.net/PHP_5_2/lcov_html/
  6. It may be possible some how, but something like that should be in something like C++. Alternatively, there will be some freely available on the interveebs. Have a read through this: http://uk.php.net/features.commandline
  7. You do it like this: $doc = new DOMDocument(); $doc->load( 'doc.xml' ); $doc->formatOutput = true; $doc->preserveWhiteSpace = false;
  8. This has been done repeatedly in Flash and also in JS with a Flash API. See: http://www.schillmania.com/projects/soundmanager/
  9. Look at this: http://httpd.apache.org/docs/2.0/programs/ab.html
  10. Thanks for your input "twebman84". Someone else has made the same comment about the services page. I think its a very good point. People don't like to read text, they like to see nice pictures with text on them, bold headings etc.
  11. Depends what your site is and what your content is. If you site is new on the block, I'd look at using StumbleUpon to promote it as you can get good traffic from it quite easily. On the other hand there are sites like Digg, which are difficult to get to page one on. I'd also recommend looking for niche SMSs in your field. for example there is DZone for web developers.
  12. Thanks for the comprehensive replies. All info taken on board for mark 2.
  13. Just order it by ename and limit it to 1: Select Id, Name, EName, ENumber, Download1, Link, DateAdded FROM table ORDER BY EName DESC LIMIT 1
  14. Hi. You are using the old PHP4 XML functions. Try the newer ones: http://uk.php.net/manual/en/book.dom.php An example: $doc = new DOMDocument; $doc->Load( 'file.xml' ); // Create an XPath object $xpath = new DOMXPath( $doc ); //Query the document $query = '//isbn[text()=12345]'; $entries = $xpath->query( $query ); if( $enteries->length > 0 ) { echo $entries->item( 0 )->nodeValue; } else echo "no ISBN found\n"; This uses XPath. It's a query language for XML. You can get some schooling on it at w3schools
  15. I'm not sure exactly what you want to do, but I don't think there is a way to shorten what I think you are trying to do. I have PMed you with an alternative solution.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.