39,393 Topics

Member Avatar for
Member Avatar for codewalkz

Hi, I need something like recursion wherein the query repeats itself using it's result to start the NEXT - SAME - QUERY. I made 1 but it just simple reecho the same result. [CODE]// KUNIN ANG ID NI KURIMAW $root = $_GET['id']; $result = mysql_query("SELECT COUNT(*) as count, id, sponsor …

Member Avatar for codewalkz
0
153
Member Avatar for niths

[QUOTE]hi all, in my insert project page wen i am above to insert project if the project size is greater than the allocated size then it should display some alert message,but my code not displaying anything.so please check my code. Thank u.[/QUOTE] [CODE]<?php $id=$_GET['f1']; @session_start(); require_once ("check.php"); createsessions($username,$password,$userid,$projectid,$projectname,$filename,$size,$allocatedmemory,$answer,$usedmemory); $con=mysql_connect("10.70.1.248","invensis","invensis"); if(!$con) …

Member Avatar for jonathanroy
0
164
Member Avatar for simiking

Hi all, I'm having problems passing my variables using thru the url. Here's the code. [CODE =php] $connection = mysql_connect($dbhost, $dbusername, $dbpassword) or die (mysql_error()); mysql_select_db($dbname, $connection); //i use this line to test that variable id has been passed. //this also happens to be the error point $test = "select …

Member Avatar for colweb
0
112
Member Avatar for D4n1sD

For example. You got 1 list with 3 options. a b c once someone select a it instantly appears a text through php under the list or above it. Without to reload or anything else. I have seen it before 100%. pseudo code [CODE] <li> <option 1> a</o> <option 2> …

Member Avatar for BzzBee
0
176
Member Avatar for mahe4us

Dear All, Sorry for my frequent questions in this forum. I have came here with a lot of questions. I need help in socket programming in php. For example, Lets consider I have a ip number and port number. Using this ip and port values i want to send a …

Member Avatar for BzzBee
0
182
Member Avatar for jeepguy

I have 50+ domains I have parked and instead of using GoDaddy's default parked page I created my own to generate ad revenue or at the very least help increase Google PR. Currently Im using [CODE]<?php echo(preg_replace('/^[a-z]*./','',$_SERVER["HTTP_HOST"])); ?>[/CODE] to display domain.com throughout the page. However, my next step is to …

0
184
Member Avatar for star_lavender

hi...anyone got ideas on the drop down list and jgraph?actually everything goes well at first but after I add the drop down list code for selection to sort the graph based on year, the graph didn't show in the same page??anyone know how to solve this problem?? part of the …

Member Avatar for star_lavender
0
241
Member Avatar for Feenix45

[CODE]<?php //redirect the user to login if session is invalid include("validate_session.php"); $alert =0; $userid=$_SESSION["userid"]; //Connecting to database include("db_connect.php"); foreach ($_POST as $key => $value) if (substr($key,0,8) =="txt_chk_") { $alert =1; $itemid=substr($key,8,3); $purtime=substr($key,11,8); $purdate=substr($key,19,10); $itemdate=substr($key,8); foreach ($_POST as $key1 => $value1) if ($key<>$key1) { $tempstr= substr($key1,0,strlen($key1)-strlen($itemdate)); if (substr($key1,strlen($tempstr))==$itemdate) { if ($tempstr=="txt_qty_") …

Member Avatar for kek1205
0
132
Member Avatar for whiteyoh

Hi All, I have an API key for google maps and its giving me the following response. My first question is, how can i extract the data? Normally i work with XML responses via CURL so im new to this. If i do use the XML example i just get …

Member Avatar for whiteyoh
0
200
Member Avatar for rukshilag

i have downloaded and extracted fpdf into my root folder site folder.. i want to know how i can generate a pdf file when i press a button called print. please help? and wehre do i put this fpdf code? is it in the script that contains the output?

Member Avatar for rukshilag
0
216
Member Avatar for veledrom

Hi, There is a webform which manipulates a lot of database tables after submit action by a user. Is there any easy way of finding out which tables have been affected after the process? Database has 259 tables and php pages and classes are very messy and complex. Also no …

Member Avatar for veledrom
0
64
Member Avatar for loloy123

Hi, Ive been at this all weekend and can't figure it out.... I need to take it name and 3 results via a form and store this in a mysql database - done. Then I need to print on screen via php who got the highest score. The highest score …

Member Avatar for rajarajan2017
0
491
Member Avatar for picador

Hello all, I'm new here :) After I upload new .mo file on the server I get blank page after first few refreshes, like server cache the old file... After that everything seems to be ok. I use slackware, lighttpd 1.5, PHP5... I thought that only apache server does caching, …

Member Avatar for picador
0
86
Member Avatar for Joaoalex7

hey all, I'm having some troubles with radio buttons. I'm trying to create them dynamically (which i can do without any problems) but now i'm not sure how to get the information of which button was selected. Can anyone help me? Thanks in advance:) this is my code: [CODE]<html> <head> …

Member Avatar for sourcebits
0
71
Member Avatar for seularts

How can I count unique IP clicks on a image link [B]without [/B]a MySQL db. If any tutorials are at hand could you give me a hint or something please, thanks:)

Member Avatar for sourcebits
0
85
Member Avatar for whitestream6

I've got my pagination script working, but now I need help trying to get it to extract data from 2 different sources. The episode data is stored in table episodes, whilst the main table (where the info on airdates for episodes is stored in epdata2). This is my code: [CODE] …

Member Avatar for sourcebits
0
158
Member Avatar for izagaren123

hey i need some helpn with some conversion the link currently links the item id to the shopping basket i currently have a submit button on my site which looks like this <!--<input type="button" value="Add to Cart" onclick="addtocart(<?=$row['itemid']?>)" />--> and is linked to this script <!--<script language="javascript"> function addtocart(pid){ document.form1.productid.value=pid; …

Member Avatar for pclfw
0
152
Member Avatar for sonia_demo

hello friends, I want to [B]display only those images which are checked.[/B] I had tried so many times but no use. when I checked any images. it displays only [B]last[/B] image. can any tell me where is the problem here is the code. display.php <?php $i=0; $connect = mysql_connect('localhost','root','') or …

Member Avatar for sonia_demo
0
79
Member Avatar for Stefano Mtangoo

Hi all, I have been running errors too much that I realized that I have learned 'bad' behaviour in writting PHP query. So I decided to change. Please tell me what is good behaviour of writting queries that involve PHP variables as well as functions like one below. [CODE=php]$query = …

Member Avatar for Stefano Mtangoo
0
182
Member Avatar for Elemen7s

Hi all, I used this method (link below) for my website, which works like a charm. [url]http://www.daniweb.com/forums/thread277139.html[/url] Now some of my website structure is : index.php contact.php mail-sender.php - ( script to send emails) template/wide_panel.php - (template where the content is) content/wide_panel/contact.php -( the content of the contact.php) content/wide_panel/error_invalid-email.php - …

Member Avatar for Elemen7s
0
114
Member Avatar for virspy

Hi , this is shafi, i want small help here is the sample site [url]http://www.tailorstore.com/in/en/tailor-made-shirts[/url][B][/B] in this site he is using 3D model and loading fabric ... and i want help like how is loading fabric ... and it should without any 3d softewere... how we can do it... cn …

Member Avatar for rajarajan2017
0
96
Member Avatar for Helleshtern

Hello! I have a script to update multiple rows in database but it update [B]all[/B] and I need to [B]only values in checked rows[/B] be updated. What should I change to update only checked rows? [CODE] <?php include 'connect_db.php'; $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); // Count table rows $count=mysql_num_rows($result); if($_POST['Submit']) …

Member Avatar for Helleshtern
0
3K
Member Avatar for niths

[QUOTE]hi all, in my insert project page wen i am above to insert project if the project size is greater than the allocated size then it should display some alert message,but my code not displaying anything.so please check my code. Thank u.[/QUOTE] [CODE]<?php $id=$_GET['f1']; @session_start(); require_once ("check.php"); createsessions($username,$password,$userid,$projectid,$projectname,$filename,$size,$allocatedmemory,$answer,$usedmemory); $con=mysql_connect("10.70.1.248","invensis","invensis"); if(!$con) …

Member Avatar for prem2
0
78
Member Avatar for xo_vicke93_xo

Hi, i'm not really sure how to explain this. I have a table with a lot of places sorted by date, all connected to a MySQL database. I'd like the table to update automatically everyday and remove the top ones where the date has passed so that the table only …

Member Avatar for liamfriel
0
97
Member Avatar for QWaz

Hi, I am having real trouble trying to figure out how I can add multiple rows into a MySQL database at one time. I have a form where the person selects a number from the drop down options. then I need to add that amount of new rows into a …

Member Avatar for QWaz
0
116
Member Avatar for rukshilag

Doing a system in drupal using php and mysql. Want to integrate a function for reporting - that is print out watever search result in the search page which displays in tabular form. please help. i have only heard of jasper reports. is there something simpler? if so wat n …

Member Avatar for Ricardo Mariaca
0
88
Member Avatar for amaresh417

Hi I am Amaresh Maurya plz tell me about the best book or best tutorial site for PHP........ thanx....

Member Avatar for rajarajan2017
0
42
Member Avatar for rukshilag

Doing a System in Drupal - coding with php and mysql - want to know how i can integrate jasper reports to it so i can generate reports at the click of a button.. does anyone know? please help..

Member Avatar for Ricardo Mariaca
0
77
Member Avatar for babusomu
Member Avatar for Darkicon

I'm very new to PHP so I'm still learning how to do stuff. I cannot figure out what is wrong with this code: [CODE=PHP] if($row->played_time >= 60){ $time = round($row->played_time,2) / 60 " mins";} elseif($row->played_time >= 3600){ $time = round($row->played_time,2) / 60 / 60 " hours";} elseif($row->played_time >= 86400){ $time …

Member Avatar for rajarajan2017
0
145

The End.