52,566 Archived Topics
Remove Filter ![]() | |
Hi. I was wondering if there was a command that allows you to return to the beginning of the script. Let's say /pseudocode/ You ask for pass word if password is correct --> do nothing or just display a random message else if password is incorrect or no password is … Web Development javascript | |
I know from scouring the Web that this is a very common Javascript question, but I have a twist on the question which is giving me headaches, and I hope some of the brilliant minds here at DaniWeb can help show me the error of my ways. Say a user … Web Development html-css javascript | |
Hi, I am trying to display images from my db with the following code.. [CODE] <?php include_once("scripts/connect.php"); if ($q == "All Images") { $sql = mysql_query("SELECT * FROM gallery"); $q = "All Images"; } else { $sql = mysql_query("SELECT * FROM gallery WHERE caption LIKE '%$q%'"); } $limit = 7; … | |
I am having problems when I run my salesreport.php [QUOTE]A PHP Error was encountered Severity: 8192 Message: Assigning the return value of new by reference is deprecated Filename: controllers/salesreport.php Line Number: 390 [/QUOTE] I checked line 390 and here is the code [CODE]$pdf =& new Cezpdf('LETTER', 'landscape');[/CODE] What should I … ![]() | |
Hi everyone,I would like to implement a drag and select feature in the page.I have tried to implement in the following url,but the javascript function work only for the mouse click. Here is the url of the page [url]http://pekas.lbclients.info/SchedulesWorkManage.php[/url] The working is as follows: The user have to pick one … Web Development html-css javascript | |
Hello guys, last time I learn php and make some scripts that work on my localhost, but not in a hosting which I use. Example: checklogin.php: [code]<?php ob_start(); $host=""; $username=""; $password=""; $db_name=""; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword']; $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername … Web Development open-source php session ![]() | |
Hello.. Everyone.. I am very new to PHP world.. I have got a lesson to Saving images in folder and paths to database.. I have tried a lot.. I have tried various websites but there has no complete solution! Will you provide me the proper code? | |
Im checked my sql, its working fine. But im still getting this error: [COLOR="Red"]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in..[/COLOR] [CODE] $sql = "SELECT date FROM tbl_tour_profile"; $result = mysql_query($sql); confirm_query($result); // this is the die function of sql $i=0; while($date_set = mysql_fetch_array($result)) { }[/CODE] ![]() | |
I have no idea if it is possible to post selling product if there's no human operation. What I mean is this scenario. this is a bookstore that wants to create an online page of shopping cart for their own. Among the thousands of items in that bookstore that is … Web Development php | |
Hey all! What I am working on is a contact form with file upload functionality. (e.g. user should be able to upload a screenshot.) Uploading a file should not be mandatory. So the mail which is produced from the entered information in the form should be sent without an attachment … | |
Im having a problem with my code. When I run it to php4 and it works fine. Then I tried it to php5. Im getting error -[COLOR="Red"]"Undefined Variable: _Session in ..."[/COLOR] [CODE]<?php session_start(); function logged_in() { return isset($_SESSION['idnum']); return isset($_SESSION['user_type']); return isset($_SESSION['fname']); } function confirm_logged_in() { if (!logged_in()) { redirect_to("index.php"); … | |
![]() | Hi, I new to PHP. I've searched all over, but with no luck. My objective is to build an array of variables that contain HTML links. (One html link per variable). Then I want to output the variables, (containing the links), so that a new random variable loads each time … Web Development php ![]() |
its been 6 days passed since i started making this assignment of mine it is to show how objectdatasource is used, until now, i still cannot getaway with this error, [B][U]The data source for GridView with id 'GridView1' did not have any properties or attributes from which to generate columns. … Web Development asp.net open-source | |
i can't get my head around how i am suposed todo this really i am stuck i have looked on tons of forums mostly this forum and what i would like to do is if a person goes on this link play?p=rLoYvtMNlO then it will load the data from that … | |
I have to build a small contactform validator in JS, which checks the fields' values when submit is clicked. I am experiencing problems with getting the email validation to work properly. This is what I've got: [CODE=js]function validate_form() { valid = true; // Validation of email input if ( (document.contact.email.length … Web Development javascript | |
Hi, I'm doing a check against HTTP_REFERER after a simple form is submitted, just as an additional security measure. What's happening is that the check always fails when the script is running on the remote server, but works as intended if I test it on my localhost server. Here's the … Web Development php | |
I have a problem,, I have to stop one Loading class on button click. I already checked some forums related to this. But didnt find exact solution. for example: [code] Public Sub LoadDropDown() Dim it As Integer For it = 0 To 1000000 DropDownList1.Items.Add(it) Next End Sub [/code] I have … Web Development asp.net | |
I have an array that is multidimensional and I need to test whether an offset exists. My reading of the PHP manual for array_key_exists makes sense for a single-dimension array. My script takes results returned from the database and arranges them this way: [code=php] Array ( [1] => Array ( … Web Development php | |
hi guys, im trying to loop a variable using 00 format.. ex. 01,02,03,04.......31 im going to use this for my dropdown of date. thanks! Web Development php | |
Greetings all. First of all, let me say I am NOT asking for code, just to be pointed in the right direction. I’m a newbie in php and mysql and have been teaching myself what I could learn from online lessons and tutorials (mostly w3school.com). I have found plenty of … | |
Hi, A little help here needed - i want to make a class variable (array). Some values are expected to be from a session variable. Example [CODE] public $myArray = array( 'key1' => 'something', 'key2' => $_SESSION['something_else'], ) [/CODE] With this i get an error about unexpected variable. Aynone knows … | |
Anyone please advise what is the best payment gateway for php website and how to integrate in php website. Web Development php | |
hi everyone i have a search page that will search base one date... but if i search with only date (9/27/2011 ) it will only display the data from database that has the same date and time but not the whole data in that specific date: example: in my database … | |
Hello. i want to develop a chat application,but i want to develop the ability of private chat between 2 users. multiple users chat is very simple,but private chat is very complex ,but if we use database it become simple and very flexible. so i need your expert opinion before i … Web Development asp.net | |
I have a date picker that give me this result: e.g. 2011-29-08 When it is inserted in mysql, it outputs '0000-00000'. What can I do? I know "strftime("%Y-%m-%d %H:%M:%S", time());" But I have no timestamp to put as an argument. The only data I can use is the data that … Web Development php | |
Im creating a time-base site wherein the timestamp should rely on the global time and not to my PC's time (because it can be out-dated somethimes). How can I do that? Web Development php | |
Hey Am new to PHP need help, if I want to create a list, and only want to add an item one below the other what would be the best method in using Sessions. If there any examples that would really help. Thanks Web Development php ![]() | |
I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it. | |
Which one should I install on my desktop? EasyPHP or AMPPS? Web Development php | |
Hi I am using a php script for converting avi,mpeg files to flv with ffmpeg.my code is [CODE]$srcFile = "uploads/flame.avi"; $destFile = "uploads/flame.flv"; $ffmpegPath = "/usr/bin/ffmpeg"; $flvtool2Path = "/usr/bin/flvtool2"; $ffmpegObj = new ffmpeg_movie($srcFile); $srcWidth = 320; $srcHeight = 240; $command = $ffmpegPath . " -i " . $srcFile . " … Web Development file-system php video | |
Hi frendz, Can we set a value for a session variable through javascript onclick event? (or) How can we set a global variable for the whole website using javascript? Web Development javascript php session | |
HELP! I lost count of how many editors I tried! I don't understand why non of them work. I'm trying this editor [url]http://nicedit.com/index.php[/url] very simple. but when I type words in the textarea and click submit nothing is saved in the DB..empty that's what I get. all I want is … Web Development php | |
Hello, I'm trying to do a very basic page that allows me to edit a single column in a MSSQL database. For whatever reason I can't figure it out and am hoping that you can help. Here is my front page (sorry about the silly names) [CODE]$ninja_conn = odbc_connect('XXXXX','XXXX','XXXX', SQL_CUR_USE_ODBC); … | |
I have seen on many sites using PHP some sort of id system where they can have a main page and then have different ids that will display completely different content. I am just wondering how you do this as I am in the process of making a screenshots gallery … | |
I am having a bit of trouble with general PHP video uploads and then converting them into a FLV flash file for playback. I have heard something about installing something called FFMPEG but I cannot not find any tutorials any where for doing this. So basically what I am looking … Web Development flash php queue video windows-server | |
Hi guys! I'm working on a script to manage newsletter and I'm actually thinking how to manage eventually freat amount of mail deliveries when they are sent. What I mean if that i'm pretty sure that send something like thousands emails at once could be seen as spam from server … Web Development php | |
hello guys i am stuck in a small but horrible problem.i am redirect page to itself using [ICODE]$_server[''PHH_SELF][/ICODE] method but the problem is that i apply the insert query at the top of my html page but it shows me that you are not connect to the DB. [CODE] <?php … | |
Hi Guys, I noticed that in some apps people tend to use the following method in classes without instantiating an instance or defining objects, but this works, could someone explain whether this is a correct way of doing it. (its for a simple data management and interface app) For eg. … | |
hi, i have asked something similar to this before. basically i have looked around and i can see that it seems it is possible to send email from a different email account using php. but what is the best way to stop the server being blacklisted? it want be used … | |
Hello everyone. I'm an expert html5/css3 designer, but when it comes to javascript, I don't know anything... I need some javascript code that detects a browser engine (webkit, gecko, etc.) and redirects based on that. I need webkit and gecko to redirect to home.php and all others to redirect to … Web Development http-protocol javascript | |
Hi I'm new to this forum and I am looking for a little help. I was wondering if someone could provide some code that allows someone to enter a message into a comment box, hit submit, and then that message is sent to an email account. I also have two … Web Development asp.net c# email web-design | |
Hi all, For some reason I can't seem to wrap my mind around JOINING tables and getting the data I need from this. I have three tables I am trying to join. I need to count the number of blogs, comments and number of views for each user. I have … Web Development php | |
I have multilanguage emails(Hindi,chinese,japanese etc). I can not read that multilanguage emails using [COLOR="Red"]imap_fetchbody or imap_body or imap_bodystruct[/COLOR] can anyone help me to read emails? Web Development php | |
Hi evryone, i'm doing a project in Asp.net. I need your help in generating report. The concept for generating report is when each user login to the website using his id i would retrieve data from his table if 2 values is retrieved thn this 2 values act as a … Web Development asp.net | |
Hello, I just revamped a website and rather experimented including absolutely all <head > contents within a single .php file, including google analytics. But I am a little confused now reading the analytics for my website and I wonder if google analytics, being fed to all the pages from a … | |
Hi, I have seen a lot of people have been having a similar problem to this, but I have not found a solution and so daniweb is the best place to go! Basically, whenever I use: [CODE]<?php include_once "Filename.php"; ?>[/CODE] which I often do for the header, navigation and footer … | |
Hello, I am storing my mysql connection data and other sensitive information in a config file, however I detected an issue that anyone can access that file and view the contents of that file but I don't want to let anyone do that without appropriate permission. I can encode the … Web Development file-system php | |
Hi all. I'm trying to move someone else's app onto a different server (and debug it in the process). Among the onslaught of bugs to squash, theres one I just cant get my head around... I get a parse error on try-catch, and I have no idea why. I've isolated … | |
hey can any one please help me by showing me how to buy and sell a product online using php Web Development php | |
I fetched some data(eg:name ,email,phone,mobile etc) from a website using simpleDOMhtml.I want to store it into the database.Which page will write the code and how will write?Please help me.Thanks in advance. Web Development php |
The End.