52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for atticusr5

Hello all, I am messing around with the jPaginate files, essentially a pagination script using jQuery. I have the mark up working, but I am just messing around (not a real expert in JavaScript) and I have a simple question. When the user clicks on the next page icon, the …

Member Avatar for atticusr5
0
153
Member Avatar for furlanut

I have a simple form which echoes data from db. when name typed. It works fine when name is typed and submit pressed. But I see that even when no name is selected or, when existing results on screen, pressing submit brings up ALL names from table not just row …

Web Development php
Member Avatar for furlanut
0
124
Member Avatar for jacksantho

Hi, I was trying to import the excel values in mysql DB. While trying, am facing this error. Please help me out: [CODE]Fatal error: Call to undefined function mysql_real_espace_string() in E:\xampp\htdocs\read.php on line 49[/CODE] CODING: [CODE]<?php ini_set('memory_limit', '16M'); set_time_limit(0); require_once("E:/xampp/htdocs/phpexcel/Classes/PHPExcel.php"); $inputFileName='./xls/test_data.xls'; /** Identify the type of $inputFileName **/ $inputFileType=PHPExcel_IOFactory::identify($inputFileName); /** …

Web Development mysql php
Member Avatar for jacksantho
0
1K
Member Avatar for WaltP

Using onMouseOver in a link - I am able to display a file's contents in a frame. - I can display an image file in an IMG tag But I can't figure out how to combine the two. What I want to do is onMouseOver display the contents of a …

Web Development file-system javascript
Member Avatar for WaltP
0
177
Member Avatar for triumphost

[IMG]http://i.imgur.com/DGegu.png[/IMG] I have that page above.. But the thing is the entire website was made using an iFrame that loads another page.. Each page has one of those at the bottom. Thing is when the main page loads the second page, there are duplicates of those at the bottom. I …

Web Development html-css javascript
Member Avatar for Amr87
0
228
Member Avatar for nestkojex

Hello guys, i created a form and i want to form to serve a dual purpose of sending data to my database contacts and and another database for newsletter. so the task is as follow: one form serving two databases at one click on submit. i need your help. thank …

Web Development php
Member Avatar for diafol
0
99
Member Avatar for Amr87

Hello Everyone, I`m Using this code to pass javascript associative array to php using jquery ajax [CODE]function install (loc) { var mydata = []; //lightbox(); switch(loc){ case "step1": { mydata['step'] = '1'; mydata['SiteName'] = $("#siteName").val(); mydata['SiteDesc'] = $("#siteDesc").val(); mydata['AdminEmail'] = $("#adminEmail").val(); mydata['username'] = $("#username").val(); mydata['password'] = $("#password").val(); } break; case …

Web Development javascript javascript-jquery php
0
94
Member Avatar for Violet_82

Hi there, I am having some problem understanding an event in jquery. Given the following example [url]http://api.jquery.com/event.pageY/[/url], I don't quite understand what 'e' is and what it does. The rest of the code is kinda clear, it basically gets the coordinates but I don't understand what is the function of …

Web Development api javascript javascript-jquery
Member Avatar for Violet_82
0
236
Member Avatar for bouhbob

Hi there, I've made this page in html: [url]http://www.greenbeanbaby.com/retailers.php[/url] with drop-down menus that work. But when I try to make it dynamic for my client to update it, I'm stuck! The drop downs don't work. Here is the code I'm using: [CODE]$r=mysql_query("SELECT * FROM retailer"); $varloop=1; echo "<div id='wrap'>"; while(list($idr, …

Web Development html-css php
Member Avatar for diafol
0
174
Member Avatar for Nahiyan

Hello, I want to fetch data from a MySQL database's table and order the selected data by date. Which data format is ordered most precisely by MySQL? I also want the date format to be unique. Please express the format just like PHP's one, example: h:i:s. Thanks, Nahiyan

Web Development mysql php
Member Avatar for diafol
0
122
Member Avatar for raistie

Hi everyone, i am only just jumping on the AJAX train after all these years... and finding it such a headache - been spending days wondering why i keep getting it wrong. I am trying to load a jquery plugin in div using jquery AJAX. current i am using [CODE]$('#content').load('minishowcase/index.php');[/CODE] …

Member Avatar for Airshow
0
221
Member Avatar for wolfgangcs

Just learn PHP and wrote a very simple "app" and now wanting to take it offline. Is JavaScript how we access and create databases on a local level if HTML5 now? Trying to connect all the dots.

Web Development javascript
Member Avatar for jmichae3
0
135
Member Avatar for klemme

Hi all, This is a ? about Ajax, PHP and form processing. When I submit the form further below, nothing happens! I didnt set the form-"action" to anything. I left it out, to make the form submit to the same page, so I can validate on the same page too …

Web Development javascript php
Member Avatar for McLaren
0
234
Member Avatar for bbman

Hey everyone, I have the following varaibles: $_POST['month'] $_POST['day'] $_POST['year'] I need them to be put into a string format such as '2012-02-15' (Year-Month-Day). Could someone please help me do this in php? I've tried a few times but can't connect them with the "-" successfully. Thanks for your help.

Web Development php
Member Avatar for bbman
0
174
Member Avatar for dmservers

Hello all, I've ran into a bit of a problem and I can't figure out how to get out of it. Basically, I have an autosuggest input field on my website and I would like to get data from 2 mysql tables. It is similar to yell.com where you search …

Web Development javascript-jquery php
Member Avatar for cwarn23
0
182
Member Avatar for dz.bookerz

i have this html code: [CODE]<table border="0" width="24%" cellspacing="0" cellpadding="0"> <tr> <td width="62"></td> </tr> <tr> <td width="62"><span>Country<span>:</span></span></td> <td><select name="country" class="cbbody"> <option selected>Select a Country</option> <option value="CA">Canada</option> <option value="US">United States</option> <option>--------------------------------</option> <option value="FR">france</option> <option value="ES">Spain</option> <option value="DE">Germany</option> <option value="IT">Italy</option> </select></td> </tr> </td> <tr> <td width="62">State<span>:</span></td> <td><select name="state" class="cbbody"> <option value selected>Select …

Web Development javascript
Member Avatar for MartinRinehart
0
141
Member Avatar for phorce

Hello, I'm trying to calculate the center of a DIV element. But it doesn't seem to be working, I don't quite get what to do with the calculations.. Here's my code: [code] <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <style type="text/css"> body { background-color: #cccccc; } .rectangle { width: 400px; height: 100px; border-style:solid; …

Web Development html-css javascript
Member Avatar for MartinRinehart
0
93
Member Avatar for diafol

Hi all, been dipping my toe into OOP and am getting on OK, but I'm hitting a bit of a wall with a current project. classes: db (a PDO extended class) User Timetable The db is just a few shorthand ways of running PDO The User is just for handling …

Web Development php
Member Avatar for diafol
0
215
Member Avatar for Helinxed

Hello brows,I'd like a little help. I'm making a web online game,then in the Map system. I need get coords of players that is around. Get in Database something like that: [CODE] <?php $result = mysql_query("select * from mapa where x_coord > '5' AND x_coord < '10'"); while($row = mysql_fetch_array($result)) …

Web Development php
Member Avatar for diafol
0
84
Member Avatar for wolfgangcs

Trying to make a short to do list. show item to do-->click who you are $who and $item sends to top to show that item no longer there, but the rest are [CODE] <? echo "Here is the list of things that need to be done!"; echo "<form>"; while($row3 = …

Web Development php programming-construct
Member Avatar for jmichae3
0
260
Member Avatar for siva28

Is PHP using to develop BLOg based that is CMS site or not? please reply...

Web Development cms php
Member Avatar for Stefano Mtangoo
0
102
Member Avatar for saybabs

I need someone to please advice me, which one is better in designing a website, dreamweaver or the CMS(Content management system.) Thanks for your usual contribution.

Web Development cms php
Member Avatar for Stefano Mtangoo
0
93
Member Avatar for oddcarout

I have searched to try to find out what is going on and I can't seem to figure it out. I am trying to follow an online tutorial for a simple rating system and am having trouble. here is the code [CODE]<?php include 'connect.php' $id = $_GET['id']; ?> <form action="rate.php" …

Web Development php
Member Avatar for Stefano Mtangoo
0
405
Member Avatar for naui95

Help, I have a big probem. I wanto to read data from an mysql table and then write this data into a form so that the user can update this data. The code could seem somethin like this, but it doesn't work [code] <?php include 'complete.php'; $user_name = "exa"; $password …

Web Development mysql php
Member Avatar for naui95
0
337
Member Avatar for mwenyenia07

i have three texts namely [B]price[/B],[B]quantity[/B] and [B]total[/B]. i want the value of [B]total[/B] to change with change in [B]quantity[/B] i.e [B]total[/B]=[B]price[/B]*[B]quantity[/B]. each time the value of quanity change, the function multiplies it with price and displays the quanity. can somebody send me a javascript code that can do so …

Web Development javascript php
Member Avatar for broj1
0
475
Member Avatar for lps

Based on my understanding, wp_enqueue_script is the function to bind the script to the head section while wp_enqueue_style is to bind CSS to it. My question is: is there any way to bind a php to head without using include?

Web Development php wordpress
Member Avatar for lps
0
114
Member Avatar for jacob21

I have a HTML/PHP form in which i am inserting vales in database.its working fine. What i am trying once user fill out the form,there should be a option of [B]save as pdf[/B] & [B]Print[/B] How to convert html form in to pdf. Need suggestions.

Web Development pdf php
Member Avatar for broj1
0
4K
Member Avatar for Psyho

Hello. My problem is this: I have a table, for which the row and cols number is given by the user. They contai images. Occasionally a cells picture will be changed. The question I have is this: How to do that? I will be able to compute which cell need …

Web Development html-css javascript
Member Avatar for MartinRinehart
0
151
Member Avatar for mspn

Hi all, very new to PHP (ie. only 2 days old!) so please be gentle! I have a form with text fields and a file upload, and the php script I have is working wonders in regards to uploading the file and emailing the form data along with a link …

Web Development file-system php
Member Avatar for mspn
0
1K
Member Avatar for geneh23

Hey everyone! I am fairly new to the php world but I am a quick learner when shown the right thing. I have a membership area sort of set up on my localhost in Easy PHP, and there is this Fatal Error that reads: "Fatal error: Cannot redeclare makeRandomPassword() (previously …

Web Development php
Member Avatar for nalini@121
0
231
Member Avatar for woodenduck

Hey, I was wondering if anyone could show me a little javascript. I've never used it before and am unfamiliar with how to reference outside API's. What I'm trying to do is read a string in from a website/Web API. So..: HTML with javascript document: [code] <script type="text/javascript"> var wantedString …

Web Development api javascript web-browser
Member Avatar for woodenduck
0
604
Member Avatar for calebcook

Hi. I'm trying to create a function which connects to a database, and then displays rows in it. I'm trying to use a function to connect, but it's not working. Here's my first code: [CODE]<?php define("SERVER", "mysql.example.com"); define("USERNAME", "username"); define("PASSWORD", "********"); define("DATABASE", "db"); function displayFunction() { $dbc = @mysqli_connect(SERVER, USERNAME, …

Web Development mysql php
Member Avatar for calebcook
0
138
Member Avatar for ptara1

So I'm trying to transfer a longblob from one data table to another. All the other data is transferring however the longblob isn't. I know it is getting up loaded to the temp table because the longblob column show s there is data in it. here is the snippet of …

Web Development mysql php
Member Avatar for sjsnider
0
1K
Member Avatar for zippee

Hi, is there any php function can read text between tags or quotes. For example, I have <h1>This is heading 1</h1> and "This is text in Quote", how can I use php to read the text between <h1></h1> tags or the text between quotes? I know I can use substr …

Web Development php
Member Avatar for jpdeleon
0
679
Member Avatar for asif49

I want to write how long it takes to parse one of the pages for my website. I've got the setting up of the time variable at the top of my script then have a lot of stuff which is done in-between. I then display time elapsed at the bottom …

Web Development php
Member Avatar for asif49
0
110
Member Avatar for methuselah90

I'm writing a piece of JS code that returns a result of true if the pattern appears in string as a substring (case sensitive) but would like to extend its functionality to returns true if all the individual characters of pattern appear in string (regardless of order). For example: This …

Web Development javascript
Member Avatar for AleMonteiro
0
210
Member Avatar for SethHall

Hey guys, I've been trying to do this since yesterday with no luck. I've tried stackoverflow, DIC and this is my last chance. I'm using drop down boxes to have a user select a ship date. I don't want them to be able to choose a date in the past …

Web Development javascript
Member Avatar for SethHall
0
1K
Member Avatar for intelgy

[B]Hello everyone, I'm new to PHP and creating an advertising website for massage therapists. On the profile page I'm creating a button so anyone can click on to send the advertiser an email. I created a page called profile_sendemail.php which contains the form to send the email and here is …

Web Development advertising email php
Member Avatar for the_traveller
0
291
Member Avatar for compulove

I have code for a browse button and I wanted to know how to write the code to output a sucess message if it saves correctly. Also how to output the file path to a textbox... here is the code I have so far... [CODE] protected void Browse_Click(object sender, EventArgs …

Web Development asp.net dataset
Member Avatar for bill_kearns
0
326
Member Avatar for davy_yg

The following form if I press simpan (translate: save) suppose to save and insert all the data capture. but it does not. When I press save, it makes the form blank and none of the data being capture why is it? product_edit.php [CODE] $nama = isset($_POST['nama']) ? $_POST['nama'] : ''; …

Web Development php
Member Avatar for davy_yg
0
134
Member Avatar for mansimran88

The message is not showing. Please help me. Thanks [CODE]<?php /* logout.php */ require('obj.php'); session_destroy(); $_SESSION['msg']='You have successfully logged out. Thank you for the visit.'; header('Location: '.$kPathUrl->adminUrl.'/login.php'); exit; ?>[/CODE]

Web Development php
Member Avatar for jogesh_p
0
128
Member Avatar for tut2tut

i want to make a button when click opening popup window with google adsense or any other..we need to click ads for continue download button..(this button has 10 second timer) here i have code please modify this if you can.. [CODE]<input id="submit" type=submit value='<?php echo _sbdown; ?>' onClick="window.open('http://www.mysite.com/ads.html','mywindow','width=400,height=200')"/>[/CODE] _sbdown = …

Web Development asp.net google-adsense
Member Avatar for stbuchok
0
108
Member Avatar for wgrogers58

Greetings I don't know javascript but have searched google for hours until I found daniweb, and so I thought I would ask experts. I want to be able to display a message for first time visitors to a website. Ideally it would check to see if they've been to the …

Web Development javascript
Member Avatar for stbuchok
0
302
Member Avatar for Stefan_Lam88

Hi guys, I m able to do pagination. But I face another challenge where I once click next,prev or page number,it will refresh the accordion. let say i got 3 headers of accordion.namely A,B,C. After clicking any function in either B or C. It will auto refresh to header A. …

Web Development javascript
Member Avatar for MartinRinehart
0
120
Member Avatar for mwenyenia07

hi i want to include images to pfd files that i create using cezpdf library. the following is my code: [CODE]$image=$this->cezpdf->ezImage(site_url("system/images/logo.jpg")); $this->cezpdf->ezImage( $image,0,0,320 );[/CODE] but it fails to load the image.can sobebody help me on this?

Web Development image pdf php
Member Avatar for cereal
0
1K
Member Avatar for yorro

Hi, I am using the AjaxControlToolkit's AutoCompleteExtender without a Web Service(PageMethod). **It is working fine on my local machine, but AutoCompleteExtender won't work in the IIS but other AjaxControlToolkit does.** I've searched around but none applies to my problem. It is running in IIS-6, and Framework 4.0. **Heres my code:** …

Web Development asp asp.net javascript
0
100
Member Avatar for saikumars

I want to perform calculation in gridview :NetAmount=(ServiceAmount*Quantity)*Discount I had written code in rowdatabound but it is not working,i amnew to programming help me solve this proble i would appreciate if some one share ther knowledge my Axpx code is: <asp:GridView ID="GridView1" runat="server" Height="156px" Width="618px" AutoGenerateColumns="False" BorderWidth="1px" HorizontalAlign="Justify" onrowdatabound="GridView1_RowDataBound" BackColor="LightGoldenrodYellow" …

Web Development asp asp.net dataset
0
107
Member Avatar for Joshua Kidd

Hello, Lets say I have a users Database. When the user registers, it assigns a random id to the user using the mt_rand(); function. What if there is a slight chance that there would be already the id of that user in the db. How can I prevent this from …

Web Development php
Member Avatar for Joshua Kidd
0
85
Member Avatar for n3xtgen

I am trying to get the maximum value in an array but when I try to display it I get every value from that array. [CODE] for (var ii = 0; ii < items.length; ii++) { var myArray = [items[ii].odoEnd]; var highestEnd = (Math.max.apply(Math,myArray)); $("#trips").append("<li>" + items[ii].TripDate + " : …

Web Development javascript
Member Avatar for Airshow
0
153
Member Avatar for chijkl

I have problem with the convert button please help Thanks in advance [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <script type="text/javascript"> var th = ['',]; var dg = ['zero', 'ichi', 'ni', 'san', 'yon', 'go', 'roku', 'nana', 'hachi', 'kyuu']; var tn = ['juu', 'juuichi', 'juuni', 'juusan', 'juushi', 'juugo', 'juuruko', 'juushichi', 'juuhachi', 'juuku']; …

Web Development javascript
Member Avatar for chijkl
0
141

The End.