52,566 Archived Topics
Remove Filter ![]() | |
> hey guys, how to get all word in first index in array below and next index get last word in array 2 D??,.. example: $arr = array( array( '7'=>'repsol kawasaki honda ktm', '8'=>'kawasaki honda ktm bmw', '9'=>'honda ktm bmw ducati', '10'=>'ktm bmw ducati yamaha' ) , array( '23'=>'lamborghi ferarri … Web Development php | |
I want to echo "the select statent to output the total working hours" <?php error_reporting(0); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ms", $con); $id = $_REQUEST['id']; $result = mysql_query("SELECT id , SEC_TO_TIME(SUM(TIME_TO_SEC(out_time) -TIME_TO_SEC(in_time))) AS working_hours FROM timetable GROUP BY id;"); echo "<center><table cellspacing='6'> … Web Development php ![]() | |
Hello everyone. I am new here but have lurked quite a lot. I have multiple forms that contain drop downs that need to be summed together. My current JS passes through a couple check box values then calculates. All of this works swimmingly. The place I have been getting stuck … Web Development javascript | |
Say I have two drop down boxes, and I have two columns then after I select the two columns that pulls from the stock tables to give me a total.. Whats the best way or does anyone have an example? Ex Boxes - Yellow box - Red box = All … Web Development php | |
> hey guys, how to bold or strong value (string) array 2 D below?? Array ( [0] => Array ( [0] => <b>abcd<b/> [1] => <b>efgh<b/> ) [1] => Array ( [18] => <b>ijkl<b/> [19] => <b>mnop<b/> ) [2] => Array ( [28] => <b>qrst<b/> [29] => <b>uvwx<b/> ) ) Web Development php ![]() | |
Hi guys. I picked up a search script on the net but can't get it to paginate at all. Please have a look and help me out. <?php // Get the search variable from URL $var = @$_GET['q'] ; $trimmed = trim($var); //trim whitespace from the stored variable // rows … Web Development php ![]() | |
Ok so my problem is everytime I click my button it re-populates my dropdownlist of my entries, but it also keeps the entries from my previous page_load therefore i get double entries within my dropdownlist. How do I solve this problem as I cannot seem to find where my problem … | |
Evening all, I'm trying to create a javascript loop to output a range of radio buttons numbered 1 to 10. This is part of a form, which will display the input on the next page. So I have two problems. For testing only, I'd like to alert the value of … Web Development javascript | |
Dear All, With help from you all, I have a successful instant search on the current draft of our website. I'd love help with three minor issues of following convention: 1) Clicking on your link of choice brings about its appearance in another window -- that makes going back difficult … Web Development html-css javascript seo | |
![]() | Hi, I'm creating a table with X amount of rows (Importing from a Database table). I need to be able to click on a row in the table (any specified row), and onClick, the row number that was clicked on must be printed. Can anyone give me some advice on … Web Development javascript |
I'm trying to do, an order and some orderline. Imagine that the user come and select several item from the shop then when he click on the checkout, the reference number in the order is send back to the several item in the orderline table. How would i insert that … | |
Dear all, how i can fetch image path in input field. when i update form the image path has lost their path so it is not updated so please do some help. thanks Web Development file-system image php ![]() | |
[COLOR=SeaGreen][COLOR=Black]hi all, in javascript normaly page redirection can be done as follow with a parameter. [/COLOR] window.location = "add-new-cos.jsp?id="+id; [COLOR=Black]but this id value is send to the next page with in the GET method. but i want to send it with the POST method. is there any way to do … Web Development first-post javascript | |
I'm trying to set up a mail server using gmail. So far after modifying code in C:\wamp\bin\apache\apache2.2.22\bin\php.ini. It hangs the page and just loads the browser. I have read that it has to be used with PHPmailer but I don't know how to. Please help me how to set up … Web Development client-server email php ![]() | |
Hi all, I am having this problem, which I cant seem to find out why is happening. I have an onchange function on one select list, which returns another select list just under, with values to choose from. But when the form is submitted, PHP gives me an error: Undefined … Web Development php ![]() | |
Been trying to loop through worksheets in an excel document. And remove "," in columns. Then save result in same excel document. <?php include'../Classes/PHPExcel.php'; include'../Classes/PHPExcel/IOFactory.php'; $objReader = PHPExcel_IOFactory::createReader('Excel2007'); $objReader->setReadDataOnly(false); //$xlsxfiles=$_SESSION['file']; //echo $xlsxfiles; $objPHPExcel = $objReader->load('../upload/Test_0.xlsx'); $num=$objPHPExcel->getSheetCount() ; $sheetnames=$objPHPExcel->getSheetNames() ; $objWorksheet = $objPHPExcel->getActiveSheet(); $highestRow = $objWorksheet->getHighestRow(); $sheetnum=$num-1; for($sl=0;$sl<$sheetnum;$sl++) { for($cl=0;$cl<$highestRow;$cl++){ $clean= … Web Development php ![]() | |
![]() | Hi I'm having an issue echo out the `euro currency` sign with the price converted base on the `$exchange_rate = 0.7746;` Here is my code: <?php $currency = true; $format = '€ %2f'; $exchange_rate = 0.7746; function currency_valve($data) { $price = $data[1]; $cpercent = $data[2]; $cvalve = isset ($_GLOBALS['currency']) && … ![]() |
Can anyone help, please? (The excellent solution on here for using an external SMS service does not "fit" ) My objective is to send an SMS "receipt" from an Agent's mobile (viewing our web page) instantly to the "payer" to acknowledge receipt of a (small) cash payment .... using the … Web Development android android-development php | |
hi, I am generating records through php/sql, as u can see the code displays 5 records, what Im trying to do is program so that when the next button is pressed the next 5 records will show?? any help much appreciated thank you, the code - function show(qstring,qtype){ $("#vsdiv").show(); var … Web Development javascript json | |
Hello! I'm attempting to create a application that randomly generates strings and tags it on the end of http://youtube.com/watch?v=.... but the links it generates links to a non existant video. I noticed there are more capital letters in their URL's but that's the only difference I can see. Here is … | |
I'm attempting to wrap an auto-generated link around a thumbnail displayed from a Mysql database. Can someone help me with the syntax? `echo "<a href= 'http://www.website/link.php?field=".urlencode(img src='".$showimage"' height='10px' width='50px' />) . "'>$showimage</a>";` Thanks! | |
![]() | Hey i am passing a string to an array and using the str_split. ` $string = "Green"; $array = str_split($string,1); print_r($array); ?> ` what i want to do is split the string to individual characters but not store the character , i would like to convert each individual character to … Web Development php ![]() |
So I'm working with popovers using Twitter Bootstrap. I want to change the popover's content dynamically later on in my program, so after setting the popover: $("#test").popover(selector:$("#test")); $("#test").html("test"); I try setting the selector of the popover so I can manipulate it later. This doesn't work, however, so how do I … Web Development css-bootstrap javascript javascript-jquery | |
Hello, This is my website: [website](http://www.rustoleum-indonesia.com/Rustoleum1-3.php) I would like to include [google map](http://gmap.nurtext.de/examples.html) I have been trying to replace the static map with another type of map just like map #3 Well, the one that I have been working on is still offline. This is the only code that I … Web Development google html-css javascript javascript-jquery | |
Hi all. I'm wondering if anyone can point me to some javasript that is easy to set up for tabbed tables? Web Development javascript | |
I'm working on a dynamic form where based on a visitors selection of radio buttons certain <div> text and additional fields are shown or hidden. I would like to make some of these additional fields required but only if they are shown. (I tried making them required even when they … Web Development javascript javascript-jquery | |
Ok so I have created a page where the user enters their details then they click a button which produces their results in a ListBox. However what I want to do is when the user clicks the button it produces the results on another page in a Listbox. I have … | |
Here is a very tiny program(3 files) has embedded with Smarty template engine. Anyone knows how to remove Smarty completely? I konw the procedure to remove Smarty but failed to rewrite the code into pure PHP. Complete source files as in attachment. **CLICK HERE!!**~~~ http://www6.mimima.com/link.php?ref=FGHkNoDtmB *****************index.php <?php require("comm/Smarty.class.php"); require_once("get_data.php"); require_once("books.php"); … Web Development microsoft-access open-source php web-design windows-server | |
Hi, I have created a news block which has autoscrolling text using marquee tag. I have also created an event onmouseover scrolling text should stop. Now I want it like when text stops scrolling a scrollbar should appear n we could read the previous or next news by scrolling text … Web Development javascript | |
I need help and thank you in advance for any advice. I'm new to Php and Mysql. I've put three drop down menus in one cell of a table and I want to display results of a simple query (4 fields per record) in another cell of the table. Only … | |
![]() | Hi everyone... Well i do have a mysql query in one php page(php_1) & I want to submit the variables to the query in different php page(php_2) via form action but how am I supposed to do it without redirecting to php_1.. All I need is to post the data … Web Development javascript php |
Hi, I'm trying to send data from a form to a page called "register.php" by using the POST method. Can this be done on a localhost? I'm quite new at this and I am practicing on a localhost server with phpmyadmin. When I click the "register" button it shows the … ![]() | |
how do i make the first form entry that gets sent to the csv go under column heading...? (i.e.) I have headers that say Name, Age, weight... and the user submits a form with the following saying Bob, 72, 291... then the data gets sent to the csv... I want … Web Development php ![]() | |
1.I have a MySql DB called 'scheduled' and table called 'messagelist'. The first field msgID is int(10). Rest all are varchar(20). 2.broadcasttext.php <form name="frmText" method="post" action="addScheduled.php"> 3.addScheduled.php <?php $host="localhost"; // Host name $username="scheduledUudk8"; // Mysql username $password="KeszRXqXo.)-"; // Mysql password $db_name="scheduled"; // Database name $tbl_name="messagelist"; // Table name $i = … Web Development first-post mysql php | |
Guys please help.. It always says "Sorry, cannot log you in. Wrong login information". Thank u.. <?php session_start(); include "dbConfig.php"; if ($_GET["op"] == "login") { if (!$_POST["StudentID"] || !$_POST["password"]) { die("You need to provide a username and password."); } $q = "SELECT * FROM `student` " ."WHERE `StudentID`='".$_POST["StudentID"]."' " ."AND … | |
how can i tell in php that 01 is not equal to 1 and 1 not equal to 01 so that i can insert it in the data table $startnummer= ($_POST['Startnummer']); $query9 = mysql_query("SELECT werkelijkstartnummer,startnummer,turnier_jaar FROM narr_turnier_".$onlyconsonants." UNION ALL SELECT werkelijkstartnummer,startnummer,turnier_jaar FROM narr_turnier_".$onlyconsonants."_ster WHERE turnier_jaar=".$jaarnu." && startnummer = ".$startnummer." "); … Web Development php | |
i configure openinviter with Codeigniter. gamil conatact is fetching but yahoo and facebook contacts list are not working.any suggestion will be appre. Web Development php php-codeigniter ![]() | |
hi everyone... i have tried creating an auto updater that will reload a certain div just like on facebooks status/wall refresher, when a user moves the mouse it auto refreshes there wall. so far i have the code below...but the problem is its just executing my function over and over … Web Development javascript | |
Hello, Here is a snip of my code and although the mysql connection work and even the $num calcullate the numrows work as the tables gets created unfortunately no data gets populated, can any one one advise. 1 - mysql_connect (OK) 2 - mysql_select_db (OK) 3 - mysql_numrows (OK) 4 … | |
how do i change the text when i login, the "Register" will change into "Control Panel" and "Login" will become "Logout"? when i click logout, the control panel & logout will change back to register & login. But in there have first login after display home page.But I want First … Web Development php | |
is there any way i can send a notification to other pc through system tray pop up balloon using javascript? any code samples??thanks. Web Development javascript | |
Hi I really need some help! Recently one of my sites have been hit with an iframe injection: `<iframe scrolling="no" frameborder="0" src="the source changes but normally htttp://collegefun4u.com/" width="0" height="1"></iframe>` It happens at random times and gets inserted in random include files. We have clean scanned all computers + server for … Web Development coldfusion | |
Hello, In a label, I am displaying the number of characters left in a textbox. Once the user goes into negative characters remaining, the label text turns red. If they try to submit the form, an alert message will popup letting them know they have exceeding the limit of characters. … | |
Im new to php and mysql and doing my final year project, i want to ask u ppl that what if i want to display a row of a table after some if condition, i want to diplay offered courses to all the students and if the student whose course … Web Development php | |
I have a simple php library that i am using, now i wnat to upgrade it. I want to create namespace on it so my class will be inside on the namespaces bu t i got an error when i i tried to use namespace. here a sample <?php defined('protect')||(header("HTTP/1.0 … Web Development php | |
` Inline Code Example Here ` <%@ page language="java" contentType="text/html; charset=ISO-8859-1"%> <html> <head> <%@ page import="java.io.*" %> <%@ page import="java.io.*" %> <%@ page import ="net.sf.mpxj.MPXJException " %> <%@ page import=" net.sf.mpxj.ProjectFile" %> <%@ page import=" net.sf.mpxj.Resource" %> <%@ page import=" net.sf.mpxj.Task" %> <%@ page import=" net.sf.mpxj.mpp.MPPReader" %> <%@ page import … Web Development java-jsp | |
Hello Everyone , I`m using an Jquery accordion effect that you can download from here [url]http://www.marghoobsuleman.com/jQuery-common-accordion[/url] The Author of this script does not respond to my complains , and I hope u can help me here the problem happens only in webkit based browsers (Chrome,Safari) where when trying to re-play … Web Development javascript javascript-jquery | |
heloo everyone, i am new to mysql and php. here i am diplaying my data by joining 3 tables.what this query is doing 1) displaying course name 2) displaying subject name 3) displaying status if any there are three statuses (applied, accepted, rejected) what i want to display is 1) … | |
I am trying to figure out why I am getting this error notice, Does anyone have an idea as to why this is happening. Notice: Undefined offset: 5 on line: `if ($tree[$i]['level'] < $tree[$i+1]['level']) {` on line: `} elseif ($tree[$i]['level'] == $tree[$i+1]['level']) {` on line: `$diff = $tree[$i]['level'] - $tree[$i+1]['level'];` … | |
i'm Having 3 tables those are like 1.State table 2. District Table 3.college Table state table cat_id state 1 Andhrapradesh 2 Gujarat 3 Punjab 4 mumbai --------------- district Table cat_id d_id district 1 1 vizag 1 2 eastgadavari 1 3 hyderabad 1 4 westgadavari -------------------------------------- college table Cat_id d_id c_id … Web Development javascript php |
The End.