52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yash777

Hello , I would like to count the no of hits to my website. How do i do it? whether I need to code it in Global.asax file in application on start ?????? Reply

Web Development asp.net
Member Avatar for mirzamujib
0
173
Member Avatar for fumnimda

hi there i need some help for integrating php-openid to login process of my site. has somebody work around it??

Web Development php
Member Avatar for loginradius1
0
114
Member Avatar for extjac

hi there.....I have been working with PHP for a few years now, but i am not a professional developer. I would like to know if you have some tips about the PHP best practice. For instance, i have been working on mysql but i know we have Mysqli..which one is …

Web Development php
Member Avatar for TySkby
0
167
Member Avatar for ebanbury

Hi I'm having problems with putting an image - outofstock.gif into a table cell but only if prod_status == 'Sold' An empty image place holder shows - but without the actual image in it. Ideally I also wanted this whole table column to be a background to another table cell …

Web Development image php
Member Avatar for simplypixie
0
660
Member Avatar for bflack

Hello guys, [CODE] <?php include 'dbconnect.php'; echo 'under profile.php'; $username=$_SESSION['username']; //I think i have to put a query here like "SELECT username FROM accntinfos WHERE username='$username'". But confused since if I do there would be two queries $query="SELECT userprofile.profpic FROM userprofile INNER JOIN accntinfos ON accntinfos.accntnum=userprofile.accntnum"; $result=mysql_query($query, $DBconnect); $numrows=mysql_num_rows($result); ?> …

Web Development mysql php sql
Member Avatar for bflack
0
149
Member Avatar for chuck_dezmond

Hi everyone, im just new in php and mysql. I have a form where i add list of member details then submit it to my db and redirect it back to the same page and echo the the list of data at the bottom. but the problem is after redirect …

Web Development mysql php
Member Avatar for chuck_dezmond
0
112
Member Avatar for richaell

Keep getting these errors: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 71 Notice: Use of undefined constant total2 - assumed 'total2' in C:\xampp\htdocs\Projeto\all.php on line 72 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\all.php on line 124 Notice: Undefined …

Web Development html-css php
Member Avatar for mikulucky
0
627
Member Avatar for Aksel

Hi :) I'm haveing a little trouble working with a string which I need to insert a substring on certain positions. Basically I'm trying to create a pagination for a wordpress site by inserting <!--nextpage--> on certain point in a content string. The content string is of various size from …

Web Development php wordpress
Member Avatar for mikulucky
0
809
Member Avatar for HelenLF

I have a page where there is a div which is set to 100% width and height and which has a black background. This div covers the main content and after a delay fades, revealing the page content. The problem is that I also have a script which adds stars …

Web Development javascript
Member Avatar for Airshow
0
102
Member Avatar for sajithfx

[B]Pagination[/B] It shows following messages Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 55 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 154 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Paging\111\test\index.php on line 167 …

Web Development html-css php
Member Avatar for diafol
0
109
Member Avatar for Tenaciousmug

[CODE]$(document).ready(function() { $(".alert").click(function() { { var id = $(this).attr("id"); alert(id); $(id).dialog(); return false; } }); });[/CODE] Ok it's alerting the id AFTER it alerts an undefined.. so it alerts "undefined" and then "5" or whatever the number may be. What am I doing wrong?

Web Development javascript
Member Avatar for fobos
0
264
Member Avatar for richaell

keep getting this error: Undefined index: id in C:\xampp\htdocs\Projeto\edit.php on line 5 But i checked phpmyadmin and i have a index for id, it's in the table. Why do I get this? Never happened before. [CODE] <?php require 'conf/connection.php'; $id = $_GET['id']; $choose_user = mysql_query("SELECT * FROM users WHERE id …

Web Development php
Member Avatar for richaell
0
654
Member Avatar for richaell

I keeep getting this error: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Projeto\search.php on line 7 How do I fix? [CODE] if (isset($_POST['action']) == 'Search') { $search = $_POST['search']; require 'conf/connection.php'; $selection = mysql_query("SELECT * FROM users WHERE name '%$search%'"); $number = mysql_num_rows(mysql_query("SELECT * FROM users WHERE …

Web Development mysql php
Member Avatar for richaell
0
113
Member Avatar for Xufyan

OK, i wanted my page to post a random post in every 24 hours , so i found that code over the internet, I was trying to understand the code and added the comments to those lines which i understood, however i am not able to understand the complete program, …

Web Development first-post php wordpress
Member Avatar for Xufyan
0
956
Member Avatar for jimdj

Hi. I am createing a site that uses categories to display certain things to visiters depending on what they click and the choices of what they can click on comes from a database. so how do you do the php to allow the site to create the links to a …

Web Development php
Member Avatar for pritaeas
0
156
Member Avatar for johndohmen1963

Hoi hope someone can help. my question is preg_replace dosn't work 100% the code i have $description = preg_replace('/[^a-zA-Z0-9 .,]/', '', ($_POST['albumbeschrijv'])); it works with all strange sings but only not when i use sign - between a string like in test-test. like the code it must remove everyting exept …

Web Development php
Member Avatar for johndohmen1963
0
181
Member Avatar for klemme

Hi all, I have a question regarding when I should use a 302 Found or a 307 Temporary Redirect. As far as I can read, they both send out the message: Moved temporarily, or not? Or have I come across old articles..'Cause I thought a 302 was a Moved temporarily, …

Web Development http-protocol php
Member Avatar for diafol
0
412
Member Avatar for Shillz

M trying to connect to a site using the following code. But not able to. Please help [CODE] this.req = (HttpWebRequest)WebRequest.Create("http://wwwd.way2sms.com/auth.cl"); this.req.CookieContainer = new CookieContainer(); this.req.AllowAutoRedirect = false; this.req.Method = "POST"; this.req.ContentType = "application/x-www-form-urlencoded"; this.strNewValue = "username=" + ckuser + "&password=" + ckpass; this.req.ContentLength = this.strNewValue.Length; StreamWriter writer = new …

Web Development asp.net regex
Member Avatar for Pri Bhowmik
0
421
Member Avatar for JaredN

Hi everyone, New to PHP and making slight changes to the text on the index.php page today I had this error come up when updating the file. I have looked at previous posts about missing ";" but I can't see where one needs to go. It came up with the …

Web Development php
Member Avatar for pritaeas
0
338
Member Avatar for sidra 100

hey m making a projec in one of its page i want to get the data from the table and display it on screen in the form of table. allthough the data appears but how can i display the headings. [CODE] $num=mysql_num_rows($result); print "<table width=600 border=1>\n"; while ($get_info = mysql_fetch_row($result)) …

Web Development mysql php
Member Avatar for pritaeas
0
92
Member Avatar for ajcoder

I have an assignment and need to fix this code. I have gotten to the point of not having any errors on my page for html, but need help with the javascript portion. I also want to understand the changes and why. I only need to make changes to the …

Web Development javascript
Member Avatar for ajcoder
0
202
Member Avatar for borgyborg

Hi All, I want to auto-calculate all the array textboxes I created. My code is: [CODE] <?php echo "<table>"; $sql="SELECT default_salary FROM records WHERE is_active = 'Yes'"; while ($row=mysql_fetch_array($result)) { $default_salary = $row["default_salary"]; $num_rows = mysql_num_rows($result); echo "<tr>"; echo "<td>"; echo $count."</td>"; echo "<td width=\"\" align=\"left\" border=\"0\">"; echo "<input type=\"text\" …

Web Development mathematics php
Member Avatar for diafol
0
874
Member Avatar for mucokirca

i want my ajax and php codes, with 2 option value, show up two different texts or form packs. i have given html and php codes. i hope sombedy help me. im quiet new with this. thanks :) renkler.html : <head> <script type="text/javascript"> var istek = false; if (window.XMLHttpRequest) { …

Web Development javascript javascript-jquery php
Member Avatar for McLaren
0
320
Member Avatar for divsok

i'm novice to this and can anybody say how to change CSS properties with javascript functions? how can i change font-sizes/font styles using a combobox represented in a textarea? [img]http://i.imgur.com/KH0om.jpg[/img] if you can show me how events working..thank you

Web Development html-css javascript
Member Avatar for Troy III
0
345
Member Avatar for bflack

Hey guys, Can you all help and teach me how to retrieve image file which is stored on database?.. I had an image stored on database in the column i called 'profpic'. By the way, I am needing this information for profile picture on a users page. I've started testing …

Web Development image mysql php
Member Avatar for bflack
0
209
Member Avatar for qwertpink

Hi all, im sorry, im just a beginner, I had never come across to such circumstances. Submit a form, with while loop, how am i going to retreive every single value submitted from the form? [ICODE] <form name="pay" action="pay.php" method="post"> <?php while ($row = mysqli_fetch_assoc($result)) { echo ' <th width=70% …

Web Development php
Member Avatar for qwertpink
0
4K
Member Avatar for prasanna123

<html> <head script type="javascript/text"> <script> function validate() { var html=document.getElementById(<?php '$count1'?>); <?php session_start(); $_SESSION['fuserid']=?>="html" } </script> </head> </html> <?php session_start(); $database="myfriend"; $userid=$_SESSION['user']; mysql_connect("127.0.0.1","root",""); $db_found=mysql_select_db($database); $sql="select fuserid from friends where userid='$userid';"; $result=mysql_query($sql); $count1=0; while($db_field=mysql_fetch_assoc($result)) { ?> <body> <a href="displayprofile.php" id=<?php =$count1; ?> onclick="validate(this)"> <?php print $db_field['fuserid']."<br>"; ?> </a> </body> <?php $count1=$count1+1; …

Web Development php
Member Avatar for prasanna123
0
458
Member Avatar for khr2003

hello I have a section in my website, where people can upload photos. the gallery is divied into different categories. I modified the original script so people can add a photo from anywhere in the website (before they had to go a certain category and then upload a photo to …

Web Development php
Member Avatar for swatipatil05
0
227
Member Avatar for phpuser

Hello , Friends I am doing googlemap integration . Though i completed it as per my project requirements but i have very small area for displaying map. And as we all know html window on marker have some fixed size. but i found in my reference site that they edited …

Web Development google html-css php
Member Avatar for web-designindia
0
236
Member Avatar for Azmah

I'm looking for a decent directory scripts. I've looked at clones, free and commercial. The commercials look promising but am not sure if they really are worthit. I really need to be able to edit the theme/template and wouldn't mind if there were a plethora of themes available. Are there …

Web Development file-system shell-scripting
Member Avatar for pritaeas
0
195
Member Avatar for aki2all

When I am sending via Gmail using phpmailer, the email is taking a long time to send and also sometimes it is not going. I am using XAMPP as localhost. Here is my Code: if($_POST['submit']{ /*MAIL PART BEGINS*/ //error_reporting(E_ALL); error_reporting(E_STRICT); date_default_timezone_set('America/Toronto'); require_once('class.phpmailer.php'); //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php …

Web Development email php
Member Avatar for pritaeas
0
2K
Member Avatar for ronny22

Hi guys im making a cms site and very close to finishing it but i get this one warning which is [B]Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in C:\wamp\www\cms\_class\cms_class.php on line 117[/B] i dont know how to solve it! It happens when I try to update …

Web Development cms html-css php
Member Avatar for pritaeas
0
171
Member Avatar for kgizo

Hi I need to represent data from my mysql table into a graphical format. I summed all the columns I needed then I need to represent the addition of each individual column onto a graph, but I want to print the correct data onto my screen first then represent the …

Web Development mysql php
Member Avatar for kgizo
0
158
Member Avatar for gaurang24

hi i use below code for video convert in flv. code work perfectly but when the out put comes file become 0kb. $srcFile = "upload_v/veer.avi"; $destFile = "upload_v/veer.flv"; $ffmpegPath = "/usr/bin/ffmpeg"; $flvtool2Path = "/usr/bin/flvtool2"; $ffmpegObj = new ffmpeg_movie($srcFile); $srcWidth = makeMultipleTwo($ffmpegObj->getFrameWidth()); $srcHeight = makeMultipleTwo($ffmpegObj->getFrameHeight()); $srcFPS = $ffmpegObj->getFrameRate(); $srcAB = intval($ffmpegObj->getAudioBitRate()/1000); …

Web Development audio php video
Member Avatar for veedeoo
0
121
Member Avatar for tgr0ss83

I have a problem w/ the Below code, that when I view the table, it repeats the Headers for each row. : For instance: [CODE] comed_zone chicagogen_hub chicago_hub nillinois_hub 10 30.8 30.4 30.8 30.6 comed_zone chicagogen_hub chicago_hub nillinois_hub 11 29.0 28.2 29.2 28.8 comed_zone chicagogen_hub chicago_hub nillinois_hub 12 28.2 27.5 …

Web Development html-css php sql
Member Avatar for veedeoo
0
196
Member Avatar for anand01

Hi all , i configured my jdbc drivers and url in Xml but it shows null value my servlet code [CODE]public void init(ServletConfig config) throws ServletException { // TODO Auto-generated method stub super.init(config); System.out.println(config.getInitParameter("dbUrl")); System.out.println(config.getInitParameter("dbUserName")); System.out.println(config.getInitParameter("jdbcDriver"));} [/CODE] [CODE] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>CMS</display-name> …

Web Development cms java-jsp xml
Member Avatar for anand01
0
132
Member Avatar for borgyborg

I am having a looped form in my site, but i have a problem on saving it. I don't know where is my mistake. Please someone help me. i have 5 records. in my code it saves only one record. and its not giving the correct value. it shows "Array" …

Web Development php
Member Avatar for borgyborg
0
129
Member Avatar for crestaldin

Hello all, I'm a PHP newbie and have my apache Server and PHP in place. I have been able to run simple programs that work well. However, since then when I do "http ://localhost/filename.php" I either get 2 messages. 1. An error message if there's an error in my code …

Web Development apache display php
Member Avatar for smash95608
0
203
Member Avatar for ilmkidunya

Hello friends is there any keylogger scripts thats I putt into my home page when user visit it it make a log file of users key storks and send it in the mail or upload in the script form

Web Development java php
Member Avatar for jimdj
0
801
Member Avatar for dottomm

Hello everybody and thank you in advance for any suggestions and help I hope to receive. I have Mysql experience but now I am working on my first M$sql database project, and I am getting frustrated. I am using php and would like to export a query. It is quite …

Web Development mssql php
Member Avatar for sakarora
0
2K
Member Avatar for Marty1963

I'm still very new to this but is there a way to control content (text and/or image) using PHP and a specific date? For example I need to add "New Store Hours" to a listing of locations for a client website, however I don't want to have to go back …

Web Development php
Member Avatar for Marty1963
0
189
Member Avatar for issaru07

i have a page which list all the products and there are checkbox to do muiltiple deletion. but there is an error on line 62 for the $delete [CODE]<html> <head> <title>delete</title> </head> <body> <? $objConnect = mysql_connect("localhost","root","booo33384") or die(mysql_error()); $objDB = mysql_select_db("db-test"); //$strSQL = "SELECT * FROM products3"; $strSQL = …

Web Development php
Member Avatar for issaru07
0
351
Member Avatar for sparkles_links

<?php $res = mysql_query("SELECT * FROM users WHERE username = '$user' LIMIT 1"); if(mysql_num_rows($res)>0){ $d = mysql_fetch_array($res)){ if($pass == $d['password']){ session_regenerate_id(); //security for changing permissions $_SESSION['user_id'] = $d['user_id']; $_SESSION['usertype_id'] = $d['usertype_id']; switch($d['usertype_id']){ case 1: $loc = "nurse.php"; break; case 2: $loc = "paramedic.php"; break; case 3: $loc = "doctor.php"; break; …

Web Development php
Member Avatar for pritaeas
0
121
Member Avatar for edz_berlin

i'm newbie in php. need more help to finish my project..i have 3 page: 1st page : status button(i'm using image button for each status and have 5 status button) code for image button: [CODE] <a href="negeri-semak.php" ><INPUT TYPE="image" value="" src="pictures/icon/image005.gif" width="230" height="37" border="0" id="RAKAN MUDA" onclick="javascript:this.form.submit()" name="BTN" alt="RAKAN MUDA"></a> …

Web Development gui image php
Member Avatar for pzuurveen
0
595
Member Avatar for BenzZz

Error messages should be displayed within the html if certain fields on my member register form are left empty, if they are invalid types or if the username entered already exists. I've tried adding a record with an already existing username and it does direct to the member registration failed …

Web Development html-css php session
Member Avatar for BenzZz
0
272
Member Avatar for chandbasha

Hi, How to know the cron is working or not. i am getting mail from cron but how to know whether the functionality is working or not. i am getting mail like this [B]Cron Daemon [email]root@ip-xyz.ap-southeast-1.compute.intern[/email]al to me show details 4:59 AM (11 hours ago) --2012-01-10 04:59:01-- [url]http://www.xyz.com/reports/status.php?provider=6[/url] Resolving [url]www.xyz.com[/url]... …

Web Development php
Member Avatar for pritaeas
0
162
Member Avatar for lifeworks

Hi Ive been fiddling with trying to emulate classes in javascript - but currently getting an undefined error hen I click one of the vote buttons... Ive got two vote buttons, 'vote_positive' and 'vote_negative' and have cretaed two vote button objects... on construction they firstly assign a value to the …

Web Development javascript
Member Avatar for stultuske
0
173
Member Avatar for Pravinrasal

I have created one application in JavaScript. And i have created logic gates(e.g AND,OR,NOT) and I displayed these gates on on particular grid background but when I drag and drop these Gates on grid , the borders of gates and lines are not matched to the background grid. So how …

Web Development javascript javascript-jquery
Member Avatar for Airshow
0
246
Member Avatar for Virangya

hi, how can i select only unique string out of a series of iterating strings? for example, i have this folder which contains number of files with quite long names. i have used readdir() to find all the files. assume that the name of the file has an format. eg: …

Web Development php programming-construct
Member Avatar for Virangya
0
191
Member Avatar for freakunleash

Hi All, Need your help. I'm trying to create a small movie DB for my personal use. I have a input form from where I'm collecting all the data as an array and processing through PHP to MYSQL. I have three tables where I have tried to create many-to-many relation …

Web Development data-structure php
Member Avatar for diafol
0
207

The End.