52,566 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
<?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 … | |
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 | |
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 | |
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 | |
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 | |
<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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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), … | |
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 | |
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 … | |
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 … | |
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 | |
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 >< | |
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 … | |
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 | |
![]() | 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>'; … ![]() |
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 | |
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 | |
<!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 … ![]() | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
$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 … ![]() | |
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 … Web Development javascript javascript-jquery json | |
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 | |
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> … | |
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 … | |
<?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 ![]() | |
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 | |
![]() | 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 … |
<?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 | |
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 … | |
<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 | |
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 | |
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 … | |
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 Web Development html-css image javascript javascript-jquery | |
Are there any good tutorials out there? to learn the basics, then the advanced stuff? Web Development wordpress |
The End.