- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
79 Posted Topics
Re: Your SQL statment is failing so the mysql_query is returning a boolean value (false) instead of a result set. Make sure that your SQL statement is valid. ![]() | |
![]() | Re: See this thread: [url]http://www.daniweb.com/web-development/php/threads/359979[/url] |
I have this PHP program: <?php echo 'Start of Soap Request<br />'; $client = new SoapClient("http://192.168.201.67:10010/web/services/getItemDesc?wsdl"); print_r($client); echo '<br />Start of Var_Dump<br />'; var_dump($client); echo '<br />Result Print<br />'; $result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" ")); print_r($result); ?> That access a web service on my iSeries. I can get … | |
Re: There is a mismatch in the columns being listed and the VALUES being inserted make sure that whatever columns you have in $dblist mathc everything you have in the VALUES. If it is too hard to compare create an $sql var that holds the whole sql statement and dump or … | |
I have a Web Service I setup on the iSeries. It works when using SOAPUI and it works from the Built in test facility in the Native Web server. But when I try to access it form the following PHP program it fails to return any data. I am obviously … | |
I am using Visual Studio 2010 and I am trying to enter some HTML by hand. I code the following lines: [CODE] <tr> <td colspan="4" class="shade tableheader">NCR Information </td> </tr> <tr> <td class="shade">Date Opened </td> <td><asp:TextBox ID="fldReportDate" runat="server" CssClass="datePicker"></asp:TextBox> </td> <td class="shade">NCR # </td> <td style="font-weight: bold; font-size: 12pt"><asp:Label ID="fldLog" … | |
Re: Have you dumped the session variable to the screen to see if it really does contain a value? Maybe it is there from a previous signon. Instead of comparing the session variable to '' try the empty() function. | |
Re: Look Here: [url]http://www.w3enterprises.com/articles/using.aspx[/url] | |
Re: I thought that pulling images from a database was quite an expensive operation. Why not store the file path in the database and then just set the [B]imageurl[/B] parameter of the <asp:image> tag to the path you read out of the database. This would be eaiser and would not require … | |
Re: I have no idea what your column names are so substittute your column names for 'fld1'. You can concatenate any series of column names and HTML together to get your desired results. [CODE] <?php $firstname = $_post['firstname']; $query_Recordset1 = "SELECT * FROM cust WHERE name='$firstname'"; $Recordset1 = mysql_query($query_Recordset1, $tests) or … | |
Re: I like the jquery library because your can change you code to be easier to read and look like this: [CODE] $('#elementId).change( function() { if ($('input:radio[name=bar]:checked').val() == 'Option A') { $('#element2).show(); } }) [/CODE] I think you have use a unique [B]ID[/B] for each radio button while you can use … | |
Re: Some trojans attach themselves into the operating systems IP stack. The IP stack is basically a list of programs or processes that handle the data coming into your PC. Some trojans will embed themselves into this stack so their removal cause a 'hole' in the stack and the process is … | |
Re: There is a comma before and after the WHERE clause. The last SET does not need a comma and ommma at the end will also cause an error. The last line of the SQL sould look like this [CODE] & "AdditionalInfo=@a34 WHERE (ID=@a35)", Con) [/CODE] | |
Re: All of the code between <?php and ?> is executed on the server and the variables that you are using in the PHP script do not retain their values. Once you submit a form the values are in the corresponding $_POST[] variables so your [B]if ($Submit) [/B] is acuually looking … | |
Re: You are opening and closing the PHP tags quite a bit, This is not necessary for most of your code. The script is going to be processed from top of the file to bottom. It appears that you are calculating the $total before you calculate the $carprice or $carcondition. In … | |
Re: You should be using || instead of |. The || is for comparison and the | is a bitwise operator and I do not think that you are trying to shift or combine bits. | |
Re: You can perform your own test inside the loop and use the [B]break[/B] statement to break out of the loop. | |
Re: Are you connecting to the database with a mysql_connect()? You can echo out your $query variable, copy the SQL command and run the query directly against the database. This will return a specific error if there is a problem with the SQL statment. You should also check the validity of … | |
Re: I have been very successful removing Malware and virus with MalWareBytes. I have used this product to clean the laptops of students at the university I worked at. It is pretty thorough. The software can be found at [url]http://www.malwarebytes.org/[/url]. There is a free version which I have used exclusively and … | |
Re: You will need to look at a server side scripting language like PHP, JSP, ASP, ASP.Net, etc ... | |
Re: [LIST=1] [*]Your hosting server needs to be running a webserver, hopefully runing on port 80. If not, just make a note of the port. [*]Get the ipaddress of the hosting server. [*]If there is a firewall running on the hosting server, make sure that you open that port. [*]Goto the … | |
Re: ASP.NET is an application framework and one of the languages you can use in that framework is C#. So whatever restrictions are on ASP.NET are also on C#. If you want to use a Linux server then you will not be able to use C# and ASP.NET (I may stand … | |
Re: Take a look at the [URL="http://headfirstlabs.com/"]Head First[/URL] books. They have an interesting way of looking at things. They are pretty easy to read and provide pretty good explanations and examples | |
Re: Remove the [B]style="height:0px"[/B] from the [B]flags [/B]div. | |
Re: Why do you have the [B]department[/B] table as part of the query? I would only guess that the last name resides in the employees table. You shoudl try something like this [B]UPDATE employees SET last_name = 'munir' WHERE emp_id = 11[/B] ![]() | |
Re: Usually when you get that error message that you listed there is an error with the Query. When mysql_query returns a boolean instead of a result set it has caught some sort of error. Echo out the mysql_error and and mysql_errno, nonshatter's query should have worked. You can also try … | |
Re: I am not sure what is in the variable $rateid that you are using in your Query variable, but I think you are constructing the SQL UPDATE command. it looks like the variable [B]$rateid[/B] holds the current rate variable and so does [B]$edit_id[/B]. So, for example if the rate ID … | |
Re: [url]http://javascript.about.com/library/bltoword.htm[/url] | |
Re: It would probably be easier if you declared a string and then moved it after the loop. I also declared a string variable so you don't have to mess with messageLabel and object notation inside the loop. This will print all of the numbers between 0 and 10 (inclusive). [CODE] … | |
Re: What are you asking? You are echoing the contents of a zip file so it will look like junk characters. You have to some how unzip the file either from the 'download' or via a php function. Here is the PHP manual with all of the zip functions: [url]http://php.net/manual/en/ref.zip.php[/url] | |
Re: Make sure that you check all of your includes and make sure that there are no extra lines before or after the opening an closing <?php ?> tags. In notepad this is often hard to see. If you cursor goes past the closing tag make sure you delete everything (even … ![]() | |
Re: You may need to test to make sure that the value returned from the database is not a null before converting it. | |
Re: Are you just looking for a date picker to attach to a textbox or is there some other need for a month/day drop down list. If you look at jQuery there are a bunch of date picker apps already built. If you truly need a Month and Day drop down … | |
Re: I am not sure what you are trying to accomplish with this code, but in order to update a record you have to use the SQL UPDATE command and specify which records you wish to update (with the WHERE clause) and which fields you wish to populate (with the SET … | |
Re: The Uppercase warnings look like the site was first built using the older HTML standards which allow upper and lower case in the tag names and attributes. Since moving over the it looks as if you are using the XHTML 1.0 standard which does not allow upper case in the … | |
Re: It sounds like PHP is not instaled correctly on your PC/Server. You can get the latest PHP download @ php.net. Make sure that you follow the install directions for PHP on IIS 7.0. Also... Make sure that you have told it that .php documents are to use the PHP ISAPI … | |
Re: Check the name of your submit button it should match what you put inside the $_POST[] array. I would guess that you capitalized the name on the button or forgot it completely. | |
Re: I am not sure that it makes sense for a user to be able to change their password from a login screen. It would normally be a function that the user can access after they have logged on. Once the user is properly logged on, then you can present them … | |
Re: Try booting up in safe mode. I beleive that you press f8 after the toshiba screen (it might be f6). This should start the computer with the bare minimum of the operating system and most programs will not be loaded. You can then try your antivirus software. I use Malwarebytes, … | |
Re: You should always have server side validation regardless of whether or not you use client side validation. There are so many ways to send bad data to a web page you always want to make sure that it is clean before you process it or use it in any database … | |
Re: try [CODE]SELECT id, SUM(exam_Fee+transport_Fee) FROM fee_info group by id[/CODE] This will create a result set with two fields, the id and the sum of exam_Fee + transport_Fee. If you only want the sum for one record use the where clause. [CODE]SELECT SUM(exam_Fee+transport_Fee) FROM fee_info where id = 2313[/CODE] You could … | |
Re: In Web Developer you can add Validation Controls which will validate the user's input on the client as well as on the server. Here is a video on how to use them: [url]http://www.asp.net/general/videos/how-do-i-use-validation-controls-in-aspnet[/url] | |
Re: htdocs is the default root for apache servers, inetpub is the default root for windows server. But it looks like a hosted site and public_html is where your files shold reside. I do not see any issue with the resizing (of course I am using FF4.0) except that I am … | |
Re: There are javadcript functions to intercept the screen right click function: [url]http://javascript.internet.com/page-details/disable-images-click.html[/url] Any savvy user can easily circumvent this, but it does force the user to use a work around. I have seen another trick where the background for an element is set to the image you want and then … | |
Re: You put a " (quote) at he wrong place near the end of the statement. WHERE id=' . "$_SESSION['uid'] should be WHERE id='" . $_SESSION['uid'] If you are not using an PHP editor, Netbeans has a PHP editor that would have helped you locate this error. | |
Re: Here is a good explanation [url]http://sharkysoft.com/tutorials/jsa/content/045.html[/url] | |
Re: Look here: [url]http://en.wikipedia.org/wiki/Boxing_the_compass[/url] | |
Re: There is a updatemode on the update panels that you can set to conditional. Here is a tutorial on how to use it: [url]http://www.asp.net/ajax/videos/how-do-i-use-the-conditional-updatemode-of-the-updatepanel[/url] | |
Re: If you are asking a question at this level I doubt very seriously that your teacher wants you to delve into ajax calls. PHP is a server side language and javascript is a client side language. In order to use PHP you have to have a web server with PHP … | |
Re: Your parms are reversed and the databse parm can be left out if you wish to use the last link open. Most pages only open one link anyway The Syntax (from the manual) is: [B]resource mysql_query ( string $query [, resource $link_identifier ] )[/B] [url]http://php.net/manual/en/function.mysql-query.php[/url] |
The End.