• Member Avatar for AndrisP
    AndrisP

    Began Watching PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given on line

    PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given on line 31 $insert = mysqli_query ($conn," insert into user set user_name = '".$_POST['uname']."' , age = '".$age."' , page = …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given on line

    if you want insert: INSERT INTO tablename (col1, col2, col3) VALUES (?,?,?) if you want update table: UPDATE tablename SET col1 = ? , col2 = ? , col3 = …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching omiting non-like results

    I have a working search database and it's query code says $criteria = $_POST['criteria']; $query = "SELECT * FROM table WHERE field LIKE '%".$criteria."%' Order by Appeared asc"; but I …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in omiting non-like results

    You can use RLIKE instead: SELECT 'sun' RLIKE '^sun[^shine]*$'; SELECT 'sunshine' RLIKE '^sun[^shine]*$'; or use word boundaries: SELECT 'long text contain sun and other words' RLIKE '[[:<:]]sun[[:>:]]'; SELECT 'long text …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Erro PHP

    Warning: mysqli_query() expects parameter 2 to be string, object given in E:\xampp\htdocs\cadastro\cadastrar.php on line 46 Alguem pode me ajudar? <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Cadastrar</title> </head> <body> <?php …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Erro PHP

    Line 35 return object and then you pass object in next query line 38
  • Member Avatar for AndrisP
    AndrisP

    Began Watching else without a previous if error

    Can somebody help me, why this aren't working? I always get: else without a previous if PS: I'm from Austria, sorry for my bad English :) #include <stdio.h> int main(void) …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in else without a previous if error

    Hermelix, mark this thread as solved please
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Display html table from php array

    Dear friends,help me please,i have a php array,how would i display table out of it,something went wrong : <?php $data = array( array ( "Hartsfield Jackson Atlanta International","Atlanta" , "ATL" …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Display html table from php array

    Line 12 - wrong syntax comma after last element of array
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in help with a form and isset

    OOP its easy: class Vehicle { public $transmission='manual'; // default value for transmission public $doors=4; // default value for doors public $engine; // without default value private function saveVehicleForm(){ if(isset($_POST['transmissionTypeInput'])){ …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching help with a form and isset

    Hi, i bought a framework website which i am altering for a client and i am trying to add a new feature to it. i have added new field to …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in help with a form and isset

    $transmission_type = ( isset($_POST['transmissionTypeInput']) && $_POST['transmissionTypeInput']=='automatic' ? 'automatic' : 'manual' );
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Select From SQL database

    Hi Guys I am trying to select and display on the RadGrid. i am using sqlDataSource. i have 2 Tables (Users and DealerShip). User table i have attributes (UserID(pk),UserName,Email,Phoneand DealerShipID(fk)) …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Select From SQL database

    Something like this: SELECT d.DealerShipID, d.DealerShipName, u.UserID, u.UserName, u.Email, u.Phoneand FROM DealerShip d LEFT JOIN Users u ON u.DealerShipID = d.DealerShipID WHERE d.DealerShipName IN('a', 'b', 'c');
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Help Me

    WAP in C to check if the input number is positive or negative. The program should display positive if the number is 'positive', otherwise it should display 'negative'. Your program …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Help Me

    Don't use "Help Me" as a subject of topic please!
  • Member Avatar for AndrisP
    AndrisP

    Began Watching I have some confussion in PHP

    Hello, I am developing and developed couple of websites in php succeccfully but many times I have seen a query a default function of php which i see in many …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in I have some confussion in PHP

    You mean mysqli_insert_id() ? http://php.net/manual/en/mysqli.insert-id.php
  • Member Avatar for AndrisP
    AndrisP

    Began Watching ul / li menu made from database.. How to make one stay selected

    Hello Guys.... Im a first year student in web coding. Im making my exam project right now and i really need you guys help for this simple thing :D. In …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in ul / li menu made from database.. How to make one stay selected

    1) <li> inside <b> isn't ok - replace to <b> inside <li> instead 2) id need unique but in your example any <li> has same id if you want multiple …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Show selected value from dynamic dropdown list

    Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown. <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Show selected value from dynamic dropdown list

    <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student whre status='0'")or die(mysql_error()); $b=mysql_num_rows($a); if($b >0) { while($row=mysql_fetch_array($a)) { $selected = ( $row['st_id']=="id_for_compare" ? ' selected' : '' ); echo ' …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Variable in HTML/XSL attribute

    Hi, is it possible to put vaariable inside HTML/XSL attribute (style attribute) *Percent is the variable sample: <div class='rating' style='width:$Percent%;'>
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Variable in HTML/XSL attribute

    set it as variable (PHP output), e.g: <root somevariable="<?php echo 'somevalue'; ?>"> </root> put in to the XSLT file: <div class='rating'> <xsl:attribute name="style"> <xsl:value-of select="//@somevariable"/> </xsl:attribute> </div>
  • Member Avatar for AndrisP
    AndrisP

    Began Watching unknown file system error- grub rescue:

    I did my disk partition in windows7 to increase storage volume of C: drive , using "easeUS disk partition". after the partition was shown successful, my computer restarted but it …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in unknown file system error- grub rescue:

    Try this https://help.ubuntu.com/community/Boot-Repair
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in tag error with the cloneNode in xml file

    Sorry. parentNode in the your example is "movies". Use `child.parentNode.appendChild(newNode);` or `child.parentNode.insertBefore(newNode, child.nextSibling);`
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in tag error with the cloneNode in xml file

    No! NodeList movielist = doc.getElementsByTagName("movie")[0];
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in tag error with the cloneNode in xml file

    in the line 1 > getElementsByTagName is not unique selection it's a list. Try `movielist[0]` or another way: `child.parentNode.appendChild(newNode);`
  • Member Avatar for AndrisP
    AndrisP

    Began Watching tag error with the cloneNode in xml file

    I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in tag error with the cloneNode in xml file

    Line 4 replace: `movielist.appendChild(newNode);` or if you want to put new node after resource to copy then check if child.nextSibling exist then `movielist.insertBefore(newNode, child.nextSibling);` otherwise `movielist.appendChild(newNode);`
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Beginner's Tutorial On Loop

    Yesterday i completed my exercises on loop , that's why today i've decided to create a tutorial on loop in c++. # Loop # loop allows us to repeat a …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Beginner's Tutorial On Loop

    And more compact version: for(int i=0;i<10;std::cout<<i++<<std::endl);
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Don't get mysql behavior

    Can somebody explain me why does this mysql query SELECT * FROM mytable WHERE F='d2f2' AND Tot>Pmin AND Tot<Pmax omit this row ID ¦IDa¦F ¦Pmax¦Pmin¦Tot --------------------------- 124¦160¦d2f2¦200 ¦12 ¦182 thanks!
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Don't get mysql behavior

    Is the data types are identical on columns Pmin, Pmax and Tot?
  • Member Avatar for AndrisP
    AndrisP

    Began Watching linux and unix

    can unix is a version of linux operating system?? any one please explain it
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in linux and unix

    No - Linux is a version of UNIX
  • Member Avatar for AndrisP
    AndrisP

    Began Watching program run but doesnt work in right way!

    what's the wrong with this code ?? ..it doesn't make the prossecc just typing the marks then nothing !! //program to get degrees of ten students in exam and compute …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in program run but doesnt work in right way!

    `for(i=0;i<=10;i++)` it's 11 iterations use `for(i=1;i<=10;i++)` or `for(i=0;i<10;i++)`
  • Member Avatar for AndrisP
    AndrisP

    Began Watching What Languages Can You Guys Speak?

    I am just bored... and curious... and i have not made a thread here in a long time. What languages can you guys speak? Atm, for me: 1. English 2. …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in What Languages Can You Guys Speak?

    Latvian is my main language. Russian perfectly. Little English, little German.
  • Member Avatar for AndrisP
    AndrisP

    Began Watching C++ User defined Function not identified

    *** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in C++ User defined Function not identified

    If you define function after call it, then declare it before e.g. put line `int func_compare(int x, int y);` before main()
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Form

    Show source of "js/main.js" please
  • Member Avatar for AndrisP
    AndrisP

    Began Watching sumbit button

    In code there is javascript part where test the user input if negative number it will disable sumbit button. Now the problem is that I cant get to reset to …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in sumbit button

    You can use `<input type="number" min="0" />` instead of disable submit button in HTML5.
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Form

    Hello, I am trying to create a form, yet I wonder why the form does not works like usually: index.php <form action="login.php" method="POST"> <input type="text" class="form" name="email"><br> <div style="margin: -60px …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Form

    It seems that your submit clickable controlled by javascript
  • Member Avatar for AndrisP
    AndrisP

    Began Watching I can't add my values

    I can't seem to add my values from my function. ## I keep greating NaN. ## Here is the html code: <!DOCTYPE html> <!-- grocery.html A document for computeCost.js --> …

The End.