52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cmps

Hello, does all php versions accept the <?= ?> or no ?? Don't you think for designers <?= ?> is easier than <? echo ?> Thank you

Web Development php
Member Avatar for cmps
0
121
Member Avatar for krunalkakadia

Hi all, I am using asp:UpdateProgress and asp:UpdatePanel.it works on local fine but when i upload it to live site then it is not working. please do some needfull help. thanks, krunal

Web Development asp.net web-server
Member Avatar for krunalkakadia
0
409
Member Avatar for f.sh

actually I'm developing a template using ASP.net and C#. as you can see in attached picture, my template include 3 part and i want to have partial refreshing, that's why i'm using updatepanel. in this template once the user click at the top menu it will refresh the side menu …

Web Development asp.net listview
Member Avatar for f.sh
0
499
Member Avatar for maxxxx

Can I add an alert to this JavaScript? <script type="text/javascript"> document.getElementById('send').reset(); </script> <body> <input type="button" id="send" value="send order"/> </body>

Web Development javascript
0
84
Member Avatar for ale89

Hi all! I'm making an admin, with gallery of photos. What I am doing is to first create the name of a main photo portfolio with a folder with the name entered and stored within the image that rose. When ready all the portfolios which are the folders with the …

Web Development php
Member Avatar for ale89
0
96
Member Avatar for rse

I have an ajax call that sends some data to process.php and return back the image name. In process.php I returned the name as follows: [code=php] echo "image.png"; [/code] The ajax call is: [code=javascript] var $chart = $( '#chart' ); var $test = $( '#test' ); $.get("process.php", {date: DateStr, birthday: …

Web Development image javascript
Member Avatar for rse
0
143
Member Avatar for leechyeah

Dear, I am new to PHP and MySQL. I have a simple order form on my site: 1 column with "member" and one with "comment". I am able to Insert rows when a user submits the form. But when a user wants to modify that data, the form inserts another …

Web Development mysql php
Member Avatar for leechyeah
0
217
Member Avatar for aaloo

this is my html code in which i want to get info from the server and insert it into the list items and show it in the browser, using loop .so i am using php but this code is not working for me . please somebody help me !!!!!!!!![CODE]<body> <div …

Web Development html-css php
Member Avatar for aaloo
0
170
Member Avatar for shamsidah

hello... i have a question about my final year project.. in my database i want to find 5 maximum values from total of defects from car's body... and the data that i'm found must valid for one year, and after one year (next year) maybe the 5 max values may …

Web Development php
Member Avatar for diafol
0
90
Member Avatar for lagoni123

Hey Daniweb, can somebody explain to my how to call a value from my database after i logged in? Like i log in with the username and password, then i want on my member page to show what email this user has or any other thing from the database. What …

Web Development php
Member Avatar for diafol
0
142
Member Avatar for masterjiraya

I wanna try my self as an experience. Scenario: I have a member join and member log-in wherein the pass word is encrypted in the database (MySQL) Now let's say he forgot the password it too lazy to just open your email account for just getting the password recovery. What …

Web Development encryption php
Member Avatar for cereal
0
198
Member Avatar for BenzZz

I create the session variable $_SESSION['SESS_MEM_ID'] within my validateLogin.php file shown here: [CODE] <?php include'db_config.inc'; require_once('InitDB.php'); $error_msg = ''; $error_flag = false; function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } try { $dbh = new PDO("mysql:host=127.0.0.1;dbname=$db", $user, $password); } catch (PDOException $e) { …

Web Development html-css php session
Member Avatar for BenzZz
0
1K
Member Avatar for ishlux

Hi all, I have an inbox, if i click on the inbox which will display list of mails. now i have next button, if i click on the next button it should be possible to display the next mail with respect to the current opened mail. how to do this …

Web Development php
Member Avatar for its4enjoy
0
119
Member Avatar for rse

Hello, in process.php, I am trying to display google chart by requesting it using streams, the follwoing code is for requesting the chart: [code=php] header('content-type: image/png'); $url = 'https://chart.googleapis.com/chart?chid=' . md5(uniqid(rand(), true)); $chd = 't:'; for ($i = 0; $i < 150; ++$i) { $data = rand(0, 100000); $chd .= …

Web Development google php
Member Avatar for kevindougans
0
1K
Member Avatar for rajeesh_rsn

Hi I added a addslash before submit to database like [CODE]$bio=addslashes($_POST('bio'));[/CODE] it will add a "'" before submit .. and everything working fine .. but at the time of edit/ resubmit this form I am getting the following out put [CODE]This is old\' Line This is new' Line[/CODE] Please help …

Web Development php
Member Avatar for hakeemtunde
0
127
Member Avatar for sacarias40

I have a project im working on that includes an activity stream. I'm working in php and MongoDb (noSql). The site can post articles, users can promote articles or add them to favorites. How may i include these in an activity stream similar to facebook or twitter? Example: Josh, john, …

Web Development mongodb php
Member Avatar for diafol
0
88
Member Avatar for vishi96

Hello I'm a PHP beginner, and I was looking for the best resource online for learning PHP, and also do recommend certain books for the same. Thanks

Web Development php
Member Avatar for pritaeas
0
527
Member Avatar for prit005

Hi ]http://192.168.3.100/PACS3.2.0_DATA/Android_Images/1/1.2.840.114257.0.11796824240075870457700001003416408300001 /DICOMDIR.dic//PACS3.2.0/Images my problem is that I want to get only the specific part of this URL such as only .dic for eg: ]http://192.168.3.100/PACS3.2.0_DATA/Android_Images/1/ 1.2.840.114257.0.11796824240075870457700001003416408300001 /DICOMDIR.dic and remove the last two item from URL. please help

Web Development asp.net
Member Avatar for prit005
0
117
Member Avatar for siraero

Hi daniweb first of all, sry my english. I have a problem with at update code, I was hoping that U can help me, im new to this. i have a code where i get an id from another page, from update.aspx?id=1 up to 6 ATM. my code works fine …

Member Avatar for Sarama2030
0
204
Member Avatar for akshayphp

I am basically creating a registration page. Tell me where I am wrong in this code. [CODE] <?php session_start();session_destroy(); session_start(); if($_POST["regfname"] && $_POST["reglname"] && $_POST["regcname"] && $_POST["regemail"] && $_POST["regphone"] && $_POST["regwebsite"]) { if($_POST["regpass"]==$_POST["regcpass"]) { $servername="localhost"; $username="akshay"; $conn= mysql_connect($servername,$username)or die(mysql_error()); mysql_select_db("akshay",$conn); $sql="INSERT INTO acts(fname,lname,cname,email,phone,website,password)values('$_POST[regfname]','$_POST[reglname]','$_POST[regcname]','$_POST[regemail]','$_POST[regphone]','$_POST[regwebsite]','$_POST[regpass]'); $result=mysql_query($sql,$conn) or die(mysql_error()); print "<h1>you have registered …

Web Development php
Member Avatar for hakeemtunde
0
275
Member Avatar for jetlife76

I have a program that simulates the Powerball Lottery game, i have been working on it for weeks now. My issue is with the quick pick option. when the quick pick numbers match the winning numbers it doesn't show the matches. If the user enters the numbers manually it does. …

Web Development php
Member Avatar for jetlife76
0
332
Member Avatar for maxxxx

I have this form, and I want to add JS to it. I got part of it. But the hard part is the ordering menu part it's self. Can someone help me please? [CODE]</p></td><td width="359" align="right"><table width="325"> <tbody> <tr> <th width="144">item</th> <th width="75">price</th> <th width="92">quantity</th> <th width="101">sub-total</th> </tr> <tr align="middle"> …

Web Development javascript
Member Avatar for maxxxx
0
81
Member Avatar for stereoworld

Hi Guys, Hope you can help me with this little conundrum I'm having currently. My company has a dedicated windows server with heart internet and for means of database interaction, we've been forced to move one of our php sites to there. Everythings great and works fine - except the …

Web Development email php windows-server
Member Avatar for stereoworld
0
1K
Member Avatar for jacob21

I am using TinyMCE textarea. Which will be formatted text How I can insert that formatted text into table (database) as well as print value that I have inserted (formatted text) ? [CODE] mysql_query("insert into emailtemplates (name, messagebody, status) values('".$_POST['frmname']."', '".$_POST['content']."', $status)") [/CODE] [B]where $_POST['content'] is my textarea[/B]

Web Development php
Member Avatar for stoopkid
0
231
Member Avatar for polinolin

hi mate. i have problem about REGEX this is my simple code [CODE]<?php $teks="hi whats up? how are you?"; $replace=preg_replace("/(you)/i",'<span style="background:yellow;">\1</span>',$teks); echo "$replace"; ?>[/CODE] what the mean \1 ? its not give effect for my text.. if i change the value to \2, the text has change.. thanks mate!

Web Development php regex
Member Avatar for diafol
0
87
Member Avatar for Psyho

Hello all. I have a bit of a problem. I have a few php pages all encoded utf-8. A MySQL database, where it is possible to have characters like: 'á'é'ú'Å‘'ü' and so on, i have set with phpmyadmin to be utf8_hungarian_ci character encoding. Funny thing is, that when I write …

Web Development mysql php
Member Avatar for diafol
0
306
Member Avatar for dan420

Hello, I have a table with 10 rows. each row has 3 columns. column1 is product name column2 is a drop down box with values from 1to10. column3 is a check box. When the checkbox is checked I would like to get the entire row value (product name, quantity) Can …

Web Development php
Member Avatar for diafol
0
169
Member Avatar for mana_panigrahi

Hi, I am trying to call a function by "onclick" event of the button. When I do that it shows error message. Can anybody help me out on this so that when I click on the button it should call the function and execute it. My code looks like: -------------------------- …

Web Development php
Member Avatar for john_lane
0
14K
Member Avatar for Aamit

Hi, I am trying to upload file and save data to DB. IN File only 10 row and 5 column data.(normal sample data) File has only 24.0 KB (24,576 bytes) I am using..reader.php and oleread.php to upload file But It taking More than 650MB memory (681574400 bytes) Is any [B]other …

Web Development php
Member Avatar for diafol
0
161
Member Avatar for harsha.netpem

Hi, I want to select multiple option using check boxes(all values of checkboxes are come from database 1 ) and insert into the particular table in other database using php form.

Web Development php
Member Avatar for diafol
0
223
Member Avatar for jerrinfive

i have two tables in a single database sales... one is product other is order... i want someones help to know how can i do one operation.... i.e when i click on order i want to subtract that one order from the product table.... can u help me with the …

Web Development php
Member Avatar for qazplm114477
0
121
Member Avatar for djbrown

As a newbie at 63, I have learned how to build an SQL database from scratch, interrogate it and present results, but I just cannot wrap my bhead around the following issue. I am in the process of constructing a site that will return a list of suppliers to a …

Web Development php
Member Avatar for diafol
0
239
Member Avatar for morrisproject

Hi I am using the following code to logout: my logout button calls logout.php [U][B]logout.php[/B][/U] <? session_start(); session_destroy(); header("location:site.php"); ?> This doesnt seem to reidrect to my site.php page, it just loads a blank logout.php page, any ideas?

Web Development php
Member Avatar for hakeemtunde
0
130
Member Avatar for rithi3

Any one help me to create a chat box (HTML/JS)for my site. Many web sites provide the chat box which referring their site. I don't want that kind of chat box. I need a complete code for chat with all functions. If i get the code to login with nick …

Web Development javascript
Member Avatar for stbuchok
0
210
Member Avatar for Metophase

[CODE] <?php $oldumask = umask(0); mkdir($url, 0777); umask($oldumask); $myFile = $url."/index.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData ="lots of things"; ?> [/CODE] Why am I not being allowed to write files to my website, it was recently working, my host had some technical issues yesterday,, and now …

Web Development file-system php
Member Avatar for Metophase
0
179
Member Avatar for jcarbillon

Guys, need help again, I cant get my mail script working... here is my code [CODE]<?php require_once "Mail.php"; $from = "Sandra Sender <sender@example.com>"; $to = "Ramona Recipient <recipient@example.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = …

Web Development php
Member Avatar for jcarbillon
0
412
Member Avatar for phoenix911

Hi, I have a WCF Webservice, and I have an asp.net application that uses this web service. I Have them both running on the same machine, but get a time out. Is there something I have to specify myself in the web.config? I am fairly new in WCF, as this …

Web Development asp.net
Member Avatar for phoenix911
0
193
Member Avatar for garyrichard

Hello everyone.. .. Plz help me ..How to work for a payment through net banking.. in PHP.... So that client client can pay through net banking and amount will be transferred into my bank account.. I hear that it requires a payment gateway.. . If is it so then how …

Web Development ecommerce php
Member Avatar for urtrivedi
0
236
Member Avatar for rse

Hello, I have a php variable $birthday, I am showing it's value like this: [icode] <div id= "dob" class="pick_number">Day of Birth: <?php echo $birthday ?></div> <div id="test"></div> // value should be printed back in here. [/icode] I need to pass the value of $birthday via ajax, I had the following …

Web Development javascript javascript-jquery php
Member Avatar for rse
0
174
Member Avatar for eltonpiko

hi hope someone can help me out how do i include a autoreferece or auto code inside my php form so each form that i submitted will have its own number or an id of some sort to track how many form have been submitted.when form is sent to email …

Web Development php
Member Avatar for diafol
0
190
Member Avatar for k90tour2

Hi. I've three websites on a VPS Server running Apache 2. Each website has been successfully uploading files until now. None of them can upload a pdf file but has no problem with other file types that I allow, such as jpeg. If I examine the $_FILES array, when uploading …

Web Development apache pdf php
Member Avatar for cereal
0
166
Member Avatar for harintfs

Dear Sir, I am facing endless problem, Pls help me. My prob is... (note I am not expert...Just i am started php) I have php page, with out having any session expiry time limit, just i used session start only. nature of my page is required more time with out …

Web Development php session
0
60
Member Avatar for Ralphael

i am writing an ajax code to collect information from a xml file but the file is not being read can someone please point out the problem for me the code is below. [CODE] <html> <head> <title></title> <script type="text/javascript"> var xmlHttpDoc = new XMLHttpRequest(); /*getcolor1 function*/ var options; function getColor1() …

Web Development javascript xml
Member Avatar for PlyrJames791
0
141
Member Avatar for sharathg.satya

can anyone say how can we link a css file to a php file.. I tried this [CODE]<link rel="stylesheet" href="site.css">[/CODE] here site.css is my css file and i am including this in home.php file in the head section. but i am not able to get the effects in the webpage. …

Web Development file-system html-css php
Member Avatar for sharathg.satya
0
414
Member Avatar for goltu

I created two parentgridview and childgridview . [CODE] <asp:GridView ID="ParentGridView" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="l_no" onselectedindexchanged="ParentGridView_SelectedIndexChanged"> Columns> <asp:TemplateField HeaderText="Letter Number"> <ItemTemplate> <asp:Label id="l_no" Runat="Server" Text='<%# Eval("l_no") %>'/> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="name Department"> <ItemTemplate> <asp:Label id="nam_dep" Runat="Server" Text='<%# Eval("nam_dep") %>'/> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="View"> <ItemTemplate> <asp:Button ID="ViewChild_Button" runat="server" Text="+" CommandName="Edit" /> </ItemTemplate> …

Web Development asp.net session
Member Avatar for sufyan2011
0
145
Member Avatar for krushed18

My problem is that I am trying to execute a function on button click event but it just shows not even for a sec it just flashes. html & Javascript : [CODE]<html> <head> <script type="text/javascript"> function createLabel(){ /*Get UserName*/ var unString = document.createElement("label"); unString.className = "userName"; var uName = document.getElementById("username").innerHTML; …

Web Development javascript php
Member Avatar for stbuchok
0
198
Member Avatar for mrhankey

hi, my application i have built which runs on php/mysql i now need a way to have it insert a value into a table every set date. so, on the isnert form just now they would enter the amount of money the company would receive and which date they were …

Web Development php
Member Avatar for HITMANOF44th
0
111
Member Avatar for jacob21

hello i am new in asp.net and in sql i want to fetch all different data of same id no and this data make addition to each other how it possible such as invoice_no dabit 111 50 111 100 111 20 according to above sql query select * from table …

Web Development asp.net
Member Avatar for jacob21
0
91
Member Avatar for harsha.netpem

Hi, I need some help, I am trying to insert multiple check boxes values(this values comes from 1st database) and I am giving the check boxes in the output(result fetch from 1st database). I want to insert all selected values into to the 2nd database from 1st database using PHP. …

Web Development php
Member Avatar for harsha.netpem
0
746
Member Avatar for binoy.mathew

Hello, I am basically a fresher in ASP.NET. I am building a website that has large contents of text data. The site also has a quiz based on some articles. I have two questions: 1) Which is the best way to store large amounts of text data? Is it good …

Web Development asp.net client-server storage
Member Avatar for binoy.mathew
0
452

The End.