52,566 Archived Topics
Remove Filter ![]() | |
Hello When I normally write classes and then use them, I'd use this: [code] $site = new Site(); $site->load('header'); [/code] But I've seen people do this: [code] $site = new Site(); $site->load->header(); [/code] How do they do it? Confused Web Development php | |
I write an upload image script to my local server it works but when i upload online it did not but it display 0 as $_FILE['filenam']['error'] this is the code send me answer please to my email <<snip>> or reply here $target_path='../uploads/'; $_passport_path=$_FILES['passport_file']['name']; $_pp_type=&$_FILES['passport_file']['type']; $_pp_size=&$_FILES['passport_file']['size']; $_maxima_size=30000; if(($_pp_type=='image/jpeg') ||// ($_pp_type=='image/gif') || … | |
Hello I am in a bit bother at the moment, I have an application where I add a contact and at the same time I upload an image to the images directory. Basically I have a feature where you can delete a contact and what I want to be able … Web Development php | |
Hi i want to echo session but it gives error...code is [CODE] session_start(); if(isset($_GET['P_Price'])) { $_SESSION['Price'] = $_SESSION['Price']+ $_GET['P_Price']; $_SESSION['Items']++; " <div class=\"shopping_cart\"> <div class=\"cart_title\">Shopping cart</div> <div class=\"cart_details\">Items echo $_SESSION['Items']; <br /> /// this line has error <span class=\"border_cart\"></span> Total: <span class=\"price\">echo $_SESSION['Price']; </span> ////this line has error also </div> … | |
hi i have one page where i will get Categories of Products and i want to make session of those Categories..But when i referesh page session break...my code is.. [CODE] session_start(); $_Session['P_Category'] = $_GET['P_Category']; ////line 8 $P_Category =$_Session['P_Category']; $query = "select * from tblProducts_info where P_Category = '$P_Category'"; $result = … | |
Hi again. I have a project that gets from mysql the data that i search. Until 10 minutes ago, the results could not display me correctly the Greek characters from mysql. The search system searches the title of the item which contains English and Greek characters. I solve this problem … Web Development php | |
Hi, I have an odd error in my logout.php file maybe you can help me. I have this in the start of my file: [CODE]<?php include('../config.php'); session_destroy(); session_unset(); ?> [/CODE] In config.php I have session_start(); A little down in the page I have this: [code]<?php echo 'Logged out...'; echo '<meta … Web Development php | |
Hello to Everyone, I m involving in social networking website in php.Can anybody help me for building add friend system in php? Web Development php | |
Hi all, So I launched a clients website using Wordpress and for whatever reason they seem to be encountering this issue whereby they cannot login. The issue is baffling as no changes were made but i get this message when trying to login through wp-admin <strong>Warning: Cannot modify header information … | |
Okay i have been looking my best for this problem on forum. I have a website script written in php, now the menu it has is in php and uses a tpl file. This is very crude compared to what i need, now i post here in DHTML because the … Web Development javascript | |
Hi! I want to check if some file on some other server exists. I have this code (but something is wrong with it): [CODE]<?php $notworking=array(); $false=0; $link="http://uploads.mp3songurls.com/"; $files=glob("genre/*.xml"); foreach($files as $file){ $xml=new SimpleXMLElement($file,null,true); foreach($xml as $info){ if(fopen($link.$info->link.".mp3","r")==false){ $false++; $notworking[$false]=$info->name." => ".$info->author; } } } if($false>0){ $file=fopen("notworking.txt","w"); for($i=1;$i<=$false;$i++){ fwrite($file,$notworking[$i]."\r\n"); } fclose($file); … Web Development file-system php | |
Hi, a bit of a long title to this thread, I know, just trying to make it obvious. lol Anyhow, I am building a Twitter widget for my own website and have got really stuck on one aspect of it, namely the 'source' i.e. which application the 'user' used to … Web Development api iphone json open-source php web-browser | |
I have two functions that work fine individually, but when used together, create the other function not to work for some reason.. :'( My first function submits a form using ajax: [CODE]$(function() { $("#saveList").click(function() { var listname = $("input#listname").val(); if (listname == "") { $('#listnameError').fadeIn("slow"); setTimeout("$('#listnameError').fadeOut('slow')", "1200"); return false; } … Web Development javascript | |
Hi all i am using asp.net uploader in my application when i am using file with size less than 5 mb to upload working fine but while try to upload more than 5 mb it gives some standard error like server may down page may not be available an all … | |
hi,i am new to daniweb,glad to be a member of such wonderful community, what i am trying to build a google map where user can find a train location by entering the train name into the search box. i have two php file one is gmap.php which is outputing the … Web Development api daniweb-api google google-api html-amp php session | |
Hi! This is my problem. If I write letter č or ć in textarea, and then if I use php to check if there in textarea is letter č or ć, it doesn't work, here's code: [CODE] <?php if($_POST['sub']){ $tekst=$_POST['tekst']; $array=array("č"); //& # x 010D iz unicode for č, i … Web Development php | |
i also experienced this problem,my web page showing multiple entries also. Please help me This is my code \:- [CODE]userid=Session("username") %> <html> <head> <title>Tax Invoices</title> <script language="JavaScript"> function openwindow(path) { window.open(path,"bill","menubar=yes,resizable=yes,scrollbars=yes,width=800,height=450,top=50,left=50"); } </script> <link rel="stylesheet" type="text/css" title="CSS" href="Include/Styles/style.css" media="screen" /> </head> <body> <table topmargin="0" leftmargin="0" align="center" ID="Table1"> <tr> <td><img src="images/headerksphc.jpg" … | |
Im unable to maintain the tab order when ever my controls autopostback get executed. I hav 4 controls and my 3rd controls prop of autopostback is true.when ever autopostback is executed the control goes back to first.how 2 solve this Web Development asp.net | |
hi i am trainer in php, in interview the first question is What is the difference between php4 and php5? Please tell me how can i answer for this question Web Development php | |
how can i get the ip address of the user on my email while the user clicks the submit button anyone could help me Web Development php | |
Hi I'm not sure wher I am going wrong. I've borrowed some code and tweaked it. The database table consists of id,dates,day,type,. The form brings up the mutiple enteries to edit, but when the submit is pushed it refreshes with the original information. i've checked the databse and that remains … | |
I am working on something for school as a final project before graduation. I am using ASP for the website and VB as the back end to code. I keep getting the error "Object reference not set to an instance of an object" and can't figure out what is wrong. … | |
as the title says, "close popup window after submit then redirect to parent". how do i do that? i google it and i saw that some people are using the following code: [B]window.close(); window.opener.location.reload(); [/B] The problem is, i dont know how to use and where them. pls guide me. … Web Development javascript | |
I'm trying to make a price calculator for my friend's car shipping company. It seemed like a simple thing to do but with my skills I'm having some problems. The calculator takes the distance from zipcode 1 to zipcode 2, and mutplies the total miles by .32 to get the … Web Development api engineering json mathematics php | |
This is a redone post as my last one contained all of my code and I wanted to simply for the post. Here is what I am doing: I show the categories that the user has placed a referral in on the page "my_categoreis.php". The user then can select a … | |
part of index page [CODE] <form id="form1" name="form1" method="get" action="show.php"> <select id="mark" name="mark"> <option value="">--</option> <option value="100">BMW</option> <option value="101">Audi</option> </select> <select id="series" name="series"> <option value="">--</option> <option value="1" class="100">1 series</option> <option value="3" class="100">3 series</option> <option value="5" class="100">5 series</option> <option value="6" class="100">6 series</option> <option value="7" class="100">7 series</option> <option value="11" class="101">A1</option> <option value="23" … Web Development javascript javascript-jquery | |
Hi, I have found this forum very useful so far so I was hoping someone could offer me some help again as I have run out of ideas. Basically here is my code: addcontact.php [CODE] </head> <body> <div id="container"> <div id="header"> <table width="980px"> <tr> <td align="left"><img src="images/lcaclogo.gif" width="100px" height="100px"></td> <td><h1>LCAC … Web Development file-system php | |
Hi there, I hope someone can tell me what I'm doing wrong here. I have a SelectCommand in my asp.net page (v4) that pulls a variable from the Profile to run a subquery to get the value to test within the main query. (Confused yet?) This works for 2 of … | |
I would like to know if it is possible for someone to fill a form on my website, but instead of sending it to a email or database, simply print it? Because we can't handle credit cards here, and I want people to fill in the form, print it, and … Web Development php | |
Hello, As much as I try I can't totally understand how to use preg_match. I have downloaded an open source system from the internet that I want to use, but they use ergei in their code. When I change it to preg_match I get all kinds of errors. Can someone … Web Development open-source php | |
I apologise if i have placed this query in the wrong forum - I'm new here. When i try to access the index or default pages of my website i get this error... [QUOTE] Server Error in '/' Application. -------------------------------------------------------------------------------- Could not load file or assembly 'FredCK.FCKeditorV2' or one of … Web Development asp.net assembly file-system microsoft-access ![]() | |
![]() | I've seen a lot of people having issues debugging JavaScript code. So here is how you can easily debug your JavaScript code using Visual Studio (I believe firebug has similar functionality). Also if someone has Visual Web Developer can you confirm that you can do it in that as well … Web Development developer-tools javascript visual-studio |
Hi, I am trying to build a Twiiter website widget using the Twitter API, that will display a list of recent tweets. I am stuck on one piece which is the display of the URLs in the tweet. I am using preg_replace to look through the text and find a … | |
Hi, We are currently facing a strange issue. We are having an error logging functionality that logs errors occurring to a database. A scenario occurs where there is an error occurring in the application, custom error page comes up. When looked in the database for error description error is not … | |
Hello everyone, i have a gridview on my form, and i have some data which gets calculated once the user select a row, however the user does not need to see a specific column. Is there anyway that i dont display that certain column however be able to use the … Web Development asp.net | |
Hey this is my code.. I'm trying to display whats in "carefare" variable inside a div. But it's not working I have no idea. All names of the div's are correct. and when i use alerts(commented) correct values are displaying but it's not getting printed inside my divs. Always the … Web Development javascript javascript-jquery | |
Hello, I am trying to make a very simple form about the courses students have taught in the past. if there is more than on course they taught I want to make an "Add More Button" so that the form reappears. Kinda like the fields sections in PHPMyAdmin interface. The … Web Development php | |
I have 2 text boxes A and B I want the answer A-B displayed on A Text box 'onchange' event of B Please help me Thanks God Bless Eranga Web Development javascript php | |
Hi Frendz, Can we merge two images into a single image using PHP? | |
Hi, The web application I developed throws an error to get the domain name that I set using session variable in session_start in global.asax file. The error gets resolved if I upload the web.config file. But the problem is that the error comes up again. The support st the hosting … | |
hello.i need help form you all. i am beginner in php and my english is not good.. my problem is when the pop up message proceed delete, although i click cancel. my data is delete ? this is my coding <?php session_start(); $noC = $_REQUEST['noC']; include("db_connect.php"); mysql_select_db($database_localhost, $conn)or trigger_error(mysql_error(),E_USER_ERROR); $sql="DELETE … Web Development php | |
I am facing problem in updating the number of times the link is clicked. The function to update links works fine in a new file. But when I include it in the link counter file, this function is not working.i.e. not updating the number of times a link is clicked. … | |
Hi All, I need desperate help. I have a group "MyGroupABC" in Active Directory (AD). In this group there are close to 100 list of users. How can i write a logic to actually to get me the list of users with their particulars details such as Name, SN, GivenName, … Web Development advertising asp.net windows-server | |
Hi! I'm new here, I have been stuck on this for about to weeks. I am trying to replicate something like the [URL="http://humblebundle.com/"]humble bundle's[/URL] website, where they give you a url like [url]http://humblebundle.com/?key=hj2qg4j2h34234[/url] and you can access the page. I have tried for about 2 weeks but can't figure it … | |
Hi Whenever I have error in PHP script, it doesn't return errors, it only returns blank page. So, when everything is OK, script works perfectly, but when I have error, it's only blank page in browser. I use Debian 6.0.2 any help is appreciated :D | |
I'm planning to create a voting page, where users can vote on different ideas or suggestions. I think for my situation it will be best to use a Thumbs Up / Thumbs Down type voting system. Can anyone explain how these work? Do they use division, average, etc? Thanks Web Development php | |
I came across an interesting thing and I am wondering how if at all it would be possible, I have found the reverse basically of what I want to do thanks to google but am baffled if its possible or if I am going to need to find another workaround. … Web Development php | |
I am making an admin product form where my client can insert product title, description and thumbnail into the mysql database table which displays on my product page. They want to be able to add products on their own so I need to be able to let them to do … | |
Hi, I am just in the mix of transferring a design that I had created for my client over to their domain. I had someone transform my design into a wordpress but they made such a mess of it, not completing many elements and now it is 2 days til … |
The End.