38,020 Topics

Member Avatar for
Member Avatar for seahawk182

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 …

Member Avatar for diafol
0
209
Member Avatar for adamworld

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 …

Member Avatar for adamworld
0
257
Member Avatar for mangel.murti

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)) …

Member Avatar for almostbob
0
80
Member Avatar for OldDeveloper01

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 …

Member Avatar for ko ko
0
132
Member Avatar for MavrickIT

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 …

Member Avatar for ko ko
0
192
Member Avatar for abhi10kumar

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=" …

Member Avatar for diafol
0
553
Member Avatar for jacksantho

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

Member Avatar for almostbob
0
202
Member Avatar for thijscream

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 …

Member Avatar for thijscream
0
167
Member Avatar for karthik_ppts

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?

Member Avatar for karthik_ppts
0
522
Member Avatar for ivan3510

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 & …

Member Avatar for ivan3510
0
107
Member Avatar for Green-z

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 …

Member Avatar for Green-z
0
79
Member Avatar for ankita.gupta17

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 …

Member Avatar for ankita.gupta17
0
102
Member Avatar for jacob21

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); …

Member Avatar for jacob21
0
106
Member Avatar for Sinderone

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.

Member Avatar for karthik_ppts
0
62
Member Avatar for diyez treze

please give me some ideas how to create a online reservation system for our thesis.. hope you'll help me all :)

Member Avatar for happytogether
0
106
Member Avatar for michaelzip

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 …

Member Avatar for michaelzip
0
334
Member Avatar for ptara1

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 …

Member Avatar for ptara1
0
374
Member Avatar for wolveirne2005

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 …

Member Avatar for almostbob
0
63
Member Avatar for sharathg.satya

i am not able to understand AJAX right from the beginning please help me to have some idea on AJAX

Member Avatar for sharathg.satya
0
129
Member Avatar for sharathg.satya

[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 …

Member Avatar for diafol
0
114
Member Avatar for sharathg.satya

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

Member Avatar for sharathg.satya
0
79
Member Avatar for noahshoa2

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 …

Member Avatar for twiss
0
207
Member Avatar for lifeplayer

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

Member Avatar for twiss
0
91
Member Avatar for ronnieaka

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 …

Member Avatar for chrishea
0
252
Member Avatar for justted

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 …

Member Avatar for Green-z
0
5K
Member Avatar for abhi10kumar

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" …

Member Avatar for abhi10kumar
0
156
Member Avatar for manu555

[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 …

Member Avatar for peter_budo
0
128
Member Avatar for drewpark88

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 …

Member Avatar for drewpark88
0
200
Member Avatar for weblexie

Hi guys, please help me. $GetList = mysql_query("SELECT ItemID, Available FROM rewarditems",$link1); while($row = mysql_fetch_array($GetList)) { $ItemID = $row['ItemID']; $Available = $row['Available']; echo("<form name='myform' method='post'>"); if ($Available == 'No') { echo("<td width='100' valign='top'><p class='ItemList'><input type='checkbox' name='$ItemID' value='process.php?action=Item Availability&item=&$ItemID&available=Yes' checked></p></td>"); } if ($Available == 'Yes') { echo("<td width='100' valign='top'><p class='ItemList'><input type='checkbox' …

Member Avatar for weblexie
0
121
Member Avatar for reezox

i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET['action'].. Please someone help me.. (T_T) [B]menu.php[/B] [ICODE]<li><a href="index.php?action=home">Home</a></a></li> <li><a href="index.php?action=aboutus">About Us</a></a></li>[/ICODE] [B]index.php[/B] [ICODE]<td width="20%" valign="top"> <?php include ('menu.php'); ?> </td> <td width="85%" valign="top"> <?php switch ($_GET['action']){ case 'aboutus': include 'aboutus.php'; break; case 'home': …

Member Avatar for reezox
0
138

The End.