39,395 Topics

Member Avatar for
Member Avatar for pssubash

How to communicate Python from PHP? i want to pass some arguments from my php page to python and python script process the arguments and returns the result.how it possible

Member Avatar for pssubash
0
121
Member Avatar for akvlko

Dear Friends! I want to build a API in php/mysql for obtaining the data for a verified request The First Step when i create the Url for API by cURL its done but after that i wont able to do The Server Setup and Response XML Return Is there anyone …

Member Avatar for mschroeder
0
146
Member Avatar for stonest123

Hi, I'm trying to query a database to pull out all results from the database where the location and server responsible are selected from a form on a previous page which are then posted over. I can manage to post the selections from the form, but when it attempts to …

Member Avatar for stonest123
0
2K
Member Avatar for nyler01

i have a script that query the database for some information which include date field. my problem is i want the query to just show the date and the time not included.. here is the script that i am using.. btw.. i am using an ms access database for this …

Member Avatar for nonshatter
0
87
Member Avatar for tapsilog09
Member Avatar for aizel

how to check date expiration? check expire date in mysql database date------->status 10/27/2010->approve 10/28/2010->approve 10/26/2010->approve date now is 10/26/2010 so it will search from the table where date=datenow then update the status to finish

Member Avatar for aizel
0
143
Member Avatar for Craig2231

Having a problem with my login script, earlier, it was working fine, but now its just letting anybody log in, even if the records arent in the database :s i cant seem to think where it is going wrong [code=php] session_start(); mysql_connect("localhost","razorsh1","********"); mysql_select_db("razorsh1_page"); if(isset($_SESSION['loggedin'])) { echo("<center>Dude, youve already logged in, …

Member Avatar for vibhaJ
0
111
Member Avatar for h0neydip

Hi, I have this function in a class file Fileops.php which is suppose to read from a text file then validate a username and password from that text file then if they match will take me to Links.php when the function is called from index.php, but i am getting these …

Member Avatar for saiprem
0
103
Member Avatar for fsjal

Can someone tell me why these two yield totally different results ? [code=php] $key = 'abcdefgh'; echo encrypt('hello'); function encrypt($text) { $text = pkcs5_pad($text, mcrypt_get_block_size('rijndael-128', 'ecb')); return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $text, MCRYPT_MODE_ECB))); } [/code] VS. [code=php] echo encrypt('hello'); function encrypt($text) { $text = pkcs5_pad($text, mcrypt_get_block_size('rijndael-128', 'ecb')); return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, 'abcdefgh', $text, MCRYPT_MODE_ECB))); …

Member Avatar for fsjal
0
656
Member Avatar for jonow

I have written the title as “Script to Group Values” for lack of a better title. I want to have a MySQL database that receives value from a form on a webpage. For example, I have people signing up for an event. I want to create something (probably in PHP …

0
130
Member Avatar for terabyte

I'm trying to create a variable with multiple lines but for some reason the <<<_END operator isn't working this is how the code looks: [CODE] <?php $author = "Anon"; echo <<<_END First Lines Second Line. Third Line. - Written by $author. _END; ?> [/CODE] Why might it be? I'm using …

Member Avatar for terabyte
0
91
Member Avatar for aizel

here is the database [url]http://img214.imageshack.us/img214/3852/23405199.jpg[/url] here is the form [url]http://img254.imageshack.us/img254/3518/60904005.jpg[/url] if the search click i want the selected month in the combobox search from the database table under departure field month and it will fetch on the table.. for example: <--departure--> 09/10/2010 10/10/2010 10/11/2010 [code]<select name=\"month\"> <option value=\"01\">January</option> <option value=\"02\">February</option> …

Member Avatar for mschroeder
0
119
Member Avatar for mattyd

Hello. I have been following a great tutorial that I found regarding searching a database: Tutorial: [url]http://www.phpfreaks.com/tutorial/simple-sql-search[/url] When I used this and ran it from my server (doing a search of the database), I bookmarked the page; my question relates to the next step: When I return to the page …

Member Avatar for mattyd
0
121
Member Avatar for greatunknown

I am trying to let users enter various information onto my site and then let them export it into Word...I am able to get the exporting down fine and automatically open the Word Doc in Word, but Im not sure how to do formatting. Using html tags in the PHP …

Member Avatar for pbcomput
0
599
Member Avatar for bsewell

Greetings all, I'm trying to write a CMS for a photo gallery, and I worked out that the best way would be to upload the images to a directory and have a mysql table to store the relative location of the images for later use. I have 1 problem, which …

Member Avatar for pritaeas
0
351
Member Avatar for TySkby

So, not so much of a coding question but more of a development question. [B]Some background:[/B] I have finished writing a scheduling program (in part thanks to the folks at Daniweb) in PHP (using MySQL) for a small business that sells musical instruments, music lessons, and the like. The program …

Member Avatar for TySkby
0
229
Member Avatar for bouhbob

Hi, I used mysql_real_escape_string to insert a data with apostrophe, in the database, using php. This works. But when I want to select this data and display it in a form's field, it does not work. What happens is that the data before the apostrophe is displayed in the field, …

Member Avatar for vibhaJ
0
1K
Member Avatar for WaleedaaN

hello, this my code how i can do it [CODE]$word = "a,b"; echo $first; /// a echo $second; /// b [/CODE] thanks

Member Avatar for terabyte
0
203
Member Avatar for mybluehair

I am writing a script that uses curl to grab data from my web server. Unfortunately, thats only a one-way communication. What I would like to do is send a php file some info through curl, then grab the info that php returns. But I am not sure how to …

Member Avatar for fornandakishore
0
184
Member Avatar for 57Burst

The following function should add pdf's to the $dest folder but fails at Break2. I added the Breaks so I could see where the problem was. The function is called from a form that allows me to add up to 10 pdf's per property. The jpeg function which also allows …

0
52
Member Avatar for Barrett1
Member Avatar for Dartz654

How do I go about do something where like every 12 hours, the webpage will add 5 to a row in Mysql? Do i have to use like unix commands or something? :0

Member Avatar for terabyte
0
86
Member Avatar for znz

HI, guyz Wordrin if sum one could help! at the moment got code which allow user to input and display in result. but mean time wana allow user to delete current input data by providing delete button next to displayd data.......... plz could some one tell me how to,what commend …

Member Avatar for sops21
0
219
Member Avatar for astima

Okay, I am a serious newbie so I apologize if I use the wrong terminology. I originally created a forum in order to collect people's cell phone numbers. Now, I want to add a drop-down menu so I know which group they are in and if they do not select …

Member Avatar for TySkby
0
104
Member Avatar for sravi.pearl

haiii all, i have a php working code for dropdown list,i am unable to display that in a table,i am getting error if i write that code in <td> </td> i am able to include buttons...but why i am i unable to include dropdownlist? so can i place that code …

Member Avatar for TySkby
0
666
Member Avatar for lulemurfan

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Edit</title> </head> <body> <?php $con = mysql_connect("************"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("**************", $con); $1 = ($_POST['1']); $2 = ($_POST['2']); $3 = ($_POST['3']); $4 = ($_POST['4']); $5 = ($_POST['5']); $6 = ($_POST['6']); …

Member Avatar for lulemurfan
0
90
Member Avatar for an00p

I have developed a web application in PHP and I wan't to implement licencing system into it so that the application should stop functioning if the licence is not renewed. Can someone help me?

Member Avatar for chrishea
0
1K
Member Avatar for sravi.pearl

haiii all, I am new to php, i have a question regarding dropdownlist in php file. If i have a table with 3 columns and 3 rows ,in the last column i have to display dropdown list for each row. I am able to display dropdownlist under the table but …

Member Avatar for sudeepjd
0
68
Member Avatar for ruwanaru

[CODE] <?php $qty = $_post['qty']; $rate = $_post['rate']; $total = $rate * $qty; echo $total; ?> [/CODE] i want to print the float number in total but it gives rounded Number

Member Avatar for ruwanaru
0
120
Member Avatar for RossCode

I will be building a site soon that requires the use of CSV files zipped up on an ftp which I have never tried before. I will have to connect to an FTP server via PHP, collect a zip file, unpack the CSV file and then use the values in …

0
62
Member Avatar for facarroll

Hi everyone, I don't know whether this is a PHP or MySql problem, but I think it is the former. The following code queries the database correctly, (and before you ask, there are no duplicate database entries), but the output duplicates every row. e.g., hammer (jpg image) hammer hammer (jpg …

Member Avatar for facarroll
0
99
Member Avatar for sameeya007

in the $admission_id few numbers are available as array,i got those array numbers one by one by using explode function.after that i put those numbers one by one to a query using for loop.that i wanted to know the way i put into a query is correct. specially the variable …

Member Avatar for nonshatter
0
48
Member Avatar for eantz

Hi everyone, I have a project that need an API but still in progress. But, I have a problem with this API authentication. The authentication method I want to use is oAuth. But, unfortunately I don't have any acknowledgement about authentication. I've read many tutorial but I still don't know …

Member Avatar for Mouche
0
185
Member Avatar for sameeya007

$grade=$_POST["grade"]; $stream=$_POST["stream"]; $a=='A'; $query="delete * from class where grade_id='$grade' and stream='$stream' and class_name='$a'"; $result=mysql_query($query); if($stream==null)( [COLOR="Red"]$query1="insert into class values(null,'$a','$grade','null')";[/COLOR] $result=mysql_query($query1); }else( $query1="insert into class values(null,'$a','$grade','$stream')"; $result=mysql_query($query1); ) in this code runs .the code which color in red is occur error . please someone can tell me the reason for that?

Member Avatar for sameeya007
0
89
Member Avatar for nocode

Hi all, Please be gentle with me since I don't know code/databases at all. So, I can't login into my wordpress blog because of this: Warning: Cannot modify header information - headers already sent by (output started at /home/content/d/o/o/dooley078/html/wp-content/themes/thetheme/functions.php:717) in /home/content/d/o/o/blue078/html/wp-login.php on line 337 What I did was download the …

Member Avatar for sops21
0
85
Member Avatar for farukruet

Dear Sir, I have a PHP script that export CSV with arabic text, for example I download the CSV on the website then save to desktop of my computer and Open it on NOTEPAD... that works fine I could still see all the arabic text OK with no problem, but …

Member Avatar for jazzerman
0
3K
Member Avatar for Brosa

I am trying to retrieve a value from mysql and put it into an Area box with php and I have been having some trouble's I wouldn't know how to go about this I would really appriciate some help. So far I have just made the textarea and retrieve and …

Member Avatar for Brosa
0
108
Member Avatar for loligator

Hello all, I have a feeling this is easy to deal with (at least I hope so) but couldn't find much on google, probably because I'm not 100% sure how to word it. Here goes... We all know how there's different representations for apostrophes. There's the ’ character and then …

Member Avatar for sneldog
0
232
Member Avatar for mikeflash

Hey all, I have several cron jobs running but some of them take a lot of time to complete, since it requires fetching data from an external website and then updates my site's database. My hosting provider has a 120 second time limit for PHP scripts, which is too low …

Member Avatar for maba001
0
253
Member Avatar for mystique

Hi I"m attempting to edit my website in php platform but i have no programming knowledge. Could anyone tell me where i can download an FTP program such as WS FTP? Can i download this free or must i purchase it? I also also am not sure where to find …

Member Avatar for Zagga
0
204
Member Avatar for buggyboy

Hello everyone, I have a database it has 4 columns: id, name, description, cure. I want to be able to type in the name of something into the search bar and for it to show the the result below using ajax/jquery. in php it would be like, select * where …

Member Avatar for diafol
0
86
Member Avatar for sundeep_g

Hi guys...im very happy to interact with you all...I have a problem with my code..i would like to call the javascript value into php.. can any one help me plz.... :- this is my function var cell3 = row.insertCell(2); var element2 = document.createElement("input"); element2.type = "text"; element2.name="name"+rowCount; element2.value="name"+rowCount; cell3.appendChild(element2); .............................................................. …

Member Avatar for Airshow
0
283
Member Avatar for achinaseller
Member Avatar for phphit

Basically my table structure are as below. [B]Teams Table[/B] id int(11) team_name varchar(100) [B]schedule Table[/B] id int(11) team1 varchar(100) team2 varchar(100) Now, Basically I want to random 10 team list from table teams (field team_name). What I want to do here is that want to count the no. of matches …

Member Avatar for vibhaJ
0
68
Member Avatar for sakush100

[CODE]<script type="text/javascript"> function submitmyform(){ { var docx = document.getElementById(formID) document.docx.submit(); setTimeout(function(){self.close();}, 10); }} </script> <?php $xyz=20; $stackid=0; while($stackid<$xyz){ echo'<div align="right"> <form id="'.$stackid.'" name="'.$stackid.'" method="POST" action="updates/comment.php"> <table bgcolor="#E4EFF8" border="0" width="90%" style="border-collapse: collapse" id="table1"><tr> <td align="left"></font></td> <td align="right"><font size="2" face="Verdana"><a href="#div'.$stackid.'" onclick="toggle('.$stackid.')">Comment</a> | Rate&nbsp;</font></td></tr> <tr><td colspan="2" align="center" bgcolor="#E4EFF8"> <textarea rows="1" name="S1" cols="45"></textarea></td></tr> …

Member Avatar for sudeepjd
0
138
Member Avatar for JustmeVSI

Hy guys how can I go through each column of a result returned form the database. In other words do this: [CODE] $command = "SELECT * FROM Persons"; $result = mysql_query($command); while($row = mysql_fettch_array($result)) { [COLOR="Red"][INDENT]foreach($column in $row) {[/COLOR] [INDENT]if($column!=null) { ... }[/INDENT] [COLOR="Red"]}[/INDENT][/COLOR] } [/CODE] How to do the …

Member Avatar for JustmeVSI
0
75
Member Avatar for iamfrank

Hi everyone I know there already is a thread on that one, but not enough for me to make it work. So I know I can do : $command = "mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]"; then system($command); the thing is, I'm on a web server (hosting company) …

Member Avatar for guyinpv
0
139
Member Avatar for pamdooley

I have the following code:[CODE] if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO inventory_software_request (Software, Name, NISD, Room) VALUES (%s, %s, %s, %s)", GetSQLValueString $_POST['software[]'], "text"), GetSQLValueString($_POST['name'], "text"), GetSQLValueString($_POST['nisd'], "text"), GetSQLValueString($_POST['room'], "text")); [/CODE] to send data to a MySQL database. the form includes a list of software …

Member Avatar for hielo
0
189
Member Avatar for SunnySideUp

Hi, How do I go about creating a XML document from information requested from multiple tables ? Do I need to split the queries up or can I just run it as one complete query ? Then how do I set it up so that information is output into an …

Member Avatar for digital-ether
0
98
Member Avatar for nurul_208

hye guys.. i've got a problem on inserting the data from mysql database into the textbox in php.. i dont get any error reply..but im still cant retrieve the data from the mysql database into text box in php.. below are the print screen and my sourcecode: this is the …

Member Avatar for nurul_208
0
763

The End.