38,015 Topics

Member Avatar for
Member Avatar for bhoom205

Let me know,how can i pick randomly six numbers in between 6 to 49 output like this :23 44 3 11 21 in php only etc..........

Member Avatar for jblacdao
0
218
Member Avatar for tomhughes

Hi all, I'm just learning how to delete records from a test table but I'm having some problems with it. I'm not sure exactly but it looks like it is deleting the last row from the table no matter which record is clicked on. It also appears that it is …

Member Avatar for jblacdao
0
76
Member Avatar for bhavna_816

i want to make a PHP page which have username and password and this username and password should be saved in MySql table and the page should redirect to another page. i want to use ODBC and PHP. i am very new to PHP. Can anybody having any clue for …

Member Avatar for Rhyan
0
127
Member Avatar for muralidhar6972

:eek: Hi friends, i am facing a problem now in php programming, that is i have to list some contents. 10 per each page and there should be checkboxes ex sno item_id ck_box description this information is in 4 pages i want to get the item_id information that are checked …

Member Avatar for jblacdao
0
62
Member Avatar for ¤| battousai |¤

Hi I'm working on a site that involves alot of date references. I have already implemented some PHP scripting and includes to make the site more dynamic, but would like to do the same with the date references. I have read about the [color=red]date[/color]() funtion but I'm still a newbie …

Member Avatar for jblacdao
0
112
Member Avatar for Anonymusius

I'm learning Object Orïented PHP (or whatever you like to call it) and I ran into a problem. I made this query class: [php]class query { var $query; var $result; var $free; function query($query) { $this->query = $query; $this->free = false; $this->result = @mysql_query($this->query) or die('Error in mysql query:<br />\n' …

Member Avatar for Anonymusius
0
108
Member Avatar for blackpheonix

Just wondered if anyone could help me, what am i doing wrong here im trying to cant seem to get $email, $betakey or $userid to show any data i know im missing something but for teh life of me cant think tried everything i could think of fetch etc but …

Member Avatar for jblacdao
0
103
Member Avatar for jaikar

Hi, i want to upload a video file (mpeg, mpg, wmv) and wanted to display the first frame of the video as a thumbnail. so video will start to play in a enlarged mode when user clicks the thumbnail view of the video like the google videos. is it possible …

Member Avatar for yakoo
0
99
Member Avatar for nina26

Hello all, I run simply php scripts on my site that allows people to leave comments, for example here on my [URL="http://www.lifeofamodel.com/america_next_top_model_8.html"]ANTM[/URL] page. I have been trying to incorporate a captcha which works well speperately but I just cannot get it into the comment.php file. The captcha works if I …

Member Avatar for jblacdao
0
260
Member Avatar for woofytalk

The following VBScript below displays a user's Active Directory Display Name. It first finds the user's LDAP path and then querys the path to display the username. Unfortunately I'm a total newb when it comes to PHP. I'm looking for the PHP code that will do this exact same thing. …

0
64
Member Avatar for EnderX

I am currently responsible for a set of server units. Recently, the group of users working with one of these units informed me that they were having problems with a php-based report generating program. I did not write the program; my predecessor did. I did manage to track down the …

Member Avatar for EnderX
0
381
Member Avatar for mstemmer

Hello all, I'd like to embed a javascript code into this part of the php/html [code]?> <a href="<?=$images[$k][0]?>" target="blank"> <img src="<?=$thumbdir."/".$images[$k][0]?>" border="0"><br /> <?=$images[$k][0]?> </a><br /> <?=round($images[$k][2]/1024)?>Kb, <?=date("d-m-y",$images[$k][1])?> <?[/code] I'd like to add this javascript to it: [code] <script language=JavaScript> <!-- //Disable right mouse click Script //By Maximus ([EMAIL="maximus@nsimail.com"]maximus@nsimail.com[/EMAIL]) w/ …

0
37
Member Avatar for dks1383

Hi I have a problem with session_start when I click Back key in browser: First I Run Az1.php then I press the "ok" key and I go to az2.php then I click "az3" Link and I go to az3.php but when I click Back in my browser for back to …

Member Avatar for dks1383
0
79
Member Avatar for R.S.Chourasia

I am tring to use HTML tags checkbox and textbox along with PHP. When the checkbox is not checked,the textbox is disable.But when I checked the check box,the textbox should become enabled. How can i do this? Here is My code:- [code=html]<html> <head> THIS IS TEST <title> TEST </title> </head> …

Member Avatar for R.S.Chourasia
0
90
Member Avatar for DarrenC

Hi everyone, I'm new to PHP and I am trying to get to grips with the PHP scripts that have been created for my website. One of my pages is a list of destinations and one of the places is Cote d'Azur. When it publishes the destination on the dynamic …

Member Avatar for DarrenC
0
111
Member Avatar for scottmansell

Hi Everyone, Just so you know where i am, I am a decent site builder but i need some help in the following areas as I have not had much experience here. I wish to add a user review option to my ecommerce site. So that members can post opinions …

Member Avatar for Rhyan
0
95
Member Avatar for crestaldin

Hello All, I am a PHP newbie and have all my resources set up( by that I mean PHP,Apache server etc all working fine) I have an html file and a PHP script to handle the inputs from the html form. However when I hit submit to send the data …

Member Avatar for jblacdao
0
140
Member Avatar for melefire

Hello, i am creating a simple website for a friend. There is a download page that waits 3 seconds bafore redirecting the user directly to the file. I dont want to make a redirect page for each file. so i figured i could put this in the url: [HTML]download.php?dlurl=URL OF …

Member Avatar for jblacdao
0
97
Member Avatar for crazynp

Hi, I am building three websites. The first site has a mysql database with necessary contents for two other sites. The two websites should show the content stored in the first site's database, is it possible without using xml? or is xml the best way or is there any other …

Member Avatar for Rhyan
0
234
Member Avatar for mindfrost82

I have a script that has the code similar to the following: [code] if((isset($_POST['somefile'])) { header("Location: http://www.url.com/somefile.pdf" ); } [/code] This evaluates the selections of a form and will open the pdf file if the 'somefile' option is checked. Now what I'm needing is basically two seperate IF statements to …

Member Avatar for jblacdao
0
265
Member Avatar for jaikar

Hi, The code below is to copy the files from one dir to another. here in the function dircopy $verbose is set to false. and later a action is done when the $verbose is true. in between there are no actions that are setting the $verbose to true... when do …

Member Avatar for jblacdao
0
96
Member Avatar for slacke

I am creating a login sessin in php. In first part index.html takes in text for AUTH_NAME and password in AUTH_PASSWD. In the login.php I set these variables as global with session_register("AUTH_NAME") and session_register("AUTH_PASSWD"). code: index.html [PHP] <html> <center><h2>Login</h2> <form action=login.php method="post"> <table align=center> <tr><td>User</td> <td><input type=text name=AUTH_NAME size="20"></td></tr> <tr><td>Password</td><td><input …

Member Avatar for jblacdao
0
134
Member Avatar for yakoo

Hi Friends, I have one strange problem the if conditions are not working, it is not supporting at all. Any idea why ? iam using ODBC_CONNECT() with MSSQL and PHP. Regards

Member Avatar for mbacon
0
81
Member Avatar for ¤| battousai |¤

lately I have been experimenting a bit with [color=blue]print[/color] and came up with this: [code=php] $var1 = 'x' print $var1; $var2 = 'y'; print "when you calculate:" . $var1 "-" . $var2 . "=" . ($var1 - $var2); [/code] where you can see a calculation while still in the function …

0
58
Member Avatar for nathanpacker

Hey everyone, I'm using the php function [URL="http://us2.php.net/nl2br"][COLOR="Blue"]nl2br[/COLOR][COLOR="SeaGreen"]()[/COLOR][/URL] to display some characters on a page from a textarea. I'm storing the text into the database exactly as it is entered, and then only using the [URL="http://us2.php.net/nl2br"][COLOR="blue"]nl2br[/COLOR][COLOR="seagreen"]()[/COLOR][/URL] when displaying it on a page. Should I do it the other way around? …

Member Avatar for nathanpacker
0
81
Member Avatar for MeeraKotecha

Hello.. I am having two php pages the 1st page is the registration and in the 2nd page i need to use the ID associated with registration (stored in databae) I think we need to maintain sessions for this.. But I am not clear with its implementations.. Plz kindly help..

Member Avatar for Rhyan
0
119
Member Avatar for phpmember

I want to provide text formatting optins and smileys to my website using PHP. Can someone tell me how to do this? Can I get some open source third party tool for this? Please help me.

0
53
Member Avatar for kanaku

I'm using an html form to add to a list, specifically a flatfile database called demo3.txt. The add.php file is this: [CODE] <?php $name = $_POST['name']; $nickname = $_POST['nickname']; $motto = $_POST['motto']; $fp = fopen("demo3.txt","a"); if(!$fp) { echo 'Error: Cannot open file.'; exit; } fwrite($fp, "\r\n".$name."|".$nickname."|".$motto); echo 'The data has …

Member Avatar for kanaku
0
96
Member Avatar for ¤| battousai |¤

sorry to post another problem so soon after my first one, but this has been bothering me for some time now. Sometimes I can't get the [color=blue]echo[/color] funtion to work I already use the [color=plum]$root[/color] succesfully in all the [color=gray]href[/color] and [color=gray]src[/color] attributes last week I wanted to echo a …

Member Avatar for ¤| battousai |¤
0
331
Member Avatar for brainbox

Hi I have an if statement within which i have to implement the redirection to another form or index.php, when i implement that it gives me an error that it already have the "Header", to solve this if i add the die(); it dies and does not call the next …

Member Avatar for deni
0
90

The End.