dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Ultimater

Page 1 of 20 1 2 3 4

Search: Search took 0.08 seconds.

  1. Thread: Image viewer

    by Ultimater
    Replies
    4
    Views
    3,245

    Sounds like JavaScript isn't gonna be of any help...

    Sounds like JavaScript isn't gonna be of any help to you here. File management is a task for the server not the client. Look into a server-side language such as PHP not JavaScript which is a...
  2. Replies
    3
    Views
    1,384

    I'm well aware when logged in the forums remember...

    I'm well aware when logged in the forums remember my user account settings. If I'm not logged in, such as viewing the forums from another location, the forum uses the forums' default setting for this...
  3. Replies
    3
    Views
    1,384

    Perl/Python/Ruby forum

    Why is the default cut off range for the Perl/Python/Ruby forum "Last Month" and not from the "Beginning"? It was kind of scary for me for a few minutes upon only seeing 3 posts in the forum. I know...
  4. Replies
    1
    Views
    733

    Not sure why you are using jQuery's each method...

    Not sure why you are using jQuery's each method here.
    Try a basic loop like so:


    for(var i=0,l=postsJSON.length;i<l;i++)
    {
    var post=postsJSON[i];
    var post1=postsJSON1[i];
    //other code...
  5. Replies
    2
    Views
    1,704

    I'd use a combination of all of the above. Try...

    I'd use a combination of all of the above.
    Try to break the full-scale problem down into smaller bits and pieces.
    Don't be afraid to use subqueries and/or temporary tables to assist you with your...
  6. Replies
    13
    Views
    32,171

    Also make sure there is white space after the...

    Also make sure there is white space after the final <?php
    If your editor strips them, add a comment afterwards like:


    <?php
    //comment to preserve the whitespace after the opening PHP tag

    ...
  7. Replies
    13
    Views
    32,171

    Give this a shot:

    Give this a shot:


    <?php
    //load plain/text data into $dataTokenCollection as a string.
    $dataTokenCollection=file_get_contents(__FILE__,null,null,__COMPILER_HALT_OFFSET__);...
  8. Try: $sql="SELECT table1.id AS `id`,'table1'...

    Try:


    $sql="SELECT table1.id AS `id`,'table1' AS `table` FROM table1 UNION ALL SELECT table2.id,'table2' AS `table` FROM table2";
    $query=mysql_query($sql) or die(mysql_error());...
  9. Replies
    3
    Views
    1,644

    The FIND_IN_SET function works beautifully for...

    The FIND_IN_SET function works beautifully for this purpose.

    http://dev.mysql.com/tech-resources/articles/mysql-set-datatype.html


    SELECT * FROM set_test WHERE FIND_IN_SET('Sports',myset) > 0;
  10. My Join-Union-Subquery query works, but is there a better way to write my query?

    The situation

    Alright, I have a table `messages`


    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    CREATE TABLE IF NOT EXISTS `messages` (
    `id` int(10) unsigned NOT NULL auto_increment,
    `mailbox`...
  11. Replies
    2
    Views
    2,233

    You can try Perl's JSON...

    You can try Perl's JSON module. Although the module is very strict about the syntax of the incoming JavaScript Object.



    #!/Perl/bin/perl -w
    print "Content-Type: text/html\n\n";
    use CGI::Carp...
  12. Replies
    3
    Views
    727

    Enjoy

    Enjoy


    <?php
    $result=(object)array(
    'link'=>'http://www.youtube.com/watch?v=8fyr0zbaFyE&feature=related',
    'name'=>'The Cramps - Bikini Girls With Machine Guns'
    );
    ...
  13. Replies
    10
    Views
    2,451

    Alternatively, if/when the user solves the...

    Alternatively, if/when the user solves the captcha incorrectly, you may want to make the form easier for the user to re-submit like so:

    appointmentsetup.php


    <?php
    session_start();...
  14. Replies
    10
    Views
    2,451

    Try this:

    Try this:


    <?php
    session_start();
    if(isset($_POST["validate"])) {
    if(($_SESSION['captcha_code'] == $_POST['validate']) && (!empty($_SESSION['captcha_code'])) ) {
    //Passed!
    ...
  15. Replies
    10
    Views
    2,451

    The very top of appointmentsetup.php as your form...

    The very top of appointmentsetup.php as your form shows (or appointment.php if that's the page). If it causes a syntax error make sure you are using valid PHP syntax regarding the opening and closing...
  16. Replies
    10
    Views
    2,451

    According to the settings you have it at, your...

    According to the settings you have it at, your captcha does render correctly.
    Although I doubt you want a captcha with a completely black font color on a completely black background...

    Change:
    ...
  17. Replies
    4
    Views
    2,404

    He wanted the number 100 included in the...

    He wanted the number 100 included in the summation:
    for(i=0; i<=100; i++)

    Your script is spitting out sumEven = 2450, and sum5 = 950 which is 100 off on both the variables for his scenario.
    ...
  18. Replies
    1
    Views
    943

    Sounds easy. ...

    Sounds easy.


    <script type="text/javascript">
    var sumTotal=0;
    var sumEven=0;
    var sumOdd=0;
    var sum5=0;
    for(var i=0;i<=100;i++){
    sumTotal+=i;
  19. Thread: 15 puzzle

    by Ultimater
    Replies
    0
    Views
    2,179

    15 puzzle

    Hey all. I'm working on generating a God's algorithm for a 15-puzzle simulation:
    http://ultimater.net/kol/public/15-puzzle-puzzle-goal-difference-calc.htm
    This simulation represents a mini-game...
  20. Replies
    2
    Views
    1,942

    I did something like this on ultimater.net...

    I did something like this on ultimater.net:
    At the time of this post, the XML source code is:


    <?xml version="1.0" encoding="UTF-8" ?>
    <?xml-stylesheet href="/skinning-files/themes/default.xsl"...
  21. Replies
    2
    Views
    2,973

    The syntax error is here: ...

    The syntax error is here:


    act.WriteLine("<[CDDATA "& rs("pname")]

    Try:


    act.WriteLine("<![CDATA[" & rs("pname") & "]]>")
  22. Replies
    3
    Views
    5,593

    Excel probably has some settings somewhere for...

    Excel probably has some settings somewhere for this type of thing which can control the data formats of the export. I don't play around with Excel exports much. Here are some workarounds: (Note that...
  23. Replies
    1
    Views
    1,170

    Forget it, I'll just hard-core it in.

    Forget it, I'll just hard-core it in.
  24. Replies
    1
    Views
    1,170

    [RESOLVED] dnyamic xsl:include

    Hi, I'm looking for a way to simulate the following pseudocode:


    <xsl:include href="/skinning-files/themes/{theme}.xsl" />


    My XML is very neat and clean and generated via PHP:


    <?xml...
  25. Replies
    5
    Views
    2,267

    try my addNewStyleSheetByFullCSS function. Found...

    try my addNewStyleSheetByFullCSS function.
    Found over here and here
    http://www.webdeveloper.com/forum/showthread.php?p=639766#post639766...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles