17,029 Solved Topics
Remove Filter ![]() | |
Hi, I am trying to download data using a dataset, but I keep getting the error "Failed to enable constraints" On Debug, I get the suggestion 'Relax or turn off constraints in your dataset" refers to "aRow.EmployeeID" my dataset has this query: [CODE]select isnull(c.Answer,'') Answer,isnull(b.Comment,'') Comment from Questions a left … | |
I'm trying to output the results of an array to a table. To be more specific, I'm trying to output pictures ... let's say 5 pics per row for example. Below each pic I'd like to display a few options like delete, etc. I'm not looking for the answer, just … Web Development php | |
Hi, everybody: I have written an include file in my php file "main.php", with and include "ip.php", which is: <?php function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])){ //check ip from share internet $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ //to check ip is pass from proxy $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else{ $ip=$_SERVER['REMOTE_ADDR']; } return $ip; } ?> … Web Development php | |
[CODE]Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\reg.php on line 3 [/CODE] it just comes up with that and this is the only code i have [CODE]<?php session_start(); mssql_connect("Philip-Pc\DRAGONICA", "sa", "123456"); ?>[/CODE] any ideas? | |
I have a JQuery script that gives a neat effect on the navigation and want to include a simple fading slideshow on the same page. Any script I have tried for the slideshow either uses JQuery or Mootools and it conflicts with the navigation script. Can anyone recommend a smooth … Web Development javascript javascript-jquery | |
Hi again!! I am stuck into a new problem.I have a invoice form with regular fields in it and when the user press the print button, I want to print it out in desired formatting like, company name, address etc. at the top of the page, and so on. Can … | |
Here's the code: [code] if ($result) { if ( $num_rows > 0 && $type = 1 ) { session_start(); $_SESSION['login'] = "1"; $_SESSION['loginname'] = $row['NOM']; $_SESSION['centreAFB'] = $row['CENTRE']; header ("Location: xxxxx.php"); } else if ( $num_rows > 0 && $type = 2 ) { session_start(); $_SESSION['login'] = "1"; $_SESSION['uname'] = … Web Development php | |
Hi!! I have a simple script of displaying client work history in following manner: [CODE]<?PHP $query1=mysql_query ("SELECT existing_clients_work_history.history_description, existing_clients_work_history.history_history, client_master.client_name FROM existing_clients_work_history INNER JOIN client_master ON existing_clients_work_history.client_id=client_master.client_id"); if(mysql_num_rows($query1) > 0) { echo "<table align='center' border='0' width='1000'>"; echo "<tr class='style1' align='center'> <td>Client Name</td> <td>Work Description</td> <td>Work History</td> </tr>"; while($row1=mysql_fetch_array($query1)) { if($row1!=0) … | |
hi, this is my php code i need pagination for this page.. help me please.... [CODE=php] include('connection.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Expires" content="Wed, 01 Jan 2020 00:00:01 GMT" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Script-Type" content="text/javascript" … | |
Hi, I am fetching from a table and updating it back. I am fetching and populating the form. User will modify the form and then update the table. Everything looks fine but update and delete query is returning '0' Here is a code snippet: [CODE] qid = (Integer.valueOf(iterator.next().toString())); answer = … Web Development java-jsp | |
Hi I am working on a website that users can use to create their own blogs. But I have hit a problem. Whenever I try to create a new file with the members username in. The rest of my script works perfectly. Can anyone see a problem with my code. … Web Development php | |
I have one MySQL database field which saves comment from users. Some comments have new lines but when I try to use PHP to display the contents of the database, the new lines are ignored. I know about nl2br() but I guess it will not work as my users will … | |
Hi, I am new to web development, i need to develop a comment box, and save those comments in a file( either database or normal text pad), so that i can retrieve them later and display them on my web. My server does not support php or anyother special scriptin, … Web Development javascript web-server | |
Basically I have to create a website for this community project our class in school is doing. It is coded in entirely php and html because I hate writing javascript. Cut to the chase, there is a photo gallery and a semi-secret log in that you can log into for … Web Development first-post php session | |
I can code it with this account just click on a link I need one that relies on various link on the same page. codigo need cookie. <script type="text/javascript" src="file:///D|/Downloads/cookie.js"> </ script> <script type="text/javascript"> var = CookieUtil { get: function (name) { var cookieName = encodeURIComponent (name) + "=" cookieStart … Web Development javascript | |
So heres my issue... I am a student studying php and as a project am making an online php phonebook. It is database driven, and currently I am having issues with the delete page. the code for this is below and the website is online and said page can be … | |
Hi there, Got some form validation but doesn't seem to even be running through it. First off the form is displayed, if you click in 'Name:' the 'ID:' box disappears so that you cant type in both, after it disappears (and vice versa), the validation should check its correct, but … Web Development javascript | |
Hi people I have radio button list populated from database. By default first value is selected. How can i call JavaScript function if user selects another value in radio button list. Web Development asp.net javascript | |
Guys, just a quick question, is there any way to get this AJAX to be called on a button click? I know how to use buttons to call JS functions but I'm not sure where to add the open and closing parentheses with this AJAX...I've tried encasing different parts, but … Web Development javascript | |
![]() | I want to get details of user when he registers with my website for security reasons. I need ip and date and time I guess. Is there anything else I need to cache while registering? How to get ip,time and date? And time will be in which timezone? I want … ![]() |
Hi I wanna when checkbox checked write 0 to 5 in my list box please help me thanks Web Development asp.net | |
I am using ajax to pass php variable to javasccript function as shown below for my particular application. i am using the foolowing function from ajax.js freely available from net to implement the ajax functionality as var abc = new sack(); PHP portion which passes the response text: ************************************ <? … Web Development javascript | |
I am trying to have a search bar where user will input a string ($var) which after i will search that sting in the field named: "itemname". i will search all the different tables in the database and create a new temporary database named: searchtable. seachtable should contain all the … | |
Hi, I have a HTML document with form. The form has several radio buttons. I want different elements of HTML (including <input> elements) to appear when each radio button is selected. Also, it is intended to show only those elements for a specific radio button. For example, if i select … Web Development html-css javascript | |
I have a client-side form and it submits to itself using the 'GET' method. When the form is submitted, I can get the results, but I can't seem to hide the form itself. Is there a way of doing this using Javascript in an ASP file? The document.getElementById("myDiv").style.display="none" doesn't seem … Web Development javascript | |
I'm using the method below as a button-click event on an ASP.NET 4.0 page. The first alert box (ClientScript.RegisterStartupScript(...)) works fine, the second I haven't tested yet; but the third doesn't produce an alert - and it doesn't produce an error either. Can anyone suggest what I'm missing here? I'm … Web Development asp.net | |
Using Wordpress with update_user_meta and php array. Had a quick question regarding dynamic input fields and posting it to php. [CODE] <input type="text" name="test[]" /> [/CODE] These fields get added dynamically as well using jquery which works fine, the issue im having is posting the array individually. To save this … | |
I am trying to put together a script and need to be able to list a number of countries and to then say, in the script, if the country is listed in the above do something... The problem is that I do not want to have to specify each and … Web Development php | |
First page adds a new job number, then the order page loaded with the job number id as a get id. Basically there is a while loop in the order page which shows products/services client can order and he chooses what he requires 'one or eight services' (8 in total) … Web Development php | |
Hi, I'm a total newb. I'm wanting to test out a PHP program so I installed apache on my Win7 machine along with PHP. I actually used the wamp install that installs the above along with MySql and some other goodies. Anyway, it all seemed to install fine but when … | |
[CODE]function name_free(value, element){ //validation rule var result; if($('input[name="name"]').val() != value) { //console.log($('input[name="name"]').val()); $.post(CI.base_url + "admin_/info_psl/name_check_ajax", { pavadinimas: value}, function(data){ //console.log(data); if(data == 'true') result = true; else result = false; }); } else result = true; //jei vienodi tai viskas ok console.log(result); return result; }[/CODE] when if($('input[name="name"]').val() != value) is … Web Development javascript | |
![]() | Hi all. Got a bit of a problem with this. Here's my code: [CODE]<?php header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo strtolower("TWIUBCÜ"); echo "TWIUBCÜ"; ?> </body> </html>[/CODE] OK, perhaps the header … ![]() |
Hi My website if falling to bits around me and I cant see why!! All instances where I have used the ! operator in the php code such as [CODE]if(!isset($_POST['anything'])){[/CODE] Have stopped working and just return true which is causing nightmares with security ect. I have googled till im blue … Web Development php | |
I am having a little bit of trouble coding a registration form. The text fields are no problem, its when I have a selection of checkboxes asking why they chose to register with this particular website. There are 3 checkboxes and 3 fields in the mysql table for them, the … | |
So I have a script that is processing results of a form. What I'm trying to do is to set a variable by the results of a dropdown. This variable is a filename. Here is the PHP that processes it: [CODE]if ($industry = "Coal and Power") {$link = "Coal-and-Power-portfolio.pdf";} elseif … | |
Hi, I am looking for some information about using Underscores ( _ ) in usernames. I currently have a friends system where a user can become friends with another user and this is placed into a database. I then have a query to display all of the users friends, which … | |
I want to output my data into a list ordered like this [CODE] <ul> <li>[I]category name[/I]</li> <ul> <li>[I]category item[/I]</li> </ul> <li>[I]category name[/I]</li> <ul> <li>[I]category item[/I]</li> </ul> </ul>[/CODE] when I try a foreach loop like this [CODE]<? $previous_catagory = null; ?> <? foreach ($providers as $provider): ?> <? if ($provider['catname'] !=$previous_catagory) … Web Development php | |
I have a bunch of code [CODE] var xmlDoc = new ActiveXObject("MSXML2.DOMDocument.3.0"); xmlDoc.async=false; xmlDoc.loadXML(sHTTP); var rootElement = new String(xmlDoc.documentElement.Name); Response.Write(rootElement); [/CODE] The problem is that when I try to display the rootElement Node Name, it appears as 'undefined' on my browser. I also tried xmlDoc.documentElement.NodeName. Any help will be greatly … Web Development javascript | |
Hi ppl, I am facing this weird problem with php newline character. [CODE] <?php echo"Hello World!! \n Im new to php"; ?> [/CODE] can anyone pls point out what is wrong in the above code?? the output should be: Hello World!! Im new to php but the output goes on … Web Development php | |
how to change the texebox properties through php? plz give syntx or any little example. Web Development php | |
Hello If I have one radio button list with one required field validator and I press a submit button without making a choice I get an error message, I can make a choice and everything is fine and dandy. The problem that I am having is that if I have … Web Development asp.net | |
Hi..I wish to prevent users from entering the web pages of my application again using back button once they've logged out.How can i achieve this?..I do not wish to use no-cache,history() etc as they're not fool proof. Also i want to know how can i prevent users from directly entering … Web Development java-jsp | |
Hi there, Got a javscript problem that im working on where the validation doesn't do what I think it should. From stepping through the code, when the [B]pound and pence fields on the form are blank[/B], but the [B]name is filled in[/B], it should error at "Please fill in value … Web Development javascript | |
Hello, I am fairly new to PHP and MySQL so I apologize if I am just being lazy and/or stupid on this. I searched previous threads and found this one [URL="http://www.daniweb.com/forums/thread178612.html"]Insert data into two tables using php and mysql[/URL] It helped me tremendously but only to a point. Below is … Web Development php | |
Hi I am trying to get this function to work but having issues [CODE] // check that policy number not entered on the DB if no policy is entered skip Mysql query function validatePolicyNumber($PolicyNumber){ //Return Session Value so user does not have to retype entry return $_SESSION['PolicyNumberAdd'] = $PolicyNumber; $Connection … | |
Hello frnds... i want to send mail with attachment using mail function.. Any one can u pls give me the solution. Shanti Web Development php | |
I am not getting the difference between the [B][COLOR="Red"]action and onsubmit[/COLOR][/B] tags of the form in html. [CODE] <form method=GET action="xyz.php" onsubmit="return xyz()"> [/CODE] my problem is [B][COLOR="Red"]"which will be called when"[/COLOR][/B] and [B]limitations of each tag[/B].Kindly Help....:( Web Development javascript | |
example: [CODE]<img src="img.jpg" alt="" /> <a href="#" alt="" />[/CODE] i want to do someting if the string="alt" exist in the img tag and someting else if the alt exist in the href tag | |
i'm new in php, especially php array and i wanna learn more about array, i found this forum sound interesting to solve my problem. i have some array like this : [CODE] Array ( [0] => Array ( [0] => Printer_B //printer [1] => IDDHARMAHE //user ) [1] => Array … | |
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\eUTM\login\logincheck.php on line 13 here is the code: <?php //login check require_once("dbconn.php"); $con=connectdb(); $idpengguna=$_POST['idpengguna']; $katalaluan=$_POST['katalaluan']; //login PELAJAR from table pelajar $pekerja_query="SELECT * FROM pengguna where idpengguna = '$idpengguna' AND katalaluan = '$katalaluan'"; $pekerja_result=mysql_query($pekerja_query,$con); $pekerja_row=mysql_fetch_array($pekerja_result); if(!$nama_id && !$katalaluan) { $err=1; … |
The End.