• Member Avatar for AndrisP
    AndrisP

    Replied To a Post in I can't add my values

    You read value from form input in to the JavaScript lines 7 and 8 and after you try read value from value in to the lines 12 and 13
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Login Issue.

    Hello everyone! I have a problem in login system of my CMS. When I enter the correct Username and Password, the System is always showing Invalid Credentials, However I have …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Login Issue.

    Delete space after equal sign `action= "<?php echo $current_page; ?>"` replace to `action="<?php echo $current_page; ?>"` and never use equal sign for compare username and password in the MySQL! Try …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in the 'Get' macro

    #define Get(x) typeid(x).name() if I understood correctly?
  • Member Avatar for AndrisP
    AndrisP

    Began Watching the 'Get' macro

    i did the Get macro and works fine: #define Get(x) [this]()->x (like you see it's a lambda function header) but i see 1 problem(sample): Get(int) like you see the type …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in the 'Get' macro

    #define Get(x) int(x)
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Printing numbers in a pyramid shape

    void pyramid(int count){ cin >> lineTotal; count = lineTotal; for(int line=0; line < count; line++){ if (count >= 10){ int width=(count-line)*2; if (line<9) width--; cout << setw( width ) << …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Printing numbers in a pyramid shape

    http://pastebin.com/WBvMuQvH my code has become somewhat of a mess from trying to move things around and figure out what isn't working. Basically, what i want it to do is, say …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Printing numbers in a pyramid shape

    #include <iostream> #include <iomanip> using namespace std; void piramid(int count){ setfill(" "); for(int i=0; i<count; i++){ cout << setw(count-i) << (i+1); for(int j=i; j>0; j--){ cout << j; } for(int …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching function

    hello I had a question that what is the meaning of function in C++. thank you
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in function

    in example: #include <iostream> #include <stdio.h> void examplefunction(int a, int b, char c){ switch (c){ case '+': printf("%d + %d = %d\n", a,b,a+b); break; case '-': printf("%d - %d = …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Validating Text Box using Java Script

    var txtusername = document.getElementById('txtusername').value; $.post('index.php',{isitinDB:txtusername}, function(data){return data;}); and index.php <? if(isset($_POST['isitinDB'])){ /* check in db $_POST['isitinDB'] and return true or false */ exit(); } ?>
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Validating Text Box using Java Script

    Hi Guys i have a formValidation Java Script on the form to validate username and password text boxes to check whether they are empty,and i am calling them on the …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Validating Text Box using Java Script

    In HTML5 you can use attribute "required" to `<input type="text" required="required" />` and `<input type="password" required="required" />` instead of your js function
  • Member Avatar for AndrisP
    AndrisP

    Began Watching what is the logical meaning of (return;)

    hii :) I've seen alot in (void)func. that at the end of it they put (return;) why they put it ??what is the logical meaning of it ?? is it …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in what is the logical meaning of (return;)

    void is no returns but can change input params e.g. #include <iostream> #include <stdio.h> void myfunc(int &a, int &b, int &c){ a += 1; b -= 2; c = a+b; …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching default constructor values

    In the following program, where is pt1 getting it's values (1, 0)? I get pt3's values (5, 10) because I can see them in the code. #include <iostream> using namespace …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in default constructor values

    if you want to set default values to (0,0) then replace lines 9 and 10 to this Point(int new_x=0, int new_y=0) { set(new_x, new_y); }
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in jQuery Function Not Waiting

    I don't know what your function returns, but maybe this will help <!DOCTYPE html> <html lang="lv"> <head> <title>TEST-PAGE</title> <style type="text/css"> #test_0 { background:#FFFF00; } #test_1 { background:#00FFFF; } #test_2 { …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching jQuery Function Not Waiting

    Hello, I'm having some problems with my jQuery script. It works correctly except it doesn't wait for the internal AJAX request to return before adding the variable data 'daa' to …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in jQuery Function Not Waiting

    You can use `$.when` http://api.jquery.com/jquery.when/
  • Member Avatar for AndrisP
    AndrisP

    Began Watching count capital letters in string

    i write a code that coun t the number of upper case letter in a string there is a problem my code count space as capital letter code is below …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in count capital letters in string

    Charcodes of capital letters is 65-90. Replace line 29 to `if(int(str[i])>=65 && int(str[i])<=90)`
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Field updating with same value

    I am trying to update the field id_key which is an unique value using uniqid() function. When I print to the screen the value for uniqid() [$id] is different for …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Field updating with same value

    If type of id_key is INTEGER then try set value without apostrophes $query="UPDATE va SET id_key=$id"; or $query="UPDATE va SET id_key=".$id;
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Google Chrome and Opera Resetting https:// to http//

    Can you guys help ? I have ssl perfectly working on my site until I updated my whmcs to the latest version and since then accessing the my website with …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Google Chrome and Opera Resetting https:// to http//

    Read this topic: [Click Here](https://www.daniweb.com/hardware-and-software/linux-and-unix/threads/466460/converting-web.config-to-.htaccess)
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    if this `<?=$row['id'];?>` don't work then replace to `<?php echo $row['id']; ?>`
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    it is not correct elements with the same ID in the one document
  • Member Avatar for AndrisP
    AndrisP

    Began Watching help with Select Case

    I am trying to calculate days between two dates so that I can find out if they fall in the 30 / 60 / 90 day bracket The calculation I …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in help with Select Case

    add `else '1'` before `END`
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mysql table view

    Yes it is!
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    { ?> <h4>Numero:<?=$row['id'];?></h4> <h4>Data:<?=$row['date'];?></h4> <h4>Ditta:<?=$row['category'];?></h4> <p><input type="submit" name="submit" id="submit" class="btn btn-primary" value="Stampa" onclick="window.location='invoice.php?id=<?=$row['id'];?>';" /> <input type="submit" name="submit" id="submit" class="btn btn-primary" value="Modifica" onclick="window.location='edit.php?id=<?=$row['id'];?>';" /> <input type="submit" name="submit" id="submit" class="btn btn-primary" value="Cancella" …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    You can replace line 10 to `} ?>` line 11 to `<h4>Numero:<?=$row['id'];?></h4>` without "echo" etc. Line 17 replace to `<?php }`
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mysql table view

    You can add where clause in this queries or select from stored procedure or view
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    It isn't problem <?php for($i=0; $i<10; $i++){ ?> <input type="button" /> <?php } ?>
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Mysql table view

    Hy i have a db with 1 collum(with 20rows) i whant to create a custom table view of this database with the sum at the end of the table but …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mysql table view

    It's a very easy - sum of column "c3" (all rows of table "t1") SELECT SUM(`c3`) FROM `t1`; each row sum of columns "c3", "c4", "c5" SELECT *,(`c3`+`c4`+`c5`) AS `sum` …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    Close PHP tag and put this button without echo ?> <input type="submit" name="submit" id="submit" class="btn btn-primary" value="Cancella" onclick="confirm('Are you sure?')?window.location='delete_article.php?id=<?=$row['id'];?>':alert('Cancelled');" /> <?php and then open PHP tag again
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Confirm in echo function

    Hy how can insert in this echo function, return confirm ? echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=window.location='delete_article.php?id=".$row['id']."'; /></p>"; i've already have onclick....
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Confirm in echo function

    <input type="submit" name="submit" id="submit" class="btn btn-primary" value="Cancella" onclick="confirm('Are you sure?')?window.location='delete_article.php?id=<?=$row['id'];?>':alert('Cancelled');" />
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Table and row replace

    You can use stored procedure e.g. DROP PROCEDURE IF EXISTS `myupdate`; DELIMITER $$ CREATE PROCEDURE `myupdate`() BEGIN DECLARE var1 VARCHAR(10); DECLARE var2 VARCHAR(10); DECLARE e BOOLEAN DEFAULT TRUE; DECLARE mycurs …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Table and row replace

    I have written some SQL code which does not appear to work. Any pointers will be provided 1. Update Table 1 Column 1 with the value of Table 2 Column …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Table and row replace

    You selected variables from t2 and t3 by the where clause, but thear miss WHERE clause to table t1
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in php and apache

    Sorry, 0775 for directories and 0664 for files
  • Member Avatar for AndrisP
    AndrisP

    Began Watching php and apache

    I just re-installed my Mint system and now I can't get php to work. I've tested apache and it seems to be working just fine, entering localhost into the URL …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in php and apache

    Recursive set owner www-data for all www directories: sudo chown -R 33 /var/www Recursive set user group to YOU for all www directories: sudo chgrp -R 1000 /var/www Recursive set …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching my onchange event not working!

    *hi guys..i have a problem with my php code..i have use onchange event..but it's not working! i don't know why! :'( *let me explain first.. - i want if i …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in my onchange event not working!

    This code check for SPACE in value: document.form1.NEGERI.value==' ' but this check for empty value: document.form1.NEGERI.value==''
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Count Total Data Base On Dropdown menu Using Jquery / Javascript

    Can Someone help me to solved my problem. How to count total of value base on dropdown? for example <label for="gender">Gender</label> <select name="gender" id="dr" > <option value="" selected="selected">Select Your Gender</option> …

The End.