52,566 Archived Topics
Remove Filter ![]() | |
how can i use if statemend with strings in php? and example is the following code: <?php $url = $_GET['url']; $length = strlen($url); $url = explode('/', $url); print_r($url); echo "<BR>"; if($length >= 0){ echo "URL excits"; } if($url[0] = 'home'){ echo $url[0]; } but whenever i pass a parameter in … Web Development php ![]() | |
Hi all, I'm trying to get some values from my database using data reader. Its my first time in using dataReader and I have this error "Value of type 'System.Data.SqlClient.SqlDataReader' cannot be converted to 'String'." My code Public Sub LogIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim … Web Development asp.net open-source visual-studio | |
Hi All, My URL is [url]http://localhost/project/insurance.php?link_id=NDI=[/url] i want to get only [B]insurance [/B] from the above url how can i do it ? pls help thanks. Web Development php ![]() | |
One question: How do i differentiate when a page is refreshed event from a page/browser closed event? Because it seems that the onbeforeunload event is triggered when a page is refreshed and when it's closed, and i didnt want that to happen ? Web Development javascript web-browser ![]() | |
Hi, On google Chrome there is an event when someone closes the window that merely asks if you really want to leave ONLY. What i wanted was to know if there is a way in jquery or javascript that enables the logout code to be run on chrome,(or any other … Web Development javascript-jquery php web-browser ![]() | |
I'm getting a null pointer exception pointing to the line containing [COLOR="Green"]dispatcher.forward(request,response); [/COLOR] Any suggestions as to where i have gone wrong. it wud be of gr8 help... thanks in advance:)[CODE] ArrayList empList =EmployeeDao.getEmpDetail();//this is defined already request.setAttribute("empList",empList); RequestDispatcher disp = request.getRequestDispatcher("/myPage.jsp") disp.forward(request,response);[/CODE] [CODE] ArrayList employeeList=null; ArrayList employeeList=(ArrayList)request.getAttribute("empList"); if(!employeeList.isEmpty()) { … Web Development java-jsp | |
How do i collapse data i pulled out of mysql? I have a messaging system that shows all messegse between you and another member. <table border='1' width='100%'> <?php $ID = $_COOKIE['idCookie']; $memberid = $_GET['id']; $query = mysql_query("SELECT * FROM `private_messages` WHERE to_id='$ID' AND To_Deleted='0' AND from_id='$memberid' OR to_id='$memberid' AND from_id='$ID' … ![]() | |
Hi, I have a php file that contains the queries as strings. I have wrote the following query: SELECT message_no, sender, destination, time_received, type, reference_no, message FROM messages WHERE message LIKE '%:substring%'; :substring is then assigned a value from $substring. The query works when i run it directly in cmd … | |
Hi! Im a noob to PHP but had to use it instead of ASP because I couldn't retrieve images from database using ASP + MS Access... Anyways.. I have couple questions: Number 1: How to retrieve and displaymultiple(!) images(jpg) from mysql DB? NUmber 2: I have a main page that … Web Development http-protocol php seo web-browser | |
Hello everyone! How do you write a PHP function in codeigniter that lets user download data to an Excel file? Thank You. Web Development php php-codeigniter | |
I want to display an image from database so i am using this script: <?php header("Content-type: image/jpeg"); $username = "root"; $password = "root"; $host = "localhost"; $database = "binary"; mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $id = 3; … Web Development php | |
Greetings guys i just want to ask on how to update the gridview at runtime. I set the AutoGenerateColumn to true but nothing happens. I appriciate every idea. Thanks in advance. Web Development asp.net | |
I have this jquery code below and I need it to attach events on controls as the controls are created dynamically. Right now they are set for a specific control. Thanks $(document).on("click", "#day1Header", function () { $("#day1Details").slideToggle("normal"); $(".expandDay1Details").html($(".expandDay1Details").html() == 'CLOSE' ? 'EDIT' : 'CLOSE'); }); $(document).on("click", "#day2Header", function () { … Web Development javascript | |
Hi, I make two tables, one of them named operator, used to enter the mobile line operator name and the other one name directory, used to enter name, surname, mobile number and the id of the operator. I make a page to display all data from directory table and call … Web Development php ![]() | |
Hi, I've been strugelling with this code for days now, I new at javascript and really need help. This code worked perfectly and then just stopped working. I want the divs to change on a mouseover event, so basically when you hover over a td it goes to a other … Web Development javascript | |
HI I am developing a web service client using netbeans ide . I have used the code completion feature to implement the submit message method : import javax.xml.bind.JAXBElement; import uk.co.csoft.www2.dtd.sendsms5.Message; import uk.co.csoft.www2.dtd.sendsms5.ObjectFactory; import uk.co.csoft.www2.dtd.sendsms5.Recipient; public class Main { public static void main(String args[]) { //Recipient r = new Recipient(); //Message … Web Development api java java-netbeans xml | |
Hello, so none develper needing assistance... I am trying to change a class tag to a sub menus <ul> tag within Drupal 7. I have a main nav and sub nav each has the class - menu. I am trying to change the sub nav class attribute. So... <ul class="menu"> … Web Development php ![]() | |
Hi, I'm working on a website where i have the list of all products and its info: image, description, reference and a button to see more images of the product. I want to create a checkbox that when is checked all the info is hidden except the image. I'm using … Web Development html-css javascript javascript-jquery ![]() | |
Greetings, guys can you help me with this error? Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\email_verify\register.php on line 63 Web Development php | |
I wonder if someone can point out where I'm going wrong with this code. My aim is to control the visibility of an UpdatePanel with a CheckBox. The CheckBox is located on the same form, but not adjacent to the UpdatePanel. ScriptManager is present, but when browsing, checking the CheckBox … | |
I recently been assigned a project to develop an internal web service that makes use of an outside service from Sprint. the only thing I have is a .wsdl file web reference from Sprint. When I add the web reference to the project and compile my code, I get a … Web Development xml | |
i have an table in which certain columns are there i want to edit the data whenever i click on the button in front of a that particular row Web Development php | |
Hello I have some PHP code that will extract data from multiple tables and present it with mpdf as a PDF. Everything is working well except i only get the last row instead of all rows with one of the while statements. I realize that it's not optimal to run … | |
Hello, Please advise how to remove white spaces before and after a sentence only. Example: " This is a sentence. " should be "This is a sentence." Thanks. Web Development php | |
Hi Everyone, I am very new to web design and just starting to get the basics of CSS and html. Designing is so much fun! My site includes articles and I thought it would be cool to include a comment box. Before coming here I have read many many posts … Web Development database-design html-css php web-design | |
Hello, we are developing new website. this concept is search users with there skills. for example i want to search 'php developers' from my website. it search whole web and return results. i mean it returns who are the php developers from all like google,bing,yahoo,linkedin,skillpages,facebook etc., is there any way … Web Development php | |
Hi guys...I need some help in matching data from results of checkboxs and radio buttons. My Intentions: There are 3 radio buttons and 8 check boxes. Users can select any one but cannot don't select at all. I separate the calss and categories because for classes, users can only select … Web Development php | |
Hi, i'm doing a table that show products that you search for...Now i have a proble with the image and the category of the product they don't appear in the page: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM produtos WHERE nome LIKE '%".$prod."%'"; $produt=mysql_query($query_prod, $futura); $count=mysql_num_rows($produt); $prod_img="SELECT * FROM … | |
How to maintain a set session for multiple pages only if a user is logged in? Need help as quick as possible Thank you | |
Greetings guys, can you help me about this error? the error say's Notice: Undefined index: username in C:\xampp\htdocs\email_verify\index.php on line 23 Notice: Undefined index: password in C:\xampp\htdocs\email_verify\index.php on line 25 <?php session_start(); if(isset($_SESSION['error'])) { echo '<p>'.$_SESSION['error']['username'].'</p>'; echo '<p>'.$_SESSION['error']['email'].'</p>'; echo '<p>'.$_SESSION['error']['password'].'</p>'; unset($_SESSION['error']); } ?> Thanks in advance. Web Development php | |
How I can write the below query in PHP ? In my query I have sepcial characters like single quote (') ampersand (&) `update onlinepg (short_description, long_description) values ('PG for Girls/Ladies/Women in Kasmiri Rd, heart of the Agra city with fully furnished, 2/3 times homely food and all basic amenities.', … Web Development php | |
Hi, I don't have any idea about regular expression. Can some on please suggest a good website for regular expression Tutorial. Also 1.Can some one please help me to generate a regular expression meeting all these requirements * A strings minmum length must be 3 charcters, and maximum length must … | |
Hi evreybody,sry before i posted wrong title name,very sory for my bad english I have a users table which I want to display 5 records then take a new row, display 5 records, take a new row... plz anybody help me. this is the mysql query $planbook_obj= Doctrine_Query::create()->select('p.personal_id,p.photo,p.title_name,p.zone_id,p.place,p.occasion,p.itinerary,p.description,p.date')->from('planbook p'); $result … | |
Hi, i'm working on a website where i have the list of all products with image, category, name of the product and its reference. What I'm trying to do is creating a checkbox and when it is checked it erases all that info (category, name of the product and reference) … | |
Hi everybody, Now,this table print in vertical(one by one) type.but i need table print the following method. how can,i make it,plz help me. 1 6 11 etc ..... 2 7 12 etc 3 8 13. 4 9 14 5 10 15 etc this is the mysql query $planbook_obj= Doctrine_Query::create()->select('p.personal_id,p.photo,p.title_name,p.zone_id,p.place,p.occasion,p.itinerary,p.description,p.date')->from('planbook p'); … Web Development php | |
How do I move my first thumbnail left an and have no space at end on right side? http://www.rendemolition.com/patio1.html Web Development | |
Hello, can some one help me with the below code? I am trying to create a multiple image upload form that displays the images. I want to save the image name into my msql database and save the actual image into a folder in my dirrectory. <?php define('UPLOAD_PATH', $_SERVER['DOCUMENT_ROOT'] . … | |
![]() | Morning, I'm attempting to perform a preg_match against a regular expression to identify whether it's a YouTube video or not. I've got, I'll admit, the regular expression from elsewhere... \s*(https?:\/\/www.youtube(?:-nocookie)?.com\/(?:v|embed)\/([a-zA-Z0-9-]+)).* This appears to work fine. However, I'm getting the following error when I attempt the preg_match... WARNING: [filename].php:[line] - preg_match() … ![]() |
![]() | Hey there My issue is the following: I have a windows-based xampp-apache server with which I would like to make sub-sub domain redirects to subdirectory: I have a domain, for which on the cpanel I've made an A-record to my IP address: The sub domain is *.dev.bestudion.net. Whay I want … |
I basically trying to capture the input information then print the on the screen. Noted, that I must implement filter input and escape output. Please checked whether this result is correct: receive.php <html> <?php $nama = isset($_POST['nama']) ? $_POST ['nama'] : ''; $color = isset($_POST['color']) ? $_POST ['color'] : ''; … Web Development php | |
Hi, Daniweb I'm working on a website where i did a search system and then i listed the results founded. And now i want to move them with JQuery Sortable. But i'm having dificults can someone help me please? Here's the code: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM … Web Development html-amp html-css javascript javascript-jquery | |
How to create code inputbox insert link url? same image [Click Here](https://lh4.googleusercontent.com/-OXkT7nmxWJM/T6pByj9zwNI/AAAAAAAAAE8/RzbL6VdoQI4/s575/inputbox%2520.png) Thanks all! Nice day. Web Development php | |
Hi, I need to pass full content of `$_FILES` to third page but fail to do so. File is selected once in first page. It might look wierd but It has to work this way. If I use session `$_SESSION['csv_file'] = $_FILES;` in page 2, I cannot read the content … | |
Whenever I tried to access Oracle DB from PHP , it shows error Everything is ok, Path is okay. I changed php.ini file to. I am using old version of xampp Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the … Web Development client-server oracle php | |
Hi, How can I read a file content without uploading it to the server? I know that we use `$handler = fopen('regular.csv', 'r');` to read an existing file on server but what if doesn't exist. Obviously `$_FILES` is used to move file to server first but I don't have any … Web Development php | |
![]() | I have a calendar code that contains a table with the td for days of the month as follows: <td class="event"> <div class="eventList" title="Events For Today"> <ul> <li>Event 1</li> <li>Event 2</li> </ul> <br /> <a class="anEvent" href="#">[myDateHere]</a> </div> </td> *[myDate] refers to the day of the month... At the bottom … Web Development javascript javascript-jquery ![]() |
Here is the code copied from w3schools ([url]http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_suggest):[/url] [CODE]<html> <head> <script type="text/javascript"> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState == 4) { … Web Development javascript open-source xml | |
Greetings everyone, I'm having a problem on displaying my picture on the image box. Instead it displays the picture on the image box, it opens a web page and displays it there. Here's the code conn = New SqlConnection("Server=Jeiku-shin-pc;Database=EnrollmentDB;Trusted_Connection=True") Dim cmd As SqlCommand = New SqlCommand( _ "SELECT * FROM … | |
Hi everyone, I have a script running on my page that uploads a new image. I am getting the information from the mysql ok, by using if (isset($_POST['var'])) { Once the vailidation is complete, at the moment I am using header("Location: url.php"); to reload the page to display the new … Web Development first-post php | |
I have looked at quite a few posts on the issue and there seem to be several ways of doing this which is causing me confusion. The validation errors are popping up properly but the form is sent without entry in the form fields. I have tried a few different … Web Development javascript |
The End.