39,402 Topics

Member Avatar for
Member Avatar for artvor

Hello to all Web Developers! I need a simple help here: [CODE]<table class="maxWidth" cellspacing="0"> <form action="update_conditions.php" method="post" > <tr> <td ><input type="radio" name="sex" value="citizenship" checked="checked" /> Accept all citizenships <br /> <div class="paddT5 borderT"></div> <input type="radio" name="sex" value="citizenship" /> We do not accept citizenships from: <textarea name="ud_not_citizenship" class="textarea" rows="5" > …

Member Avatar for Graphix
0
150
Member Avatar for phaedrusGhost

Hi all, I have a loop that I want to show all users and info from a DB. After each user is displayed I need a divider line placed between them. The divider line is simply "div class="divider"></div>" with a 2X2 pixel, repeat X background image. I have tried inserting …

Member Avatar for phaedrusGhost
0
142
Member Avatar for sarithak

Hi frnds... i m using date time funtion in many ways..but i m not getting indian timings...plz tell me how can i exact indian timings... i used all the below functions... [QUOTE] php_value date.timezone "Asia/Calcutta" echo date('d-m-Y H:i:s'); putenv("TZ=Europe/Istanbul"); [/QUOTE] i need only for a single page..

Member Avatar for Member 784564
-2
649
Member Avatar for helpmmeworld

I need a help here, There's an error every time I add a link in my php file. Example: [code] <php $link = "twitter.com"; echo "<a href = '".$link."'> link </a>"; ?> [/code] on click, the address would be change on "http://localhost/project/twitter.com" whch is supposed to be "twitter.com" I've tried …

Member Avatar for rajarajan2017
0
119
Member Avatar for faizabest

Im new in web developer and using WAMP server to develop my system. I have run my system succ on winxp, but not in Win7. Can u guys help me to solve this matter? My Apache doesn't work.. I have try to start n restart but still same.... Cannot open …

Member Avatar for faizabest
0
119
Member Avatar for codewalkz

I currently have this function [CODE] processfn('sponsor = 1', 1, '', 0, 'buyer = 0'); function processfn($sponsor, $level, $sad, $sadista, $bumili) { $result = mysql_query("SELECT id FROM ahentes WHERE $sponsor") or die(mysql_error()); if (mysql_num_rows($result) > 0) { $sad = mysql_num_rows($result); while ($row = mysql_fetch_array($result)){ $sila[] = "buyer = '".$row['id']."' "; …

Member Avatar for codewalkz
0
82
Member Avatar for sacarias40

Hello everybody, Im writing an application that takes various different classes. background: i basically have a bootstrap type of file that requires all the needed classes. inside each individual class file at the bottom, i have instantiated the class. later on in other theme files i want to use some …

Member Avatar for sacarias40
0
133
Member Avatar for CreativeCoding

Well, I am making an upload for people who make games with the Unity game engine. Basically, the engine will build the game and produce an html file and .unity3d file. here is my html form: [CODE]<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Index file:</label> <input type="file" name="file" id="file" /> …

Member Avatar for CreativeCoding
0
124
Member Avatar for atzaman

Hi guys Wondering if someone could give me a hand with another problem I'm currently having. A little background first... I'm trying to pick up a daily report which is in XML format via a URL. I then need to parse that data and insert it into a MYSQL table. …

Member Avatar for atzaman
0
300
Member Avatar for ptemedia

Hi, first of all sorry if this has come up before, but I couldn't find it anywhere. I have a working php form which submits data on submit. I need to verify the input fields to ensure they are not empty. I know i need a javascript function to run …

Member Avatar for ptemedia
0
244
Member Avatar for hims4u

hello mods!! i am facing a strange problem!! i have redirected a URL via php script using html page!! whenever i open html page it redirects to my php code(script) on page instead of showing me the output of the data that i have put in i.e. the telephone number …

Member Avatar for hims4u
0
166
Member Avatar for artvor

Hello, I'm new in PHP and MYSQL.. I need a small help... Here is what i got: [B] CONDITIONS[/B] [CODE]<form action="update_conditions.php" method="post" > <table class="maxWidth" cellspacing="0"> <tr><td >Method</td><td>Commisions</td><td>Proccess Time</td><td>Min Deposit</td><td>Max deposit</td></tr> <tr> <td> <input type="checkbox" name="ud_bank_wire" value="<? echo "$bank_wire"?>" /> Bank Wire</td> <td><input name="ud_b_w_com" class="update_by" type="text" value="<? echo "$b_w_com"?>"></td> <td><input …

Member Avatar for artvor
0
182
Member Avatar for benhowdle89

Hi, What i have is a variable that is getting updated periodically and i've set the php script to refresh itself every 30 seconds to run a mysql query updating a db, this is good but if this value isnt changing from the source i get duplicate records in the …

Member Avatar for rajarajan2017
0
4K
Member Avatar for dan1992

help please [CODE]<?php $name = $_FILES["sound"]["name"]; $type = $_FILES["sound"]["type"]; $size = $_FILES["sound"]["size"]; $temp = $_FILES["sound"]["tmp_name"]; $error = $_FILES["photo"]["error"]; $random_digit=rand(0000000,9999999); $new_file_name=$random_digit.$name; if ($error > 0 ) $die_1 = die("Error uploading file! Code $error."); else { move_uploaded_file($temp,$new_file_name); } } ?>[/CODE]

Member Avatar for rajarajan2017
0
74
Member Avatar for QWaz

Hi, I am trying to make a list of products with the product heading at the top. and trying to make it dynamic. I have put a foreach() inside another foreach(), I have all the info in the database, however nothing is displaying. So I am stumped.???. $sql = "SELECT …

Member Avatar for rajarajan2017
0
101
Member Avatar for umandajayo

hello I am trying to display some form values. Of course no problem I can display that particular data by using That my following code it is perfectly working. but I need to display those data in two column.Actually those data containing Names.I need to put those name according their …

Member Avatar for vibhaJ
0
141
Member Avatar for QWaz

Hi, I am getting this error: Warning: implode() [function.implode]: Invalid arguments passed in ... on line 28 I am not sure if what I am doing is possible or if I have shanked the code somehow.. if(!isset($_GET['b'])) { ///// DISPLAY THE NORMAL PROMOTIONAL HOME PAGE } elseif($_GET['b'] == 't') { …

Member Avatar for rajarajan2017
0
2K
Member Avatar for SCoder1
Member Avatar for Ankit_Parmar

I am using ldap_connect function in phpmaker tool,but it is giving error like Fatal error: Call to [B]undefined function[/B] ldap_connect() in C:\xampp\htdocs\register\1v6\phpfn7.php on line 4127

Member Avatar for Ankit_Parmar
0
100
Member Avatar for kirtan_thakkar

I have a text file and i want it to open and add all the line to an array. Which function is used in php for that task?? Which separator is used for a new line..?? Can any one help...

Member Avatar for rajarajan2017
0
81
Member Avatar for cancer10

I want to insert records into multiple tables at one go, I am doing this in the following way, is this the correct way of doing? If not, what is the better way? [CODE] mysql_query("insert into table1 values('abc')"); mysql_query("insert into table2 values('ttt')"); mysql_query("insert into table3 values('5t6')"); mysql_query("insert into table4 values('ghy')"); …

Member Avatar for rajarajan2017
0
167
Member Avatar for dan_t

OK, Here's what I have. This is my simple form. [CODE]<form action="log_test.php" method="post"> <input type="text" name="username"> <input type="password" name="password"> <input type="submit" name="submit" value="Log in"> </form>[/CODE] and here is my script [CODE]$query = "SELECT userId, password FROM table"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['userId']; echo $row['password']; }[/CODE] I …

Member Avatar for rajarajan2017
0
149
Member Avatar for twelvetwelve

When I use the following PHP code I get this error Error performing query: Unknown column 'nh12134' in 'where clause' Yet when I use 'nh12345', which is the Value that the variable $username contains (i've checked that it does by printing it out elsewhere) instead of the $username in the …

Member Avatar for Ankit_Parmar
0
282
Member Avatar for satees

Hi, I need to grab the data from the other specified websites, any idea how to implement this? Thanks in advance. Satees

Member Avatar for keval_hack
0
123
Member Avatar for rahul8590

i have a basic script where in i check if the content is inputted or not . If the content is not present i redirect to the same page also echoing a statement that u have not entered any data , but the echo message is not being printed. the …

Member Avatar for rahul8590
0
114
Member Avatar for dan1992
0
50
Member Avatar for Sucesso

I've got what I think must be a pretty simple question, but it's my first time doing something like this. Here's my situation. I have a simple database. It's a dictionary of words. I want to have a form that I can enter a word into. Once I do that, …

Member Avatar for effu
0
125
Member Avatar for bsewell

HI guys, just wondering how to get a customised page, depending on an id. Eg mysite.org/view?id=1, mysite.org/view?id=2 etc. How does that work? Is it possible to provide the whole url including the id so I can put a direct link to the page I want someone to view? Cheers,

Member Avatar for Graphix
0
87
Member Avatar for php_IND
Member Avatar for parkie

Hi, can anyone give me a bit of advise? Ok this code works and sends a result if it is higher than 99% to an email address. What I now need to do is limit the number of times a person can access the quiz if they don't score 99% …

Member Avatar for parkie
0
108
Member Avatar for codewalkz

It's like a tree pyramid. I want to get the members sponsored by the current user. The result will be used to get its sponsored members and so on until everyone is read. How can I achieve this? I currently have this code but I can only go to level …

Member Avatar for cwarn23
0
121
Member Avatar for ptemedia

I am successfully reading and displaying a .txt file with 3 variables, lets say for example name, age and comments. When the file is written, 1 name, 1 age and 1 comment gets written on a line. Any further additions get added as a new line. When this gets read …

Member Avatar for Excizted
0
236
Member Avatar for sarminatorius

I don't know how to explain what i need. For example: How load/add daniweb.com header into other file for example [url]www.test.com/header.php[/url] I just need to load part of website into other php file. Could you advise what functions to use? Sorry for bad english.

Member Avatar for chrishea
0
86
Member Avatar for popinthecan

I was wondering if some one could point me in the right direction with making an image show how many times it's been clicked.

Member Avatar for popinthecan
0
2K
Member Avatar for srdva59

hi, i want convert the time stamp unix format to hours and days i have this: $date = trim(date('H:i:s', $ofwhat)); $ida = trim(date('d', $ofwhat)) -1; if ($ida >0) {if ($ida==1) { $dia= $ida. " day, "; } } if ($ida >0) { if ($ida>1) { $dia= $ida. " days, "; …

Member Avatar for almostbob
0
101
Member Avatar for hickyfunkymonke

Hey there, I hope this is the right place to put this in? Anyway, Im currently using PHPMyAdmin application on the yahoo small business web hosting. Basically when I click the privelages button I recieve this errer: [QUOTE]Warning: Your privilege table structure seems to be older than this MySQL version! …

Member Avatar for pbd4499
0
454
Member Avatar for D4n1sD

I want a partner for preg_split for multiple matches. For example preg_split('/(.be|.fr|.im|.fi)/i', $input[$i], -1, PREG_SPLIT_DELIM_CAPTURE); I tried something like this but doesnt work. I want for example to search for these 5 strings and if it finds them split the string there. Anyone know?

Member Avatar for D4n1sD
0
105
Member Avatar for cobrax

hi there:twisted: i'm verry new here but i hope that there is sombody here that can help me with the following i have a fusker script called fusker.ne build in in a verry old xoops engine i wil use this script again but there is a verry hard to understand …

Member Avatar for cobrax
0
147
Member Avatar for rnrajput

[CODE]<?php $host='localhost'; //Change the user,password and database variables as desired $user='root'; $pass=''; $dbname='imagedb'; $link=mysql_connect($host,$user,$pass) or die(mysql_error()); $db=mysql_select_db($dbname) or die(mysql_error()); ?> <html> <head> <title>Uploading image to MySQL database and displaying it</title> <script src="mootools1_2.js" type="text/javascript" language="javascript"></script> <script src="ajax.js" type="text/javascript" language="javascript"></script> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <fieldset> <legend>Upload Form</legend> <form enctype='multipart/form-data' name='frmupload' …

Member Avatar for rnrajput
0
104
Member Avatar for maii_18

Hi there, can anyone familiar with Magic Box help me. The structure of magic box within a table. I have no idea where to start with the for loop. Please help me. Please. Thank you.

0
59
Member Avatar for codewalkz

I am currently making a binary tree and I was able to create the tree. What I am facing now is " How to get the total number of children in my left side and total number in my right side ". The structure is: [CODE] 1 2 3 4 …

Member Avatar for codewalkz
0
1K
Member Avatar for shimurai

Hello everyone, I have a Counter-Strike 1.6 server and I would like to let my server admins to turn ON the server when it crashes, so I investigated a bit to do this using PHP to run an .exe on my server but I'm not very experienced at php and …

Member Avatar for cwarn23
0
245
Member Avatar for phaedrusGhost

Hi all, I have an if statement here that works well except when i try to put it inside of the code you see starting at line 7. What you see on line 1 is only the code I want to insert. The code you see at line 5 is …

Member Avatar for phaedrusGhost
0
145
Member Avatar for kukie

Hi everybody I am very new to PHP and MYSQL How can I implement : [CODE] $q=$_GET["q"]; $CMY=$get["CMY"]; ... $query=("INSERT INTO the_array($CMY, model) VALUES('$q','dddd')");[/CODE] $q and $CMY are results I get from AJAX, and I think the only way to save the results is using the DB.

Member Avatar for kukie
0
277
Member Avatar for billmudry

So far progress overall has been going well in general on my pet project I call the TAXA project (nickname for taxonomy). The heart of it is a botanical tree on all the woods of the world. Since viewing it can make it easier for any of you to understand …

0
169
Member Avatar for dalip_007

Hi i am using xampp server (php/mysql) and getting error like "Mysql packet size is 0.9990234375MB and it is lower than the size of the file GeoIPCountryWhois.csv which is 9MB. " So I want to change packet size to make it happen. can anyone please tell how to make it …

0
76
Member Avatar for BTW8892

Hey, I have yet another question, so here it is. I have a roster page, and i have multiple players on the page. The players each have a unique playerid stored in the database. Now what i want to do is link up their name on the roster list that …

Member Avatar for effu
0
87
Member Avatar for bjeffries

I have been working on this for a while now and have had no luck. I have tried this code on 2 servers and they both render the same results: everything loads up to the title and description. Does anyone know what could possibly be the problem and help me …

Member Avatar for bjeffries
0
88
Member Avatar for nevergone

Hello, I want to secure my website the most possible using htaccess. And I believe this code covers any javascript injections and external data injection. But it doesnt work. I might have gotten something wrong. Can you help me fix this please ? I looked over the internet for similar …

Member Avatar for 84hd0ns
0
57
Member Avatar for saranraj.cmr2

Hi, I would like to post the stream from my website to facebook user wall by using facebook API.. 1. I have created the facebook application 2. posted the stream by application admin .. passed the parameter which required to this function.. $this->facebook->api_client->stream_publish($comments,'From:blinkbee.com',$action_link,$f_user_id,$f_user_id); 3.sucessfully posted the stream.. 4.Then i changed …

Member Avatar for saranraj.cmr2
0
167

The End.