www.webdeveloper.com

Search:

Type: Posts; User: badben

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Just a quick note but i'm not sure if this works...

    Just a quick note but i'm not sure if this works for leap years etc but it should do. I've not tested it yet though.
  2. This should work

    This should work



    <?php

    $calStartDate = "2012-03-01";
    $calEndDate = "2012-03-31";

    $tasks = array(
  3. I take it that you want to display an html...

    I take it that you want to display an html calendar showing dates between say x and y.

    I take it that you have therefore got a list of tasks from a database that either start or end between the x...
  4. Replies
    9
    Views
    1,181

    The answer to this question is the most sought...

    The answer to this question is the most sought after piece of knowledge on the Internet. The answer is with hard work and as BrianJames says put content on your site that is informative, original,...
  5. Replies
    2
    Views
    3,349

    This is to a certain extend dependent on the...

    This is to a certain extend dependent on the demographics of your site vistors but there are some stats available here:

    gs.statcounter.com

    marketshare.hitslink.com

    stats.wikimedia.org
  6. The following should work and will allow you to...

    The following should work and will allow you to add files to an existing zip archive according to the documentation. I have not tried it though. See www.php.net/manual/en/ziparchive.addfile.php

    ...
  7. Replies
    5
    Views
    772

    if your results are in an array for example: ...

    if your results are in an array for example:



    $results = array(
    array('heading', '#', '#'),
    array('test result 1', 1, 3),
    array('another result 2', 2, 3)
    );
  8. Replies
    5
    Views
    919

    Try using the following plugin for wordpress...

    Try using the following plugin for wordpress which is great for redirecting pages:

    http://urbangiraffe.com/plugins/redirection/
  9. Replies
    5
    Views
    772

    I suppose this depends on what format you are...

    I suppose this depends on what format you are outputting to (i.e txt, rtf, html) and what you are outputting from (ie array etc)?
  10. Thread: eCommerce 101

    by badben
    Replies
    5
    Views
    728

    It depends entirely on what features you require...

    It depends entirely on what features you require for your store.

    In my experience Magento has many features but is slow and takes forever to set up. I would suggest a vp or dedicated server to...
  11. Replies
    4
    Views
    2,810

    Your WHERE statement should be before the ORDER...

    Your WHERE statement should be before the ORDER By so try:



    $sql = mysql_query("SELECT * FROM mytable ".$where." ORDER BY id DESC ". $limit);
  12. Thread: Echo problems

    by badben
    Replies
    2
    Views
    626

    what error do you get?

    what error do you get?
  13. Replies
    4
    Views
    2,810

    try changing your code to: $whereClauses =...

    try changing your code to:


    $whereClauses = array();
    if (! empty($_POST['Locations'])) $whereClauses[] ="Locations='".mysql_real_escape_string($_POST['Locations'])."'";
    if (!...
  14. Replies
    8
    Views
    1,297

    simply place the code in your tag. The...

    simply place the code in your <div> tag. The <?php and ?> specify the php code.
  15. Replies
    3
    Views
    578

    I would suggest looking into jquery if you want...

    I would suggest looking into jquery if you want to avoid flash.
  16. Replies
    8
    Views
    1,297

    I agree that xml is probably a better way of...

    I agree that xml is probably a better way of doing things.

    If you use an xml format like in a file called readings.xml:



    <?xml version="1.0"?>
    <Readings>
    <Reading date="2012/03/17"...
  17. Replies
    7
    Views
    1,646

    $xmlDoc = new DOMDocument(); $xmlDoc->load(...

    $xmlDoc = new DOMDocument();
    $xmlDoc->load( 'cdocument-2012-03-05.xml' );

    $thisnodeone = $xmlDoc->getElementsByTagName('ConferenceData');
    foreach ($thisnodeone as $node ) {

    ///// ...
  18. Replies
    3
    Views
    539

    try: echo ini_get('upload_max_filesize'); ...

    try:


    echo ini_get('upload_max_filesize');

    to see what the actual max filesize is. If you are on a shared hosting package sometimes they will either not allow you to change this value or will...
  19. Replies
    3
    Views
    763

    This is a little bit difficult to answer without...

    This is a little bit difficult to answer without knowing what some of the values are for $header etc.

    As stated in the php manual for the mail function "Returns TRUE if the mail was successfully...
  20. Replies
    2
    Views
    504

    I personally would get the file extension using...

    I personally would get the file extension using php's native function like this:

    $file_info = pathinfo($file_name);
    $file_ext = $file_info['extension'];
  21. Replies
    7
    Views
    1,646

    Assuming that your xml file now looks like: ...

    Assuming that your xml file now looks like:



    <?xml version="1.0"?>
    <conferences>
    <ConferenceData>
    <Event value="myevent" />
    <Scheduling-Data>
    <Conference>
  22. Replies
    8
    Views
    1,297

    What exactly do you want to do with the daily...

    What exactly do you want to do with the daily readings?

    Do you want to display them in a html table, import them to a database, upload the .txt file to your website.

    Please provide a little...
  23. Replies
    7
    Views
    1,646

    try $xmlDoc = new DOMDocument();...

    try


    $xmlDoc = new DOMDocument();
    $xmlDoc->load( 'cdocument-2012-03-05.xml' );

    $thisnodeone = $xmlDoc->getElementsByTagName('ConferenceData');
    foreach ($thisnodeone as $node ) {

    /////...
  24. I would give them an example of a badly...

    I would give them an example of a badly designed/insecure script or simple application and ask them to suggest improvements for the code.

    This tells you how good they are at reading code, how well...
  25. Replies
    5
    Views
    1,148

    when uploading a file you should check not only...

    when uploading a file you should check not only the extension but also that is the correct mime type also and that the filesize is not too large.

    I would also use the native php functions for...
Results 1 to 25 of 35
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles