52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for CFROG

I'm having a bit of an issue that I can't quite figure out. I set the limit for MAX file size for file uploads to about 500 kb. - responds with an error msg if you exceed the file size. If you try to upload something slightly larger ... say …

Web Development php
Member Avatar for vaultdweller123
0
121
Member Avatar for vjw757

im trying to insert paypal donation code into a php file. i keep getting errors. so here is the code i have to work with. [code] <? begin_block("Donate"); echo "<BR><BR><CENTER>This would need to contain your donation code, or something. maybe even a paypal link</CENTER><BR><BR>"; echo "<a href=\"member.php?mid=$row[mid]\">$row[login]</a>"; end_block(); ?> [/code] …

Web Development php
Member Avatar for cereal
0
151
Member Avatar for nats01282

Hi all, I am creating a online c.v but do not want it open to every one so i have made a simple login file but want the page to re-direct when the login is correct, [CODE] <?php $user = "user"; $pass = "pass" if ($_POST["username"] != $user && $_POST["pass"] …

Web Development php
Member Avatar for mktgmgr101
0
98
Member Avatar for khadrani_arif

Hi, What I want is once the user does the registeration on clicking the register button an email is sent to the email address with the activation link, untilll and unless the user clicks on that activation link, user's account does not activate. How can I do this. Thanks in …

Web Development php
Member Avatar for mktgmgr101
0
107
Member Avatar for takeshi

Guys, there's a problem lies on my code...cant display the image in viewing candidates..i already put the code[ICODE] <img src=\"".$row['image']."\"> [/ICODE]as what my friend here said in my code in viewing but it seems it didn't work out.. here's my adding record.. [B]add_new.php[/B] [CODE] <?php /* NEW.PHP Allows user to …

Web Development image php
Member Avatar for takeshi
0
78
Member Avatar for Krstevski

Hello... i have problem with UTF-8 encoding... My database and table collation are utf8_general_ci, and when I add new insert query in the database is ok, but when I'm trying to print i got -> ???? The results are: In the database -> Дамјан Крстевски In the browsers -> ?????? …

Web Development mysql php
Member Avatar for JRM
0
108
Member Avatar for JPByD

I have a custom login page that in development works fine... but live, it has an error. On the bottom of one of my pages I have an "Admin" link that links to a page in a sub folder called "Secure". The sub folder is secured in web.config. The security …

Member Avatar for JPByD
0
293
Member Avatar for david cashin

hey all, just starting with php, and was wondering if i could create a new web page by using a variable from a php script in a php script. For example, the user enters a word, and then a web page is created that is called that word. so user …

Web Development php
Member Avatar for david cashin
0
226
Member Avatar for adrianciocalau

Hi there, I am running a ColdFusion server on a VPS to HostMySite.com and lately we are having strange problems with it. Every few minutes the server is not responding even if we restart the services - IIS and ColdFusion - and even the whole system. HMS guys investigated the …

Member Avatar for arrgh
0
180
Member Avatar for xylude

I am remaking a site that was built in RoR, I was wondering if anyone could help me with the SHA1 that they used to encrypt the passwords. How do I add the salt into the encryption in PHP? Here is the rails script: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end …

Web Development encryption php
Member Avatar for diafol
0
86
Member Avatar for sakhi kul

hi to all, I am trying to use MVC. I am using simple Login view. I just want to implement login form for my users. firstly I created database User and in that table 'login' with fields id, name, pass. I add values inn that. I create controller Search==> [code] …

Web Development asp asp.net web-server
Member Avatar for kvprajapati
0
341
Member Avatar for Jahsun

Hi to the community. I hope this is ok to post here. First of all i would like to say that i am a newbie and i am trying to learn php on my own. I am looking into w3school and a few other sources i found here on Daniweb. …

Web Development php
Member Avatar for Jahsun
0
74
Member Avatar for aajay05

I have a php code that forms a dropdown using a mysql table. I am using the dropdown to search and filter results in a page. The problem that I have is that it only shows the values from the table, I also need an option where I can leave …

Web Development php
Member Avatar for vaultdweller123
0
183
Member Avatar for 16pradeepkumar

i need a way to export data on the php form to excel on a click . how can i do this

Web Development php
Member Avatar for 16pradeepkumar
0
100
Member Avatar for davidjcolbran

OK, I have a JS which validates the correct format for postcodes (or zip) on an html form - works fine. But what I want to do is to use a JS to see if a website visitor is eligible for a particular service on their postcode / zip - …

Web Development javascript
Member Avatar for davidjcolbran
0
1K
Member Avatar for Traicey

Hi Guys Could you please provide me with the code that will upload a file using C# and save it in SQL, I have searched through the internet with no luck at all Thanks in Advance

Web Development asp.net sql
Member Avatar for Traicey
0
742
Member Avatar for bharanidharanit

Hello, I used the below coding to store an image into the database. [CODE]lblImagePath.Text = ImageUpload.PostedFile.FileName ImageUpload.PostedFile.SaveAs(lblImagePath.Text) Dim mbytes() As Byte = System.IO.File.ReadAllBytes(lblImagePath.Text) Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\database\db.mdb;Persist Security Info=False") Dim cmd As New OleDbCommand("insert into ImageTable values (@Image)", cn) cmd.Parameters.Add("@Image", OleDbType.Binary, mbytes.Length).Value = mbytes cn.Open() cmd.ExecuteNonQuery() Response.Write("Image load …

Web Development asp.net image open-source
Member Avatar for sakhi kul
0
104
Member Avatar for baabdaam

Hi there, Actually my problem is I want to get the date difference if date return of book more than one month add $10 if not leave the amountoffine to $0 and if the loaner took the book and return it after 3 months I want the code to add …

Web Development php
Member Avatar for vaultdweller123
0
353
Member Avatar for naveenbutola

this is to test [ICODE]<?php class test() ?>[/ICODE] [TEX]test agaian[/TEX] [CODE]class test()[/CODE]

Web Development php
Member Avatar for vaultdweller123
0
93
Member Avatar for xuexue

hi guys, im using linux opensuse as my web server, now i installed php there accdg to the manual, moreover, i also installed php to another computer having windows as its platform, now i compared the phpinfo() of the both pcs, ive noticed that there are some modules available on …

Web Development php web-server
Member Avatar for cwarn23
0
134
Member Avatar for Neerajavi

hi friend can you tell me how to create servlets and how we can deploy it on the apache web server.

Web Development apache java-jsp web-server
Member Avatar for jwenting
0
132
Member Avatar for AliAliAli333

Hi im just wondering how i could improve this to make it secure from either the jsp file itself or external java files. [CODE] <html> <head><title>JSP Page</title></head> <body> <jsp:useBean id="user" scope="session" class="shop.UserBean" /> <jsp:useBean id="dataFactory" scope="session" class="data.factory" /> <% String userName = request.getParameter("userName"); String userPassword = request.getParameter("userPassword"); user.setLogin(dataFactory.getUser(userName,userPassword)); user.setUser(userName); if …

Web Development java-jsp session
Member Avatar for jwenting
0
97
Member Avatar for lonestar23

I have file 123.php which produces dynamic information upon excecution and need 123.php to copy it's output to file "abc.txt" How would I go about this in a unix environment? Thanks in Advance!

Web Development php unix
Member Avatar for lonestar23
0
169
Member Avatar for kanuri1

hi iam getting date as like '1/01/2010' from a dateofarrival(name of text box id) ....... i want to replace the ' from '1/01'2010'., iam interested to show as like 1/01/2010......... plsa help me,,,,,,,,,, here iam using asp.net with vb.net ........ here my coding is..... [code] Response.Redirect("check availability.aspx?ardate='" & dateofarrival.Text & …

Web Development asp.net vb.net
Member Avatar for apegram
0
88
Member Avatar for OmniX

[link]http://php.net/manual/en/function.isset.php[/link] Clearly states that "isset — Determine if a variable is set and is not NULL"? I have been trying to use isset() to check values for NULL and it still appears yet when I use != NULL then it works. I think the fine line is in various instances …

Web Development php
Member Avatar for diafol
0
115
Member Avatar for iqbalhosan

hi all, i want to upload large video files using php and i can do that by editting php.ini file. but how can i do that without changing php.ini file?? advance thanks iqbal

Web Development php video
Member Avatar for cwarn23
0
120
Member Avatar for phouse512

Hello, I was working on a small project to make me think, and I ran across a problem when I was running a page. Instead of any error coming up, the page just produced the following, which was part of my code: [code]0 && $user_health > 0) { $monster_health = …

Web Development php
Member Avatar for phouse512
0
73
Member Avatar for babydol

i m trying to extract multiple rows and print it in a single line in a web page. My code [CODE]while ($line = mysql_fetch_array($app, MYSQL_ASSOC)) { echo "<tr><td>"; echo "<a href=AssignedUpdateForm.php?app=".$line['App']. ">".$line['App']."</a></td>"; echo "<td>" . $line['firstName'] ." ". $line['surname'] . "</td>"; echo "<td>" . $line['ServerName'] . "</td>"; echo "</tr>"; }[/CODE] …

Web Development php web-server
Member Avatar for babydol
0
98
Member Avatar for Rec3000

Hi all. I'm trying to implement a rotating image system written in Javascript into a PHP website. The PHP page and the Javascript both work fine independently, but integrating the JS is proving tough and giving me errors. Here is the top part of the PHP page: [CODE]<? include ("./application.php"); …

Web Development javascript php
Member Avatar for Rec3000
0
146
Member Avatar for babydol

Hi can anyone explain what exactly this function does [CODE] tabs(array())[/CODE] for eg. [CODE]<?php tabs(array("grid.php"));?>[/CODE]

Web Development php
Member Avatar for babydol
0
186
Member Avatar for LloydFarrell

Hi, I have a bit of a strange problem where I am unable to "echo" results from a database - I will show you the code then explaine what im trying to do [code] <?php include_once "connect_to_mysql.php"; $sql = mysql_query("SELECT * FROM table ORDER BY RAND(), LIMIT 1"); while($row = …

Web Development mysql php
Member Avatar for vaultdweller123
0
1K
Member Avatar for cane23

its a simple piece of code but i seem to be having problems this is the code below [LIST=1] [*]$comp_tot="76"; [*] if ($credits = $comp_tot) [*] [*] //$sub=$credits_3; [*] $tot="76"; [*] $ans_1= $tot-$credits; [*] echo"<p>$ans_1</p>"; [*] echo "there"; [/LIST] this code is working however i dont want the condition to …

Web Development php
Member Avatar for vaultdweller123
0
73
Member Avatar for LloydFarrell

Hi all, I am trying to rotate adds that are from tradedoubler !! I have created a mysql db as follows id,add,link,title and i can succesfully connect via a php include and rotate my query to show a different add each time the page loads [code] $sql = mysql_query("SELECT * …

Web Development javascript mysql
Member Avatar for LloydFarrell
0
225
Member Avatar for zhinokin

is this code what im doing is correct..? im using codeigniter framework of this one…engine use is iNNodb [code=php] db->simple_query('SET AUTOCOMMIT=0'); $lockquery = "LOCK TABLE costumer_prof WRITE"; $db->insert('costumer_prof',$valueAdded); if($db->trans_status() === FALSE) //is this ok to used trans_status without trans_start or trans_begin..? { $db->trans_rollback() return 1; } else { $db->trans_commit(); return …

Web Development php php-codeigniter
Member Avatar for JRM
0
96
Member Avatar for kuteinheart

Hi ppl, In a drop down box in PHP i want a distinct value of Date from a column in mysql table. [CODE=text]W_Id FinishedDate Username 1 2010-01-25 me 2 2010-01-25 you 3 2010-01-25 she 4 2010-01-26 me 5 2010-01-26 you 6 2010-01-26 she[/CODE] In the dropdown box i want 2010-01-25 …

Web Development php
Member Avatar for manish.s
0
193
Member Avatar for feoperro

Hi, I have pasted my code below, please paste it into a JSP and tell me why it gives the error "Unterminated String Constant" [CODE] <html> <head> <title>Debugging</title> <script language="javascript"> function changeOn(object, objectId) { alert('in function'); if (object == 'bookingsButton') { alert('first if'); document.getElementById(objectId).src = 'Images/BookingsOn.png'; } else if (object …

Web Development java-jsp javascript
Member Avatar for feoperro
0
205
Member Avatar for dandixon

Hi there, does anyone know any good tuts for displaying images using php. The thing is, I have a site that i search for a part number and it displays the info, that i can do but for some reason im lost when it comes to the images. Do i …

Web Development mysql php
Member Avatar for dandixon
0
288
Member Avatar for kuteinheart

hi, I have a varible which i want to pass it to an AKAX function as a parameter... HOW DO I DO IT???? Here is my code: [CODE] <?php $Username=$_GET['Username']; blah blah blah echo "<select name=WD value=' ' onChange=showDetails(this.value, '$Username')>Date</option>"; /* The onchange function is as follows*/ function showDetails(FinishedDate, Username) …

Web Development php
0
59
Member Avatar for venus_me11

I want to have this kind of look [url]http://kleankanteen.com/faqs/faqs.html[/url] when i click the (+) button, the solution/answer will appear and when i click the (-) button, the solution/answer will disappear here is the sample that i want please help.. i dont know if this is javascrip, ajax or something...

Web Development javascript
Member Avatar for venus_me11
0
88
Member Avatar for smartness

Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function!

Web Development javascript
Member Avatar for smartness
0
166
Member Avatar for rocker9186

Also please let me know how to do the connectivity of the database?

Web Development asp.net
Member Avatar for raorane.swagat
0
58
Member Avatar for Stefano Mtangoo

As I said, I would like to make a PHP login /Register system that would be free for anyone. Here I have started. Since Iam not expert, then I will be adding small pieces until something emerges. I hope DW guys will help until it grows to mature. I want …

Web Development mysql oop php
Member Avatar for vjimatjijoro
0
583
Member Avatar for ElieM

from the search I made I understood that I must declare the class in a package then put it in WEB-INF/classes. and call it from the jsp page. SO. my class is: package x.com; import java.io.*; [code]public class X { public static void main(String[] args ) throws IOException { File …

Web Development apache java-jsp
Member Avatar for javaAddict
0
664
Member Avatar for dandixon

Right, bare with me pls, i need to query the db and return a part number and model, but the thing is these results need to link a page where they are displayed fully heres an example [url]http://www.airsprings.com/search/airsprings[/url] if u type in the bottom box W02-358 in returns 3 results …

Web Development php
Member Avatar for dandixon
0
77
Member Avatar for PatrickV

Does anyone have issue with PHP version 5.1.3. it is crap and causes cpanel and other php software issues, i cann't get the latest xammp becacuse of it. Does anyone know when is the next release to fix these problems is coming out?

Web Development cpanel php
Member Avatar for PatrickV
0
104
Member Avatar for MARKAND911

I want information about user's logon session. Please tell me how i can get it in web Application.

Web Development asp.net session
Member Avatar for MARKAND911
0
67
Member Avatar for jj.amonit

I want to query my database and get two things, store them in an array and retrieve them later. Let's say the fields are zone_id and zone_name. currently i am trying this to store them in array like this $zone_array = array('zone1index' => zone1name, 'zone2index' => zone2name, 'zone3index' => zone3name); …

Web Development php
Member Avatar for cwarn23
0
94
Member Avatar for the0ry

Below is a script which i use to return a random image in a specified directory. (It also sets a session variable to cache a list of images recently displayed, but that is irrelevant to my problem.) I am looking to have this script also find files in the sub-directories …

Web Development image php session
Member Avatar for the0ry
0
107
Member Avatar for takeshi

this is the full code of uploading image using php.. [CODE]<?php // Connect to database $errmsg = ""; if (! @mysql_connect("localhost","root")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("records"); // First run ONLY - need to create table by uncommenting this // Or with silent @ we can let …

Web Development image php
Member Avatar for jesy83
0
256
Member Avatar for preetg

hi......... my php code for deleting records from database is working succesfully but while deleting records from database using checkbox is that only records deleted when deleting button click on two time.... means clicking delete button twice delete the record...... plz chk my code nd tell whr is mistake?????????????? plz …

Web Development php
Member Avatar for JRM
0
119

The End.