52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for GlenRogers

Hi, I use some jquery/ajax to try and get the id of a link button and display all the products associated with that id. I'm using the exact same code that worked for me on another site, but nothing happens when i click a button! This is the menu of …

Web Development javascript
Member Avatar for GlenRogers
0
182
Member Avatar for furlanut

Have I got this totally wrong ? It should be simple. Whatever I try I return the COMPLETE A-Z and never the selected letter only. It seems I am not able to change the variable $name at all. The relevant code I have made is: <?php $alphasearch=''; $spanSearch = range('A','Z'); …

Web Development javascript
Member Avatar for furlanut
0
126
Member Avatar for mpc123

HI I have an else if statement that all the results are coming out as the first if even though in the info row they are different in the table, hope someone can help. // showbanners if($row['info'] ="Some Apples") { $showbanners = '<img src="1.png"><br><br><img src="2.png">'; } elseif($row['info'] ="Some Bananas") { …

Web Development php
Member Avatar for mpc123
0
142
Member Avatar for bradly.spicer

Hey guys, So close to the end with this! function JobBoard_admin_edit() { echo "<h4> edit </h4>"; ?> <form name="jobboard_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> <?php echo '<select name="ID">'; $con_edit= mysqli_connect("localhost", "profiled_job","", "profiled_jobboard") or die(mysql_error()); $sql="SELECT ID,Employer FROM details"; $result =mysqli_query($con_edit,$sql); $employer_id = $_POST['ID']; while ($data=mysqli_fetch_assoc($result)) { echo …

Web Development php wordpress
Member Avatar for pzuurveen
0
190
Member Avatar for Octet

Hello Daniweb, I am facing a problem with my web host, 123-Reg and their basic Linux startup package. To summarise what this package contains, it is a small scale shared hosting environment with support for PHP. I am developing a content management system which writes data to a flat file …

Web Development cms php storage
Member Avatar for Octet
0
592
Member Avatar for hbm11

<?php include ( './includes/template_pageTop.php' ); if (isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['password']; $check_username = mysql_query("SELECT username FROM users WHERE username='$username'"); $numrows = mysql_num_rows($check_username); if ($numrows != 1) { echo 'That User doesn't exist.'; } else { $check_password = mysql_query("SELECT password FROM users WHERE password='$password' && username='$username'"); while ($row …

Web Development mysql php
Member Avatar for pritaeas
0
309
Member Avatar for silentkill89

I am trying to update whatever content in the textbox that has been edited and post to database. However, only the second record is update but the first record is not. I think should be the while loop problem but I don't what is the mistake. Here's my edit page …

Web Development php
Member Avatar for F-3000
0
217
Member Avatar for Rachael_1

Hi, I have read through several questions on stackoverflow before asking this. I have very little knowledge on php and mysql so much help is needed. So, what I needed is to create a button for every table row so that when user hits the "copy" button, the data for …

Web Development php
Member Avatar for broj1
0
1K
Member Avatar for AndyFang1998_1

Hello, I would like to make a script that will go to a website like "http://www.facebook.com" and login to the website, automatically. Perhaps it would be even better if the user could see the script log the user in, with an iFrame. I also need the script to load the …

Web Development php
Member Avatar for Banderson
0
184
Member Avatar for ammukarthi

I am trying to create a simple login form on giving correct username and password the form is not tranferring to the next page it just remains in the same page.And my code is <script runat="server"> sub Page_Load If txtuname.Text="xxx" AND txtpass.Text="xxx" Then Response.write("Welcome user") Server.Transfer("login2.aspx") Else Response.write("Invalid Username and …

Web Development asp.net
Member Avatar for JorgeM
0
108
Member Avatar for SirMahlon

<html> <body> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydb", $con); $sql="INSERT INTO users(firstname, lastname) VALUES ('$_POST[firstname]','$_POST[lastname]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con) ?> </body> </html>

Web Development php
Member Avatar for broj1
0
237
Member Avatar for JiminSA

Hi there! I have just joined DaniWeb and would like to pose a question... I need to direct my UK visitors to a Special Homepage, does anyone know of some simple PHP or even Javascript code that will point me in the right direction?

Web Development php
Member Avatar for varunr
0
498
Member Avatar for jain4

Hello There, I have a website where i have a small block to show new arrivals in products. The Products are marked in Database as they are New: Yes / No. I am fetching these products in a datalist on my client side page. The display area is for two …

Web Development asp.net
Member Avatar for JorgeM
0
152
Member Avatar for albanclesh

Hi! am new in php, and i want my web application to be able to print the data displayed on my web page by pressing on the print button. HELP ME PLEASE,VERY URGENT!

Web Development php
Member Avatar for albanclesh
0
457
Member Avatar for satheeshakira

Hi, Some one pls help me to read datas from mysql table and update only single field in my table. I have mysql table and already inserted datas. But now i want to update only date field , since i need to place the all other data as it is. …

Web Development microsoft-office php
Member Avatar for satheeshakira
0
2K
Member Avatar for ej.p.lopez

good day can anyone help me with my sort by? nothing happens when clicking the sort no errors tried the codes 4 years ago don't know if it's still usable the sql.= i think don't work or my other query just disables it. here's my sql command thanks :D. help …

Web Development php sql
Member Avatar for broj1
0
241
Member Avatar for davy_yg

Hello, I wonder which is more efficient to create a complex software CRM system like salesforce.com: To use frameworks(CI) or to program using OOP PHP ?

Web Development oop php
Member Avatar for Banderson
0
187
Member Avatar for Mike_H

I have a table with over a thousand records that I need to update a field I have called "id". I need each record's ID to be unique. I am using the uniqid() function which works just fine. When I use the code below (and several other variations of it), …

Web Development mysql php
Member Avatar for Mike_H
0
123
Member Avatar for fagbenro.michael.1

Good day, I have been given a project to handle by my boss. The project is to design a new website for my company. The website is now ready and what is left is to put it out live on the internet. however, there is an existing domain name that …

Web Development microsoft
Member Avatar for JorgeM
0
385
Member Avatar for nigelhow

Hi, When i leave my text boxes empty , there will be errors that will be displayed beside my text boxes.Example: type is required. I have a file name trade form result.php which defines all my validations and price.php which inserts in to database.It is going into the first if …

Web Development html-css php
Member Avatar for nigelhow
0
259
Member Avatar for Sanjay_6

Rightnow i am facing a problem of print Long Text. In my database i have data in long text format and that field has around 2000 line of text so how can i print that. I am giving here full code of my file please go through it and try …

Web Development android php
Member Avatar for broj1
0
1K
Member Avatar for riahc3

Hello Im looking for a jQuery Easy Slider type of plugin but instead of images, allows me to present HTML/JS/etc content to the user for when he, for example, click on the next button (something that Easy Slider provides) Anything like this out there?

Web Development javascript-jquery
Member Avatar for pritaeas
0
267
Member Avatar for devianleong

Hi,Currently I'm using this tutorial : [Click Here](http://docs.cksource.com/CKFinder_2.x/SelectFunction) but the output is /home/xxx.com/public_html/images/image/1234.jpg How can I change the path to /images/image/1234.jpg ? Please help me ><

Web Development html-css php
Member Avatar for devianleong
0
183
Member Avatar for son jo

attach is my code for search.php but i have error on line 9, can someone pleasee help me to fix it ? Thnk you XAMPP said Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\series\insert\Search.php on line 9 line 9 code: while($row = mysql_fetch_array($results)){ below is my …

Web Development mysql php
Member Avatar for pritaeas
0
331
Member Avatar for Rachael_1

Hi, I am new to Javascript and PHP and I am trying to duplicate some data and store it in a database when users clicked on the "copy button". [Click Here](http://i.stack.imgur.com/9oy70.jpg) With reference to the image(click on the link above), upon clicking "copy trade" the data will be replicated into …

Web Development javascript
Member Avatar for Rachael_1
0
230
Member Avatar for Silfro

Hello I got one problem. I have a site where people can add movies. Its possible to add up to 10 different hosts. Every host can have up to 2 parts. html <TABLE> <TR><TD width=120>Hoster*:</TD> <TD> <SELECT class="interfaceforms" name="addmovie[][hoster]"><OPTION value="">Please select</OPTION> <?PHP foreach($hoster_list AS $aKey => $aValue) { echo'<option value="'.$aKey.'">'.$aValue.'</option>'; …

Web Development mysql php
Member Avatar for Silfro
0
213
Member Avatar for commando1200

My website isn't getting crawled to my knowledge at all or very infrequently does my robots.txt file have something to do with that? My current file looks like User-agent: * Disallow: / Is this good or bad for crawls?

Web Development
Member Avatar for james.lu.75491856
0
141
Member Avatar for Octet

Hello Daniweb, I am trying to implement a show/hide feature for a website, to help organise the content more effectively. At the moment I am using a simple JS function that changes the .style.display of a div to either none or block. The problem is that because the content is …

Web Development javascript
Member Avatar for Octet
0
162
Member Avatar for erkanay

<!DOCTYPE HTML> <html> <head> </head> <body> <form action="2.php" method="post"> <table width="400" border="0"> <tr> <td>Ders sayisi :</td> <td><input type="text" name="sayi" /></td> </tr> <tr> <td><input type="submit" name="gonder" value="Gonder" /></td> </tr> </table> </form> <?php if(isset($_POST['gonder'])) { for($i=1;$i<=$_POST['sayi'];$i++) { echo "$i.ders"." "."<input type='text' **name='e$i'** />"." - "." <select name='dersler'><option **value='a1'**>A1</option> <option **value='a2'**>A2</option><option **value='b1'**>B1</option> <option …

Web Development html-css php
Member Avatar for diafol
0
288
Member Avatar for irfan hassan

Is there any free joomla framework which we can use professionally, and can change it's copyrignts.And what free joomla framework would be the best to use.

Web Development php
Member Avatar for irfan hassan
0
224
Member Avatar for davy_yg

Hello I wonder how to create a new screen like in: [Salesforce](http://www.salesforce.com/)](null) Cek the contact us button: If you click it a big form screen appears. How to create such a thing ? Also, if you ever fill in a form, they know your name etc., do they save visitors …

Web Development php
Member Avatar for Olagsfark
0
107
Member Avatar for Olagsfark

I have an online forun i just finished building. Now i need to build a script that moderates my forum witout me there.

Web Development php
Member Avatar for Olagsfark
0
273
Member Avatar for mpc123

Hi Im haveing a problem with ucwords and FINDINSET in a query I have tried all sortsof ways but just get errors I currently have and get FUNCTION ucwords does not exist. Can anybody help please $query = "SELECT * FROM TABLE1, TABLE2 WHERE FIND_IN_SET(ucwords(TABLE1.field), TABLE2.field)";

Web Development php
Member Avatar for mpc123
0
226
Member Avatar for pardeep3dec

Dear Experts, I am new to asp.net c# but proficient in c++. In asp.net c# i have to open a new page in new tab with pdf file on gridview1 column click event. so give me guidelines to do this. Thanks and regards, Pardeep

Web Development asp.net pdf
Member Avatar for arun1123
0
1K
Member Avatar for cirbab4

I am trying to show a loading div on button click, but it is not working at the moment. Javascript : <script type="text/javascript"> $(document).ready(function (e) { $('#BtnSend').click(function () { $('#<%= loading.ClientID %>').toggle("slow"); }); }); </script> Div: <div id="loading" class="Loading" runat="server" visible="false"> <div class="loadingImg"> <img src="../Images/loading.gif" alt="loading" /> </div> </div> button: …

Web Development asp.net
Member Avatar for arun1123
0
3K
Member Avatar for jcyarra

$cartOutput = ""; $cartTotal = ""; $ctr= 0; $collector = array(); $product_id_array = ''; if (!isset($_SESSION["cart_array"]) || count($_SESSION["cart_array"]) < 1) { $cartOutput = "<h2 align='center'>Your shopping cart is empty</h2>"; } else { $i = 0; foreach ($_SESSION["cart_array"] as $each_item) { $item_id = $each_item['item_id']; $sql = mysql_query("SELECT * FROM products WHERE …

Web Development mysql php
Member Avatar for diafol
0
1K
Member Avatar for harry010

I have a select element that I populate with data returned from an AJAX call. It workds most of the time but its unreliable. Sometimes it works the first time I click the link and sometimes not (mostly it works). I can see that the server is returning the correct …

Member Avatar for harry010
0
288
Member Avatar for rakwel10

Hello My input field has 2 state. If the user don't scroll the page or the page is in the homes page, the value of the input field is empty. When user starts scrolling, the value will be filled. My problem is when I scroll, the text inside the input …

Web Development javascript javascript-jquery
Member Avatar for paulkd
0
238
Member Avatar for son jo

my insert php cannot save data to phpmyadmin when it enter the details. localhost:locahost , username:root password: databasename:b_database tablename:my_library tablecolumn:2 contains : isbn(primary key) and title. index.php <html> <head> <meta name="description" content="Php Code for View, Search, Edit and Delete Record" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Search Library Record</title> </head> …

Web Development mysql php
Member Avatar for veedeoo
0
247
Member Avatar for venkatesh_1

hi i am new to wordpress. so i am getting lot of problems I am trying to display posts of specific category using the following code <?php $cat=$_GET["cat"]; $args=array('category'=>$cat); $posts_array = get_posts( $args ); foreach($posts_array as $posting) { echo $posting; } ?> But i am getting errors instead. Please anyone …

Web Development display php wordpress
Member Avatar for veedeoo
0
236
Member Avatar for kiLLer.zoh_1

<?php include 'inc/db.php'; function dateDiff($start, $end) { $start_ts = strtotime($start); $end_ts = strtotime($end); $diff = $end_ts - $start_ts; return floor($diff / 86400); } $q ="SELECT * FROM date"; $p=mysql_query($q); while ($res=mysql_fetch_array($p)) { $start =$res['sdate']; } $qc ="SELECT * FROM accounts"; $pc=mysql_query($qc); while ($r=mysql_fetch_array($pc)) { $elecend=$r['elec_contract_edate']; $gasend=$r['gas_contract_edate']; $elecshow =dateDiff( $start,$elecend ); …

Web Development php
Member Avatar for diafol
0
206
Member Avatar for engmizan

I am getting this problem when i submit an online inquiry form. How i fix it. My code is(mail.php) : <?php require_once 'admin/common/config.php'; // Read POST request params into global vars $to = "engmizan@gmail.com"; $from = $_POST['email']; $subject = "Online Enquiry / Order Form"; // registration information $name= $_POST['name']; $desig= …

Web Development php
Member Avatar for almostbob
0
359
Member Avatar for OldDeveloper01

I get this message quite often and it has popped up again here, any ideas as to why? Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\.... on line 76 line 76 is this line in bold. [CODE] $productlist = ""; $sql = mysql_query("SELECT * FROM products …

Web Development mysql php
Member Avatar for nandkishor.sharma.372_1
0
862
Member Avatar for yavindu

<?php $system_date = Date(m/d/Y); <input type = "Date" value = <? echo $system_date; ?> ?> I want to set system date to above date box.But this will not work.If I change type to text then it will work as I want.What is the problem here.How can I set system date …

Web Development php
Member Avatar for cmps
0
300
Member Avatar for GlenRogers

I have a page to add products. On this page is a 'categorey' dropdown and a 'subcategory' dropdown. The subcategory dropdown should fill with the options based on the category dropdown selection. The code I have so far does not fill the subcat dropdown, can anyone see a problem? code …

Web Development html-css php sql
Member Avatar for Banderson
0
4K
Member Avatar for Tinku_1

<head> <script type="text/javascript"> function playPause(x) { var myAudio=document.getElementById(x); if (myAudio.paused) myAudio.play(); else myAudio.pause(); } </script> <head> <body> <audio id="Soundx1" src="../audio/2.mp3"></audio> <button style="background-image:url(../images/audio1.jpg); width:45px; height:45px; border:transparent; margin:0px 0px 0px 0px;background-repeat: no-repeat;background-color:white;" onclick="playPause('Soundx1');" ></button> <audio id="Soundx2" src="../audio/2.mp3"></audio> <button style="background-image:url(../images/audio2.jpg);background-color:white; width:45px; height:45px; border:transparent; margin:0px 0px 0px 0px;background-repeat: no-repeat;" onclick="playPause('Soundx2');" ></button> <body> <Article moved …

Web Development audio html-css javascript
Member Avatar for stultuske
0
904
Member Avatar for OsaMasw

Hey there I have a strange problem, this is the first time I see something like this I have a form and this form data posted to php file through ajax $('form.ajax').on('submit',function(){ var that = $(this), url = that.attr('action'), method = that.attr('method'), data = {}; that.find('[name]').each(function(index,value) { var that = …

Web Development first-post javascript
Member Avatar for OsaMasw
0
250
Member Avatar for akshit

hey guys... i know this is a very common problem and has been posted earlier also... but nobody seems to have figured out a solution... i am making a program using PHP/MySQL. I need to update 3 columns in a table. when i use a single UPDATE-SET command(using commas/AND etc …

Web Development mysql php
Member Avatar for TomH.PG
0
8K
Member Avatar for silvercats

This should change the images and image maps then highlight them. But image maps don't seem to be working and higlighting doesn't work either, after clicking on the "go right" link at the bottm. How to make them work? http://www74.zippyshare.com/v/54618428/file.html

Member Avatar for silvercats
0
135
Member Avatar for veniceofnorth

Are there any good tutorials out there? to learn the basics, then the advanced stuff?

Web Development wordpress
Member Avatar for rajesh_9
0
166

The End.