-
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 = … -
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 = … -
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 … -
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 … -
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 … -
Replied To a Post in Erro PHP
Line 35 return object and then you pass object in next query line 38 -
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) … -
Replied To a Post in else without a previous if error
Hermelix, mark this thread as solved please -
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" … -
Replied To a Post in Display html table from php array
Line 12 - wrong syntax comma after last element of array -
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'])){ … -
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 … -
Replied To a Post in help with a form and isset
$transmission_type = ( isset($_POST['transmissionTypeInput']) && $_POST['transmissionTypeInput']=='automatic' ? 'automatic' : 'manual' ); -
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)) … -
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'); -
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 … -
Replied To a Post in Help Me
Don't use "Help Me" as a subject of topic please! -
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 … -
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 -
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 … -
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 … -
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 … -
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 ' … -
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%;'> -
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> -
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 … -
Replied To a Post in unknown file system error- grub rescue:
Try this https://help.ubuntu.com/community/Boot-Repair -
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);` -
Replied To a Post in tag error with the cloneNode in xml file
No! NodeList movielist = doc.getElementsByTagName("movie")[0]; -
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);` -
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 … -
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);` -
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 … -
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); -
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! -
Replied To a Post in Don't get mysql behavior
Is the data types are identical on columns Pmin, Pmax and Tot? -
Began Watching linux and unix
can unix is a version of linux operating system?? any one please explain it -
Replied To a Post in linux and unix
No - Linux is a version of UNIX -
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 … -
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++)` -
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. … -
Replied To a Post in What Languages Can You Guys Speak?
Latvian is my main language. Russian perfectly. Little English, little German. -
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 … -
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() -
Replied To a Post in Form
Show source of "js/main.js" please -
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 … -
Replied To a Post in sumbit button
You can use `<input type="number" min="0" />` instead of disable submit button in HTML5. -
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 … -
Replied To a Post in Form
It seems that your submit clickable controlled by javascript -
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.