52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Estevan_Musgo

Hi guys, Im a uni student who's just getting started on PHP + i've hit a brick wall already. One of my tasks is to use PHP to show the song lyrics of "10 green bottles" (standing on a wall) using loops and if statements. I was thinking of having …

Web Development php
Member Avatar for Estevan_Musgo
0
103
Member Avatar for mmcdonald

Hi all, I have a hidden division that is supposed to appear when the button, as shown below, is clicked by the user. The division is hidden on page load, and does actually appear when the button is clicked, but nothing happens on the first click. To clarify, you have …

Web Development javascript
Member Avatar for JorgeM
0
13K
Member Avatar for tony75

Hi How can I pass value of my radio buttons to my form.php code? I will be very thankfull for your answer. <form action="form1.php" method="post"> First name: <input type="text" name="fname"><br><br> Last name: <input type="text" name="lname"><br><br> <h3>What is the best programming language to learn for hacking</h3> Python <input type="radio" name="rb_python" value="Python"><br> …

Web Development html-css perl php
Member Avatar for tony75
0
343
Member Avatar for kelley82879

I have a searchable database.. I would like to change the style of how the table is displayed... I have a css file of how I would like the table displayed.. Can that be done? If so..How?

Web Development html-css mysql php
Member Avatar for kelley82879
0
301
Member Avatar for Indians

<?php include("config.php"); if (isset($_POST['submit_val'])) { $cmeal = mysql_real_escape_string($_POST['meal']); $meal = "INSERT INTO ebmealplans( MealPlanName, CreatedOn ) VALUES ( '{$cmeal}', NOW() )"; if(!mysql_query($meal, $link)) { die("Error : " .mysql_error()); } $croom = mysql_real_escape_string($_POST['room']); $ref_key = mysql_insert_id(); $room = "INSERT INTO ebroomtypes( RoomTypeName, CreatedOn ) VALUES ( '{$croom}', NOW() )"; if(!mysql_query($room, $link)) …

Web Development javascript mysql php
Member Avatar for diafol
0
8K
Member Avatar for gahhon

![170635e49469dbb4197a0bcddafc866d](/attachments/large/3/170635e49469dbb4197a0bcddafc866d.jpg "170635e49469dbb4197a0bcddafc866d") public static void Print(string ElementID, string SecondElementID) { Page page = HttpContext.Current.CurrentHandler as Page; StringBuilder sb = new StringBuilder(); sb.Append("<script type = 'text/javascript'>"); sb.Append("var divID_1 = document.getElementById('" + ElementID + "');"); sb.Append("var divID_2 = document.getElementById('" + SecondElementID + "');"); sb.Append("divID_1.border = 0;"); sb.Append("divID_2.border = 0;"); sb.Append("var prtwin = …

Web Development asp.net
Member Avatar for gahhon
0
134
Member Avatar for Zain_2

Hi, I need to automatically submit button only once. the javascripts i have tried keep submitting the page in an endless loop so to fix the problem the auto submit part only needs to work once when the page is loaded. please help. Thanks

Web Development php
Member Avatar for JorgeM
0
121
Member Avatar for nadiam

So i have a table and a calculate button. the calculate button is responsible to selecting data from specific tables and then the selected data will be displayed and added together along with the calculation. but something is wrong with the process because it is not calculating correctly. table & …

Web Development php
Member Avatar for Lsmjudoka
0
354
Member Avatar for Indians

index.php coding <td><input type="text" name="slno[]" value="" size="2"></td> <td><input type="text" size="10" name="date[]" id="SelectedDate" onClick="GetDate(this);" readonly="readonly"/></td> <td><input size="24" type="text" name="particulars[]" value="" placeholder="Description"></td> <td><select name="noofnights[]" value="0"> <option value="empty"></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option …

Member Avatar for Lsmjudoka
0
6K
Member Avatar for yavindu

Is there good way to generate reports in php(Free software which can customize tables easy).I've used dompdf, but when table is big every thing gets mess up. Thanks

Web Development php
Member Avatar for Lsmjudoka
0
131
Member Avatar for nadiam

My form has a 'save' button and 'select from previous month' button. what 'save' button does is insert all the values into my database. save button code: if(isset($_POST['jansave'])) { $basic = $_POST['basic']; $allowance = $_POST['allowance']; if($basic&&$allowance) { require "connect.php"; $total=($basic + $allowance); $query=("INSERT INTO january (basic,allowance) VALUES ('$basic','$allowance')"); $janresult=mysql_query($query); } …

Web Development display php
Member Avatar for Lsmjudoka
0
5K
Member Avatar for nancybrown1959

Can anyone help me figure out how to fix these errors? Warning: mysql select db(): supplied argument is not a valid MySQL-Link resource in /home/xxxxx /index.php on line 37 Line 37 is: mysql_select_db($conn, "yourmil_content"); ----------------------------------------------------------------------------- Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in/home/xxxxxx/index.php on line 247 Line …

Web Development php
Member Avatar for Lsmjudoka
0
435
Member Avatar for nadiam

hey guys, so im trying to display data from my database into a table but i got this error : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\CashFlow\balance_report.php on line 45 code: <?php require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query=("SELECT * FROM asset WHERE name …

Web Development mysql php
Member Avatar for nadiam
0
217
Member Avatar for suraj32

Hi, I've got this string when parsed a web page. string(41) "_result_ = {status:"OK", id:"30025", name:"John Doe", location:"India"}" I believe that this code is JSON. but when I use json_decode() , it returns NULL. Someone Please help me parse this string. Thank you. :)

Web Development json php xml
Member Avatar for suraj32
0
189
Member Avatar for Karry.Stewart

Hi I've a website and it shows a strange urls on the search engine and it sometimes crawls or wont show in the search engines what to do should we keep a robots.txt file. and How to take away the strange url we see in all search engines as **www.website.com/?C=S;O=A** …

Web Development php
Member Avatar for cereal
0
304
Member Avatar for frankenfrank

What are the things that a server side programmer should be aware of that a client side programmer should not? and what are the things that a client side programmer should be aware of that a server side programmer should not?

Web Development client-server
Member Avatar for ugi.nagesh
0
122
Member Avatar for DTSCode

so i want to set default error pages for my website, but im having trouble with setting the default 404 page (i havent done any others yet). i am running a lamp server, and put the .htaccess in the root of it (/var/www) and put in it ErrorDocument 404 /error/error404.php …

Web Development apache php
Member Avatar for TheJeffMatson
0
275
Member Avatar for tqmd1

Dear Sir, I have following codes <?php $country=""; $capital=""; if (isset($_POST['submit'])){ $country=$_POST['text1']; $capital=$_POST['text2']; if (empty($country) || empty($capital)){ die ("<script> alert('Please fill both boxes')</script>"); }else{ echo "<script> alert('The capital of $country is $capital')</script>"; } if (isset($_POST['clear'])){ $country=""; $capital=""; } } ?> <html> <head> <title>Result on same page</title> </head> <body> <center> <form …

Web Development php
Member Avatar for furqan219
0
121
Member Avatar for eos.paks

Good Day, I have a ASP website fully working and i want it to Deploy on Windows Azure? How can i do that im basically new this Azure of Microsoft. Your Immidiate Response is Highly Appreciated. Thank you, EOS

Web Development asp microsoft-azure
Member Avatar for pritaeas
0
132
Member Avatar for pranay.baba

<?php include("db.php"); $result1 = mysql_query("SELECT DATE_FORMAT(CURDATE(), '%Y-%c-%d %H:%i') "); $row=mysql_fetch_array($result1); $from=$row['0']; echo $from; echo "<br>"; $result2 = mysql_query("SELECT DATE_FORMAT(CURDATE() - INTERVAL 2 DAY , '%Y-%c-%d %H:%i')"); $row1=mysql_fetch_array($result2); $to=$row1['0']; echo $row1['0']; $result3 = mysql_query("SELECT * from pr where date between '$to' and '$from' "); $row3=mysql_fetch_array($result3); //$to=$row3['0']; echo $row3['0']; echo $row3['1']; ?>

Web Development php
Member Avatar for diafol
0
163
Member Avatar for MariannJ

How to Compare a radio Selection in JSP. I want to make radio selection unselectable depending on the another radio selection. Below is Jsp Code. The JSP Page is linked with some Java files where the retrieve and display is done from the database. Below is the link which contains …

Web Development java-jsp
Member Avatar for stultuske
0
178
Member Avatar for annyangel

i have a database (hello) and it has 2 tables 1. login_tbl and 2. users_tbl both contains the 3 fields id,username,password and id,first_name,last_name respectively. now plz help me to write the php code according to this which helps to search the users details in users_tbl and fetch all the records. …

Web Development mysql php
Member Avatar for annyangel
0
170
Member Avatar for jatinmca

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UpdateTime(); } } protected void Timer1_Tick(object sender, EventArgs e) { UpdateTime(); } public void UpdateTime() { try { int hour = 00, min = 00, sec = Int32.Parse(Session["tleft"].ToString()); // min = Int32.Parse(Session["tleft"].ToString()) / TimeSpan span = new TimeSpan(TimeSpan.TicksPerSecond * sec); …

Web Development asp.net session
Member Avatar for Sathish_3
0
1K
Member Avatar for nouth

Is there a way to make a [drop-down list](https://en.wikipedia.org/wiki/Drop-down_list) that lists all of the textfiles in the same folder as my webpage is in? I only want the textfiles because I have other filetypes in there but while typing this, it makes me wonder if I can read the webpages …

Web Development javascript javascript-jquery
Member Avatar for pixelsoul
0
155
Member Avatar for nouth

I am using variables for my numbers. I require the smallest number and so I use `min()` to achieve that but if I have multiple values it will only take them in chronological order. var a = 98 ; var b = 82 ; var c = 61 ; var …

Web Development javascript
Member Avatar for nouth
0
138
Member Avatar for Izzah_1

i have created a page which has a table that enables user to delete a record via a delete button but somehow the queary isnt working. php coding <?php include("dbase.php"); $idURL = $_GET['id']; // Connect to database server mysql_connect("localhost", "root", "") or die (mysql_error ()); // Select database mysql_select_db("studiobooking") or …

Web Development mysql php
Member Avatar for diafol
0
336
Member Avatar for vizz

I have six number sets. Each have two digit number which range between 01 to 49. How to create all possible combinations? And how to calculate total number of possible combinations? e.g 1. Number set:- **A B C D E F** 2. Lower Limit:- **01 01 01 01 01 01** …

Web Development php
Member Avatar for diafol
0
355
Member Avatar for nadiam

hey guys, so im trying to auto calculate two textfields. like for example i have textfield A and textfield B and also a <span> tag. the span tag is default zero. when user inputs A as 5 the <span> tag becomes 5. then when user inputs B as 2, A …

Web Development javascript
Member Avatar for nadiam
0
12K
Member Avatar for João_5

Hello guys, i already have my databases and scripts working, and i was implementing a small webserver under windows 7 with xampp. But after configuring all needed in apache, i can see the pages in the server but non of the clients can see the pages. No error is displayed, …

Web Development apache dns php
Member Avatar for cereal
0
777
Member Avatar for Izzah_1

hi need a very big help..and im a newbie in this field im keep getting the same error "Parse error: syntax error, unexpected 'button' (T_STRING), expecting ',' or ';' " here the code : <!--FORM--> <form method="POST" action="BookingnDisplay_Process.php"><!--link to DB--> <br> <h1><center>TALENT STUDIO Booking form</center></h1> <u><strong>Please read carefully.</strong></u></p> <p><strong>1. If …

Web Development php
Member Avatar for JorgeM
0
690
Member Avatar for swagato.datta

i want to create a comment box like this website for my forum can any one help me to solv tis code thnx..

Web Development javascript
Member Avatar for JorgeM
0
157
Member Avatar for rtica3

Hello, I have read numerous forums on this issue and is seems each case/resolution is specific to the persons file. I have the same error, but can't find where it is coming from. This is from a wordpress site I did not create - this just appeared out of nowhere …

Web Development php wordpress
Member Avatar for EvolutionFallen
0
5K
Member Avatar for João_5

Hello guys, now that i have all my scripts up and running i need some help configuring virtualhosts on Apache/Xampp/Win7 The Httpd-vhosts.conf like this: <VirtualHost *:80> ServerAdmin joao.dias@centralcervejas.pt DocumentRoot "C:/xampp/htdocs" ServerName kadar ServerAlias www.kadar <Directory "C:/xampp/htdocs/" > Options Indexes FollowSymLinks ExecCGI Includes Order allow,deny Allow from all </Directory> </VirtualHost> The …

Web Development apache dns php
Member Avatar for pritaeas
0
173
Member Avatar for vbdotnetlover

Sir, I have following codes <?php $country=""; $capital=""; if (isset($_POST['submit'])) { $country=$_POST['text1']; $capital=$_POST['text2']; echo '<script type="text/javascript">alert("The capital of " .$country. "is " . $capital)</script>'; } if (isset($_POST['clear'])) { $country=""; $capital=""; } ?> <html> <head><title>Result on same page</title> </head> <body> <center> <form name="form1" action="same_browser.php" method="post"> Country<input type="text" name="text1" value="<?php echo $country;?>"><br> …

Web Development php
Member Avatar for AARTI SHRIVAS
0
132
Member Avatar for ditty

Hi htaccess is not working in godaddy hosting. but it is working in other servers. Please help me to solve this. Thank you

Web Development apache php
Member Avatar for mybids
0
173
Member Avatar for saranya@123

hi, i want permutation for all alphabets with word length is 8.but i get only permutation for 4.pls help me to debug this issue code: <?PHP FUNCTION permutations($letters,$num){ $last = STR_REPEAT($letters{0},$num); $result = ARRAY(); WHILE($last != STR_REPEAT(lastchar($letters),$num)){ echo "$last"; $result[] = $last; $last = char_add($letters,$last,$num-1); } $result[] = $last; RETURN …

Web Development php
Member Avatar for pritaeas
0
214
Member Avatar for jdm

I'm working on a insert form for my movie database and I have some code working and will be adding more to it, but I wanted to know if there was a better way to go about doing some of this or if I have made a huge coding error. …

Web Development php sql
Member Avatar for diafol
0
474
Member Avatar for krunal1986

Hello All, i want to embed a vimeo video on my site. how can i do it? any code or reference links will be appreciated.. thanks, kk

Web Development asp.net video
Member Avatar for krunal1986
0
204
Member Avatar for isaac.iji.5

creating a simple news feed just like facebook is not the problem but instead of posting text i want users to post videos and audios also so other users can watch the videos and play the audio files

Web Development audio php video
Member Avatar for isaac.iji.5
0
120
Member Avatar for saranya@123

hi, i want to display output line by line using jquery.i tried many times but it not works..pls help me.. Html Code: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $('#sub').click(function(){ $('#msg').html("<center><img src='http://46.16.168.75/saranya/images/9%20(1).gif' alt='LOADING...' width='20' height='20'/>Loading........</center>"); $.ajax({ type: "POST", url: "ping1.php", data: $("#form1").serialize(), success: function(data) { $('#msg').html(data); alert(data); } }); return false; …

Web Development display javascript-jquery php
Member Avatar for saranya@123
0
1K
Member Avatar for Amoryethel

I'm trying to use sessionStorage to pass information from a merchandise page to shopping cart page, which displays what items were purchased, how many items were purchased, cost of item, cost of subtotal, cost of total before taxes, the tax amount and after taxes. It displays the monetary value of …

Web Development javascript
Member Avatar for ryantroop
0
262
Member Avatar for fheppell

I'm changing some things around on my webapp and one of the major changes is assets are now stored in S3 (via filepicker.io) rather than locally. Here is some code I have to generate a zip file from an array of files //example values //loc could be uploads/1/7878837474test.jpg //name coule …

Web Development file-system php
Member Avatar for pixelsoul
0
1K
Member Avatar for gahhon

protected void Page_Load(object sender, EventArgs e) { if (CookieWrapper.Username != null && CookieWrapper.Role == "Member") { hlUsername.Text = CookieWrapper.Username; showProfilePicture(); } else Response.Redirect("~/ErrorPages/401.aspx"); } In this master page Page_Load event i will check whether the cookies values, if false will redirect to the error page. So another words, my child …

Web Development asp.net
Member Avatar for gahhon
0
1K
Member Avatar for nolife

hi everbody, i search how i can make the same login page as https://www.tumblr.com/ if some have any idea think's for your helping :)

Web Development asp asp.net
Member Avatar for pitic
0
255
Member Avatar for mrhankey

hi there, need some urgeny help. is there a way to from my web application php/mysql create an email which will go to outlook and send via outlook? so user uses the web application to input customer details. create message with attachments from the server and then presses a button …

Web Development php
Member Avatar for mrhankey
0
383
Member Avatar for davidjennings

Hi All, I am trying to connect to a database OOP singleton method. I am getting an error "syntax error, unexpected 'function_construct'" and I unable to find the syntax error in the code. Any help with this would be appreciated. Thanks in advance David // Page: index.php <?php require_once 'classes/db.php'; …

Web Development php
Member Avatar for davidjennings
0
827
Member Avatar for marifard

Dear friends on daniweb, First of all hope all of you are ok. I post this article to suggest me some ideas about the attachment of paypal in php. I wish to try a booking site for travelling(as a dummy at this stage). For this, php language is better than …

Web Development ecommerce mysql php
Member Avatar for marifard
0
376
Member Avatar for nadiam

im trying to get a data from database into a text field: $fothersq=("SELECT others FROM january"); $fothers=mysql_query($fothersq); <input type="text" placeholder="0" name="febothers" size="11" value="<?php if(@$fothers){echo htmlentities(@$fothers);} ?>"> but i got this error in the text field instead. <br /><b>Warning</b>: htmlentities() expects parameter 1 to be string, resource given in <b>C:\xampp\htdocs\CashFlow\febprev.php</b> on …

Web Development html-css php
Member Avatar for nadiam
0
2K
Member Avatar for varunneetye

hello i am using asp.net Label2.Text = "https://maps.google.mu/maps?ie=UTF-8&q=Super+U&fb=1&gl=mu&hq=super+u&hnear=0x217dab7739bd6edb:0xb470aaccbadadf71,Grand+Baie&cid=0,0,9595546268857988711&ei=v52LUsfpGofKrAfq84CAAg&ved=0CKwBEPwSMA8" End While Response.Redirect("http://localhost:9333/ozeki?action=sendMessage&login=admin&password=abc123&recepient=" + num + "&messageData=" + "Address :=" + "%20" + Label1.Text + Label2.Text) i have to send message to ozeki virtual phone everything is working fine but there is one problem. when label2 display the message on ozeki virtual …

Web Development asp.net
Member Avatar for varunneetye
0
132
Member Avatar for old_apache

for example: current url : localhost/website becoming : localhost/website/product without refreshing. Thanks in advance

Member Avatar for harsh9
0
337

The End.