17,029 Solved Topics
Remove Filter ![]() | |
I want to retrieve records in my database in order to manage details. The below error message displayed when i trying to do that. Can anyone help me out? ( ! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Student registration\manage student details\manageStudentDetailsForm.php on line 250 … Web Development php | |
I have two Ajax function that are on the same div, so the first one isn't executed or better is canceled from the second one. Any hint on how to fix this problem? I wasted two days and wasted my brain too without finding a solution. $(function(){ $('#navigation').find('a').tooltip({effect: 'slide'}); }); … Web Development javascript | |
I have a datepicker field that the maxDate doesn't seem to be working on. jQuery: $(document).ready(function() { $("#intorgDate").change(function() { var myDate = new Date($("#intorgDate").val()); //ENTER VALUE IN mm/dd/yy FORMAT var mymaxDate = new Date(myDate +7); $('#intnewDate').datepicker({ inline: true, dateFormat: "mm/dd/yy", changeFirstDay: false, defaultDate:myDate, minDate: myDate, maxDate: mymaxDate }); }); }); … Web Development javascript javascript-jquery | |
This works: while($row = mysql_fetch_array($results)){ if($isfirst){ $last_id = $row['id']; } $isfirst = 0; $msg_id = $row['id']; $message = nl2br($row['post']); $time = $row['post_time']; $name = $row['firstname']." ".$row['lastname']; if($row['updated']=='1'){ $updated = "- <font style='color:#DB4937;'>CORRECTED</font>"; } else{ $updated=''; } $newPosts .= "<li id='msgblk_$msg_id'><span id='message_$msg_id'>$message</span><p class='time' id='time_$msg_id'>$name - $time $updated</p></li>"; } $newID = $last_id; … Web Development javascript-jquery json php | |
Hey guys, I have this code which gets some reults from a table and displays them: echo "<table><tr>"; while($col = mysql_fetch_array($columns)){ echo "<th>".$col['COLUMN_NAME']."</th>"; } echo "</tr>"; $i=0; while($row = mysql_fetch_array($data)){ echo "<tr>"; foreach($row as $r){ echo "<td>".$r."</td>"; } echo "</tr>"; } echo "</table>"; Getting the column names is fine, but … Web Development php | |
Im using this script to disable and enable input box. When I check the box, the input is enabled, but when I uncheck the box the input is still enabled. Not sure how to fix this. $(document).ready(function(){ $(".ncjhs_student").attr("disabled",true); $(".send_records").attr("disabled",true); $("#send_records").click(function(){ $(".send_records").removeAttr("disabled"); }); $("#ncjhs_student").click(function(){ $(".send_records").removeAttr("disabled"); }); }); Web Development | |
I want to Show Videos inside an Image of theater curtains, image should float ABOVE the videos. Cant work out why it wont work, I have. [CODE]<style type="text/css"> #tablist{ padding: 3px 0; margin:0; font: bold 12px Verdana; } #tablist li{ list-style: none; margin: 0; width:130px; } #tablist li a{ padding: … Web Development image javascript legal | |
Hello I need to setup a virtual host for my zend aplication I managed to link all my zend framework with php and windows I am using wamp 2.2d and I am having a problem with the virtual host NameVirtualHost 127.0.0.1:80 <VirtualHost 127.0.0.1:80> ServerAdmin webmaster@localhost DocumentRoot "c:/wamp/www" ServerName localhost ServerAlias … Web Development php | |
I want to display image from database to my htnl form but it id not displayed. Image copied from database to local c:\file_upload folder but from this folder i want to display in img src in html form .project doesn't give any error but image not displayed on html form. … | |
Hi there, during developing website for my father's company ( [website](http://www.pgum-sill.pl/nowa_strona/index.html) ) I find out that I have problem with personalization of different lists. In this case I wanted to make a floating menu like thise one here: [Floating Menu](https://d2o0t5hpnwv4c1.cloudfront.net/018_Floating_Menu/demo/dhtml_float_menu_final_nettut.html) (this page is from this [Tutorial](http://net.tutsplus.com/tutorials/html-css-techniques/creating-a-floating-html-menu-using-jquery-and-css/)) At the pages above … Web Development html-css javascript javascript-jquery | |
I am not sure if this makes sense, but in an application I've working on, there are two users. One is an admin with an admin role/capabilities and the other is a member with a member role/capabilities. Now, when I log in as the admin, there is no issue. When … | |
Hey guys, I've got a problem with a form that I've made. Basically the form loads a number of textboxes based on how many columns are in a table. I don't have any problems doingthat, but on the next page I'm trying to put the textbox values into a string … Web Development first-post php | |
i have a form and checkloginstudents.php,,but my problem,i can't display the details of a user after login,, this is my form: <form id="form1" name="form1" method="post" action="check_login_students.php"> <label>Name <input name="username" type="text" id="textfield" /> </label> <label>Password <input type="password" name="password" id="textfield2" style="margin-top:5px;" /> </label> <label> <input type="submit" name="button" id="button" value="Submit" /> </label> </form> … ![]() | |
CodeIgniter's highlight_phrase() function, in the Text Helper library, looks like this: /** * Phrase Highlighter * * Highlights a phrase within a text string * * @access public * @param string the text string * @param string the phrase you'd like to highlight * @param string the openging tag to … Web Development php | |
I'm getting user's profile picture along with their name from database and populating them in a div inside an anchor tag. The <a> tag is used so that we can click on any result and it takes to that user's profile page. I tried many codes to traverse the search … Web Development javascript | |
I had my wordpress site up and running just fine but when I visited it recently I got the following error: > *Your PHP installation appears to be missing the MySQL extension which is required by WordPress.* I contacted the person who set up my database and was told > … | |
Hi, I'm receiving an error message but cannot solve the problem. Please give us a hand. Line 49 is -> `$record_set = $this->db_conn->query($sql);` Thanks in advance `Fatal error: Call to a member function query() on a non-object in C:\wamp\www\oop_singleton_pattern\class.db.php on line 49` <?php class DatabaseClass { CONST HOST = 'localhost'; … Web Development php | |
Hi, wondering can I get some help here please as this is incredibly frustrating. I have a database that contains files and I want to be able to search those files by putting in a ID number. In my databse my doc_id is the primary key, and I want the … | |
I am beginner, so please help me with these problem i am suffering I). I have a coding in ASP.net i want to display list of information from my database (MS Sql 2008 R2) to a table. My database contain: Name Email Address Phone I want this to be displayed … Web Development asp.net database-design | |
I used high chart in java-script .In high chart my graph is displayed very well but when I click on "show graph" button it doesn't show directly graph first I want to click on inspect element in firebug then after that graph will be displayed . What is the problem … Web Development javascript | |
Hey guys, So, I have a connections php file which contains info such as the host, username, password and database to be accessed. I'm wondering if there is anyway to make the database value to be changed later on in the website. When first logging into the website they choose … | |
Hi, i'm just trying to make a simple 'contact us' form which emails me with the contents of each form field, here's what i have: HTML -------- <form action="contact.php" method="post" name="contact"> *Full Name<br /> <input name="name" type="text" /><br /><br /> *Email:<br /> <input name="email" type="email" /><br /><br /> *Message:<br /> … | |
Hi, When a user registers on my site there status is 0 (not active) ... meaning they not activated there account via email. When they register i also store the DATETIME they registered, i store it in MySQL using MySQL DATETIME and using `NOW()` in my INSERT query on registration. … | |
Hello peeps! I've got an issue which I am trying to sort out. I am trying to build a website where ppl can search for car's sell and buy. I got stack where I had to make the search option on the website, so I started looking on google where … | |
hello everyone Can someone explain to me about this two syntax of php the => and ->, i dont have any idea what this is. I already googled it but didnt find anythig. Actually I tried to look the source code of joomla and found this two syntax. I will … Web Development php | |
hi, Am a new in php,i have php page with mcq questions, when the user starts with the Q.No 1 the timer should start ,and I want to turn off the page after the completion of the timer. Can any one please help me out to do this . Thank … Web Development php | |
Since md5 will be deprecated at some point (if it isn't already), and will soon pass away, I thought I should think about of another way of securing passwords. I've been thinking about phpass for a while and decided to jump in feet first. I am pretty sure that I … | |
I'm trying to create a jUnit test for my EJB's and if my app just contains a few beans everything's all good but as soon as I incorporate JPA and entity-classes my jUnit test blows up. My test fails at ejbContainer = javax.ejb.embeddable.EJBContainer.createEJBContainer(); and the stack trace says the following: … Web Development api java java-jsp java-netbeans | |
I'm stumped on a query filter I'm trying to put together. Here's what I need it to do: 1. Run a query that populates a table with order information to be gathered for regular invoices. 2. A user can filter date ranges, location, client and payment status. The options in … Web Development coldfusion postgresql | |
Hello, Can someoneone tell me when you `prepare()` a statement (in my case an update statement) and then `execute()` it, i then check using `rowCount()` after the update query (see code below) if `rowCount() > 0` if it is then a match was found and update took place, but i … | |
Hi all, first of all I want to tell you that I am studying Ajax and the following code could have errors or something else. I am trying to recreate the following HTML form with Ajax: <div class="table_test"> <form name="f1" target="uploader" action="upload.php" method="POST" enctype="multipart/form-data" > <ul> <li class="title">Image Name</li> <li … Web Development html-css javascript | |
<?php $tname=$_POST['tname']; $uname=$_SESSION['user']; include('db_connect.php'); $sql="SELECT marks FROM marks WHERE uname='$uname' && tname='$tname'"; $data=mysql_query($sql); $marks=$data['marks']; echo $marks; echo $uname; echo $tname; ?> When I am trying to retrieve data marks is not retrived its displaying as "Marks" Please help Web Development php | |
Hi People. I'm a newbie to javascript. I have a small issue. I have a table where I have 5 columns.. I mean 5 <td> In each <td> there are 7 links. When I click a link, a container is popped up... Its hidden at first, Now inside the container … Web Development html-css javascript | |
I have a js confirmation function: function r_u_sure(message, url){ if(confirm(message)) location.href = url; } if I were calling this function with a regular href, I would use the following: <a HREF="javascript:r_u_sure('Are Sure You want to Delete or Modify Car Information?!','www.somewhere.com)"><a/> however my html link which begins the deletion process of … Web Development javascript | |
i am trying to print " in echo statement. i can't get any method other than <?php echo " " "; ?> which is definitely wrong. help me to find a way out of it. any help is appreciated. Web Development php | |
Hello, i have a problem with displaying a picture. Picture is stored in database as mediumblob. Storing pictures in database is going ok, since i can see them in phpmyadmin. Problem is, i can't see them in browser. THe code im using for this is here: login.php --lots of code … | |
I am having the following issues setting up php probid on my virtual dedicated server. I have virtual dedictaed server at godaddy.com. It has paralles plesk 10.4.4 and Cent OS 5. Iam having the following isses 1. I cannot get the database to work correctly. I am getting access denied … Web Development php | |
I bought a copy of php probid. Everything on it looks ok. I have looked at other sites using it and obviously they got it to work, I have installed it on my local host for testing. I am using xampp 1.7.1 becuase the script require gd library and zend … Web Development php | |
Hi I am have to enter marks of 50 students through a single page <table border="1"> <tr><td height="50">UserID </td><td>Name</td><td>Marks </td></tr> <?php include('db_connect.php'); $bname=$_POST['bname']; $res = mysql_query("SELECT * FROM user WHERE batch='$bname'"); while($data = mysql_fetch_array($res)) { $uname=$data['uname']; $uid=$data['uid']; echo "<tr><td>$uid </td><td>$uname</td> <td> <input type='text' size=3 name='$uname'></td></tr>"; } echo "<tr><td colspan='2'><input type='hidden' … Web Development php ![]() | |
Hey guys, So I'm trying to make a website in php. I'm just wondering, when I click on a link is there any way for the text of the link to be put into a variable. Basically the user will select the name of a database(which is a hyperlink to … | |
I'm making my own website and from the website you can download some of my c++ games. on the website i have this code that writes in to a .txt file some info from the visiter like: ip, os , browser and what site did he/she visit. so ok i … Web Development php | |
I am not able to set php session for starting the session I am using below code session_start(); $_SESSION['username'] = $username; For checking the session I m using <?php if (!isset($_SESSION['username'])) { header('Location: index.html'); } ?> But the session is not being set as I am not able to grep … | |
I am running into an error on a javascript problem I have it display if the math problem is wrong, and an alert box that pops up, but when you hit OKAY on the alert box it still submits the form. I am wondering if there is an easy fix … Web Development html-css javascript open-source web-design | |
I've created a **login script** using **PHP** that connects to a `users` table from a **MySQL** DB. It's very simple and currently is not encrypted (it will be before I take the site live...I'd love some suggestions on current password security features too). **My issue is that the username-check is … Web Development php | |
In below code using i try to upload multiple files to remote URL. but only 1 file data only i am receiving. please help any one to resolve issue. Remotepage.php i am not getting sign,cheque file details [CODE]<?php function do_post_request($url, $postdata, $files = null) { $data = ""; $boundary = … Web Development file-system php ![]() | |
<script type="text/javascript"> function dynaBlock(){ var division=document.getElementById("dynamic_block"); var go_btn=document.getElementById("GO"); if(division.style.display=="none"){ division.style.display="block"; return true; } } </script> function not defined says firebug. onclick="return dynaBlock()" in button. block is in DIV tag. what to do? Web Development javascript | |
Hi all I want to display image uploaded from a form in a div size of "width=235px and height=61px" with image good quality also(i mean not shrinked or stretched) **using php**. I'm uploading a image of size "width=452px and height=507px". I have tried the codes i found on internet but … | |
Need help with code i am trying to acheive upload of videos but when they are uploaded the file names need to be changed to have hyphens in replace of white space and still keep the exstensions. its proving difficult because once uploaded ffmpeg needs to read the output as … Web Development file-system php regex | |
Is it possible for me to use this code but change the date to a date from my database? // NOTE: the month entered must be one less than current month. ie; 0=January, 11=December // NOTE: the hour is in 24 hour format. 0=12am, 15=3pm etc // format: dateFuture1 = … Web Development javascript php |
The End.