39,402 Topics
![]() | |
Hey guys I am getting a random number using built in function in a given range of number, like between 300 to 10000. but i want to make sure random number should not be repeated, e.g. if rand() function has output 305 once, it should not come again, for this … | |
On Thursday the [URL="http://www.theregister.co.uk/2010/09/17/eu_cookie_law/"]EU law[/URL](which the uk has passed verbatum) regarding cookies comes into effect. From my reading of it, any site that has among other things google analyitics present on it, will need to inform the user that cookies are present on the site, refer them to the sites … | |
Hello guys, I have this school project. There is one aspect that I'm not sure of. So, here's the project description. The project is chatting. Well, you know how chatting works. When I type a message, that message will appear on the other person's computer. Anyway, the part wherein Im … | |
Hi guys! This is a continuation post of my last thread regarding login with session..Now the main task is, the login form is now driven with Fancybox.. What i need to know is how to let the fancy box check/compare the value on mysql table if the username & password … | |
An Ajax function is not working ?? [B]selectBatch1[/B] is not replacing combobox [B]1.[/B] [CODE] <?php session_start(); if($_REQUEST['action']=='') $_REQUEST['action']="sp"; if(empty($_SESSION['uid']) && empty($_SESSION['username'])) { $url="index.php"; header('Location:'.$url); } else { if(isset($_COOKIE["PHPSESSID"])) { $uid=$_SESSION['uid']; $username=$_SESSION['username']; } } //DB Connection $con=mysql_connect('localhost', 'tak27310_admin','admin123'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("tak27310_followup", $con); //Pagination … ![]() | |
Hi, I am working on this curl function.The problem is it is not executing. 1)When we use $URL value directly in browser its working fine & SMS is going to number. 2)When i am trying to call a function having some curl function its not working. Need help. Thanks [CODE]<?php … | |
Hey Guys, I need some assistance if possible. I am using MySQL & PHP, I have an "events" table with a row field called "Users_Attending" and can't seem to figure out the best way to add multiple users to an event rows "Users_Attending" field. I want to store user emails … | |
Hi I want to display the retrieved datas from database by using the search conditions.My search conditions are Age,gender .if user clicks the search button. the data should be display that satisfy both the conditions i need a mysql query and php code to retrieve the data Thank you | |
So I was asked to integrate live webcasting in the next version of this website and I have no Idea. I did little reasearch and bump, I only hit shoutcast. May I ask anyone with Idea on good webcasting software for live internet Audio and video broadcasts to throw out. … | |
Sorry if this is a stupid question, but I'll take the crap for what its worth. Im really asking myself every day the same question: What programming language should I learn? I really need to clear some things up, first of all some questions: 1. Ruby on rails, I hear … | |
How to add control for marking area using points,lines and polygons on google map and how to store that area in mysql db? Becoz i need to give alert message when my vehicle cross that area in my vehicle tracking system. | |
l havinf problems sending individual emails with a loop within joomla The code is sending multiple emails to a single users something like its triggering an infinite loop. Please see code below [code] unction sendRequests() { $db = & JFactory::getDBO(); $sql = "SELECT * FROM `#__quotehunter_hunt_quotes` WHERE `flag` = '0' … | |
[CODE]<td align="center" bgcolor="#FFFFFF"><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $row['Inq_id']; ?>"></td> <td colspan="5" align="left" bgcolor="#FFFFFF"><input name="delete" type="submit" id="delete" value="Delete"></td></tr> <?php foreach( $_GET['checkbox'] as $del_id ){ $sql = "DELETE FROM Inq_cat WHERE Inq_id='$del_id'"; $result = mysql_query($sql); } ?>[/CODE] | |
I am getting this error while working on curl code[CODE][/CODE] Warning: curl_setopt() expects parameter 1 to be resource, string given in C:\xampp\htdocs\ [CODE]<?php //initialize the request variable $request = ""; //this is the username of our TM4B account $param["username"] = "kacs"; //this is the password of our TM4B account $param["password"] … | |
Good day! I just to ask why require_once function display the content of the whole page in the second page? I have two pages index.php and mem_accnt.php. I have session in index.php. Now i need to get the session in index.php and display it in mem_accnt.php. In order to get … | |
I want to limit the length of text shown in php. What is the code in php? But i want to keep the full of text in database. ![]() | |
Hi, When i hit the F5 key on the keyboard after Insert into process, it adds same record into database again. How can solve this problem? Thanks ![]() | |
When the users login , i want to show the status is online in php. What is the code? Thanks! | |
How to call a PHP function on submit button My function is [CODE]function sendSMS($mobile, $msg, $sender, $sendPass, $sendID) { $msg=urlencode($msg); $ch = curl_init(); $url="abusms.com/pushsms.php?username=kas&password=6117&sender=SHRIA&to=$mobile&message=$msg"; //echo $url; $url=urlencode($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1)or die("error1"); curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); $data = curl_exec($ch); echo $data; echo curl_close($ch); … | |
Hi guys i was wondering if you guys could let me know how i can post a form field using jquery and then be declared in a variable after post. The code for the html: [CODE]<table cellpadding="0" cellspacing="0"> <tr> <td></td> <td>Name:</td> <td>Email:</td> </tr> <tr> <td><label for=fri accesskey=f>Friend 1</label></td> <td class="tablePadding"><input … | |
Hi. So I am using Sphider on my website. I was wondering, is there anyway that I can search within a category? Like the search filtering to just one category. Thanks. ![]() | |
hey guys, I need your help for mysql query.let me tell you one thing, it's a dynamic query whatever the user selects in another page, those value will be set in mysql query. The problem is that it's not giveing me any data from that query. So Please give me … ![]() | |
Hey guys! I know I'm bothering you and it's probably a dumb question anyway but i just can't seem to find a good tutorial on this... I'm creating a website and I'd like the admin of the site to be able to post to the site without having to change … ![]() | |
I have this script that I am using that work to upload a file and to make sure the file is either jpg, jpeg, or gif. However, I want to restrict the user with the image width no larger than 150px. Is there an easy way to implement in the … | |
i am reading file and getting content , on localhost it is working and displaying result. but after uploading on server , not displaying or echo relevant content of file? any help appre thnx [CODE]$tcnt = 0; $file = fopen("/home/uploads/date/".$list."_".$Type.".txt", "r") or exit("Unable to open file!"); $file_rl = $file; while(!feof($file)) … | |
![]() | I have been playing with some code but had little success, i have hacked it quite a lot. Before i started removing things from the form, the code worked and it was to add products to a list to be displayed. I am working on a separate page but only … |
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/botomul/public_html/whatsnew.php on line 130 [B]Can Anyone tell me, How could i solve this issue, Please I need help immidiately.[/B] [CODE]<?php error_reporting (E_ALL ^ E_NOTICE); ?> <?php $item=$_GET['id']; include ("header.php"); $mark = mysql_query("select * from product order by product_id … | |
I want to run two ajax functions on click event of checkbox. When I do implement second second ajax functions, first one does not runs. Here is the code [B]Check Box[/B] [CODE] <input type="checkbox" value="<?php if(isset($_POST['inactive_check'])) echo $_POST['inactive_check']; ?>" [B]onclick="disablebatch(); selectinactivecourse(this.checked); allbatches(this.value); "[/B] id="inactive_check" name="inactive_check" <?php if(isset($_POST['inactive_check'])) echo "checked";?>></div><div style=" … ![]() | |
Hi, This is my excel sheet B 1. marks 2. 50.65 my php code is: [CODE]$marks = round($Worksheet->Cells->Item($i,2),0); echo $marks;[/CODE] [B] output is: 50 (wrong output)[/B] I need the output: 51 . How to check this using php coding? Thanks in advance | |
here is my code i have currently it displays some items after i searched for them in the database, and i'm only showing 10 per page. when i go to the next page i get the following error [QUOTE]Notice: Undefined variable: countz in C:\xampp\htdocs\wijnkado\advsearchresult.php on line 363[/QUOTE] can anyone explain … | |
Hi frendz, In my vehicle tracking project, I need to draw the route (polyline) of my vehicle in google map. When the vehicle is moving away from that route, it should give alert msg. So how to specify the route line on google map? | |
Hi! I'm trying to send an email (automaticaly, when user register), but I don't get some different letters correct. Here's example code: [CODE] ... $message="Some message that contains č, ć, đ, ž, š"; //on the server, I can't write letters like č, ć etc.; I must write their code & … | |
hello everyone I have the same problem that they talked about here before in this old thread: [url]http://www.daniweb.com/web-development/php/threads/94707[/url] I tried to find any solution for it but I couldn't this one "UPDATE table SET col_value = col_value + 1" doesn't work , so I hope that any one can tell … | |
I have a table named queries.there is an column named query. My teacher has asked me to make a form in which first page lists all the queries(with checkmarks) from the database.It has a submit button. Second page to delete the entries. Once entry is deleted redirect the second page … | |
Hi, I am working on this function.buts its not sending text message($msg) to user($to) [CODE] function sendSMS($mobile, $msg, $sender, $sendPass, $sendID) { $msg=urlencode($msg); $ch = curl_init(); $url="abksms.com/pushsms.php?username=cs&password=6117&sender=STIA&to=$mobile&message=$msg"; //echo $url; //$url=urlencode($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1)or die("error1"); curl_setopt($ch, CURLOPT_POSTFIELDS, $curlPost); $data = curl_exec($ch); curl_close($ch); … | |
I am trying to get a calendar that will pop out and then back fill a date block on a from. Also I want to make sure that the from can be e-mailed with-out having a DB on the back side. | |
please give me some ideas how to create a online reservation system for our thesis.. hope you'll help me all :) | |
Hi. I don't know where the problem is. The next codes is working on Google Chome but not in IE. I haven't tested yet on Firefox. function.js [CODE]function getSheetCount() { var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var … | |
I would like to be able to create a script that displays whether or not a store is open when the user looks at the page. It would be simple if some didn't close for an hour during the day. I could set it up: MondayOpen 800 MondayClosed 1600 and … | |
I need to show mysql result only for current month. Following is my for each loop [CODE] foreach($projects as &$project){ $project = $module->get_project($db,$project['project_id']); $project_statuses[$project['project_status']][] = $project; } [/CODE] I need add a if statement to print only result from this month. I tried using if variable == date('m'). Did not … | |
i am not able to understand AJAX right from the beginning please help me to have some idea on AJAX | |
[CODE] <?php $first="rahul"; $second="shiva"; for($i=0;$i<strlen($first);$i++) { for($j=0;$j<strlen($second);$j++) { if($first[$i]==$second[$j]) { $first= "".substr($first,0,$i).substr($first,$i+1,strlen($first)); $second= "".substr($second,0,$j).substr($second,$j+1,strlen($second)); $i--; $j--; } } } $len= Strlen($first) + strlen($second); $f="friends"; $duplen=1; for($i=0;(strlen($f)!=1);) { if($len!=$duplen) { if($i==(strlen($f))) { $i=0; } else { $i++; } $duplen++; } else { $f=substr($f,0,$i).substr($f,$i+1,strlen($f)-1); } } ?> [/CODE] i am not finding … ![]() | |
hi friends. i have a problem with execution of the mail() of php its not sending messages to the specified mails. i need help to work it out so that i can complete the topic thanks in advance | |
Hi, I have this vision: Someone clicks on a link that goes to my website. When they get my website, my website picks up the url that they just came from. With my code I have gotten that far. But what I want is for the page's url that they … | |
Hi DW Member, I am Facing one problem my all mails goes to spam i am not able to understand how solved these problem. Kindly suggest me what procedure should be applied. Thanks In Advance | |
i'm gonna be building a website,for my summer training,but then later commercialize to earn a few bucks Main thing is, i want to make it as attractive GUI wise as possible with probably PHP only, and ajax and flash are allowed to get as many marks as possible and it … | |
Hello, I have been trying to set up this script for a charity website (animal sanctuary) in which members can upload a photo of their pets to the members log in area. I have so far managed to get the basic script working but would like to give each image … | |
I am passing value to AJAX function, but always shows undefined.. It works fine two days ago, but not today.. Checkbox <input type="checkbox" onclick="[B]disablebatch()[/B]; selectinactivecourse(this.checked); " id="inactive_check" name="inactive_check" <?php if(isset($_POST['inactive_check'])) echo "checked";?>> Combobox <select id="course" name="course" style="width:145px" onchange="selectBatch1(this.value, document.myform.inactive_batch.value);"> // [U]Where I am passing Checkbox's value[/U] <select id="course" name="course" style="width:145px" … | |
[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select … | |
Hey guys, I just need a bit of help figuring out what the best way to go about the following using PHP/MySQL: It's basically a registration component So I have a button, let's call it "add_to_list" and I need this button to control a couple of things. When a user … |
The End.