39,402 Topics

Member Avatar for
Member Avatar for Draucia

I know this is php but it has MYSQL in it and I didn't really know where to post it. :$ The problem is, I have a check that checks if the username and password inputted matches the database's username and password. [CODE] if ($username==$dbusername&&$password=$dbpassword) { echo "Welcome, <b>$username</b>."; }else{ …

Member Avatar for Draucia
0
160
Member Avatar for azegurb

Hi all, I have taken from net MVC tutorial, but it is in German language. Can anyone explain it me why there were joined two superglobal? What is a purpose? its below [CODE]<?php // unsere Klassen einbinden include('classes/controller.php'); include('classes/model.php'); include('classes/view.php'); // $_GET und $_POST zusammenfasen, $_COOKIE interessiert uns nicht. $request …

Member Avatar for diafol
0
3K
Member Avatar for ddellostritto

Hi All - I am creating a registration system (for events) and want to send the user a confirmation mail along with a list of the people he registered to attend the event. In one point of the process they indicate how many people they want to register, I use …

Member Avatar for ddellostritto
0
99
Member Avatar for cliffcc

I use the Xampp software. My computer is connected to voucher. I don't know how to send the email out on localhost! Any software is needed ? How to change the file "php.ini"?

Member Avatar for Smeagel13
0
136
Member Avatar for sparkles_links

I have been using php for my design, Buy i wouldn't, creating dymanic url is a problem for me. Now I need it and urgently. Please guy I need your help. Example: [url]http://www.daniweb.com/forums/newthread.php?do=newthread&f=17[/url]

Member Avatar for Biiim
0
125
Member Avatar for whiteyoh

Hi All, Im attempting to set up a cron job using CPANEL. I can get the location and timing correct, but the script wont run, saying it cant find files i have included. The file itself runs perfectly fine, with no error both onscreen and in the error log. Any …

Member Avatar for whiteyoh
0
75
Member Avatar for skraps

I was wondering on how many people would find this use full and would use it if it was in a more mature stage. [url]http://code.google.com/p/wordpress-aes/[/url] I have been working on integrating AES support into wordpress. I have mentioned it to the wp-hackers group and alot of them just don't see …

0
81
Member Avatar for gavinpit

Hi I am getting very frustrated with my php code I am relitivaly new to php and need a little help displaying multiple results from mysql within the one page and it wont do it!! what am I missing?? I am displaying the results with this code but feel I …

Member Avatar for Biiim
0
195
Member Avatar for trektrak

I would love to know, if it's possible to get a specific data from a specific mysql table.. Let say on the table itself has a Varchar ... mixed of words and floats.. and then ... I want to pull only the float from the table using php... can it …

Member Avatar for trektrak
0
145
Member Avatar for aaloo

i am getting this error Notice: Undefined index: firstName in C:\xampp\htdocs\flasblog\test.php on line 3 Notice: Undefined index: lastName in C:\xampp\htdocs\flasblog\test.php on line 3 here is my php code [code] <?php include_once"scripts/connect.php"; ?> <?php $text=$_POST['firstName']." ".$_POST['lastName']; $to="anubhavjhalani09@gmail.com"; $subject="Message from php"; //data insert into database $sql="INSERT INTO entries (contents) VALUES ('$text')"; echo …

Member Avatar for Biiim
0
3K
Member Avatar for abhi10kumar

How I can send email from localhost. I am using XAMPP in windows 7; and I want to send on GMail

Member Avatar for dean8710
0
84
Member Avatar for divyakrishnan
Member Avatar for dean8710
0
95
Member Avatar for cacofonix

Hi all, I want to alert the user that his session time is expired . There are two options after session expired 1, redirect user to login page 2, ask user to extend their session time Guys , i never implement this feature in any of my project , can …

Member Avatar for broj1
0
130
Member Avatar for aecha

Hi all.. I am doing the display board for my company. My problem is I don't have any idea how to count every minutes that given. Like every 5 minutes it count 1 then 5 minutes later it count 2 until the certain time. Can anyone give me some hint …

Member Avatar for Biiim
0
277
Member Avatar for carlbrooks

I have a table which has the number of rows depended on what the number is in the spinner. This does work e.g If I enter 25 in spinner it comes up with 25 rows, if I enter 7 in spinner comes with 7 rows. So my problem is this: …

Member Avatar for peter_budo
-1
56
Member Avatar for rayidi

Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax …

Member Avatar for rayidi
0
549
Member Avatar for rayidi

Dear Friends, [CODE]<a href="javascript:void(0)" onclick="javascript:chatWith('babydoe')">Chat With Baby Doe</a>[/CODE] Please convert this into regular php expression please. Thanks in advance

Member Avatar for pritaeas
0
131
Member Avatar for sharathg.satya

hi all i am new to php and i am using wampserver to execute programs of php I want to use mysql to retrieve data from a php program but i am unable to use php from wamp can anyone help me please when i am trying to open mysql …

Member Avatar for pritaeas
0
164
Member Avatar for eng.naguib

when i used unlike function to delete file this error Occurs : Warning: unlink() [function.unlink]: Permission denied in D:\xampp\htdocs\acc\admin\mag.php on line 18 what i can do?

Member Avatar for urtrivedi
0
165
Member Avatar for pallen

I am adding a page to my site that allows doctors to send me referrals. Some of the data will be highly sensitive, so I need to be sure that it is handled as securely as possible. The data doesn't get stored in a database. It is simply emailed directly …

Member Avatar for urtrivedi
0
138
Member Avatar for naraza

hello! i use this command and run it on localhost in my pc <?php exec('mspaint "C:\path\to\image.jpg"'); ?> and this $cme='notepad.exe'; passthru($cme);

Member Avatar for naraza
0
101
Member Avatar for shamsidah

Hi everyone. I'm new in php and need someone to help my problem. I have one table name [B]data_transaction[/B], from this table i'm want to search data between two dates that user key in. Here my code, $sum = "SELECT * , SUM(trans_charges) FROM data_transaction WHERE Location = 'HA1' AND …

Member Avatar for suresh ma
0
127
Member Avatar for Dante2

Ok, I am walking my way through an instructional php book and basically going over the basics again. After I finished doing the script the way the book said to do it, I kept getting a header error saying that the headers have already been submitted. The book had my …

Member Avatar for Dante2
0
202
Member Avatar for dean8710

I have upload files over the live domain. and some files are process files. how I can limit the permission of the files so user cannot type that file's name on the url address bar? example of file permission code, 0755, 0644 Can someone gives me the list, and the …

Member Avatar for dean8710
0
192
Member Avatar for jfunchio

I have a form and php code to register a user. It's not complete, but right now I'm trying to get the insert query to work and put the data entered from the form into the sqlite database. I've tried entering the data by puting the form variables in the …

0
82
Member Avatar for brandonpturner

Alright, let me start by saying that I know zero PHP or SQL code, myself. I have a SQL guy creating tables, and I've been using what I've found on W3C Schools. So far it's been ok, but I have a problem I need solved. I have created an HTML …

Member Avatar for brandonpturner
0
938
Member Avatar for Behseini

Hi every one, Can you please help me to figure out how I can use PHP to print out contents of a div element as pdf file? I would like to create a button which let page viewers to save a specific div(let's say students Mark in a html table …

Member Avatar for broj1
0
347
Member Avatar for tgr0ss83

I have an array that looks like this: [CODE]array 0 => array 'Time Stamp' => string '11/22/2011 00:05:00' (length=19) 'Name' => string 'CAPITL' (length=6) 'PTID' => string '61757' (length=5) 'LBMP ($/MWHr)' => string '48.24' (length=5) 'Marginal Cost Losses ($/MWHr)' => string '1.13' (length=4) 'Marginal Cost Congestion ($/MWHr)' => string '0.00' …

Member Avatar for cereal
0
95
Member Avatar for martin11ph

Hi all. I have this problem within the form. I take data from a DB and pass it on using POST. Considering that I fetched array correctly, the following code has the following output: echo $value[0]; //echoes [B]Hello World[/B] echo "<input type=hidden name=value value=".$value[0].">"; //when echoed in the form action …

Member Avatar for martin11ph
0
141
Member Avatar for BilalAKhan

Hi, In my website, Blog is a small portion. I have managed to make and insert the blog. In manage blog area I am giving a user this a authority to manage their written blogs. At this point I am getting a problem. When I am logged as 'A' (A …

Member Avatar for simplypixie
0
81
Member Avatar for btvbill

I have a PHP page created that pulls from a database and and displays records with a repeat region. I am experimenting with jQuery to move the table rows around, which seems to work. Now, I need to be able to edit the table fields within the page as opposed …

Member Avatar for pritaeas
0
124
Member Avatar for PF2G

Hello, I'm doing a website about a music school, in this moment i'm working the list of instruments: [CODE] <?php $username = "root"; $password = ""; $hostname = "localhost"; $database = "esola_musica"; $connect = mysql_connect($hostname, $username, $password) or die("Erro na ligação à BD."); mysql_select_db($database,$connect) or die(mysql_error()); $sql_imagem = "SELECT cod_curso, …

Member Avatar for PF2G
0
162
Member Avatar for rotten69

Hi php geeks, I'm just looking for PHP exercise online. If anyone knows websites that offer hands-on PHP exercise, Please send me a link or something that redirects me to useful exercises. Your help will be appreciated. Cheers,

Member Avatar for rotten69
0
213
Member Avatar for shamsidah

hye everyone..i just want to share my problem using php..:$ i have data for field [B]total[/B] i.e total = (2,3,4,5,62,45,67,89,10,23,11,23,98,12) from all data i want 5 max values only. please help me to meet the solution.:)

Member Avatar for rotten69
0
105
Member Avatar for shamsidah

[U]Table's name: grandTotal[/U] (have two fields :defect_code and total) defect_code total LM 23 FM 15 DF 5 How this data can be an array like this array("LM" >=23, "FM">=15,"DF">=5) using query? please help me..:S

Member Avatar for shamsidah
0
121
Member Avatar for vedro-compota

hi there) guys, please tell me - is it any way to make associative array in php without assignment values to the arrays elements? in my situation i need to read indexes names from txt-file -so i can't immediatly give them values.....what will you advice in this situation? Is there …

Member Avatar for cereal
0
96
Member Avatar for nfaezah

i try to run this code but it returned this error : Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\removeproducts.php on line 31 could u please help me........ <html> <head> <title>removeproducts</title> <meta http.equiv="Content-Type" content="text/html; charset=iso-8859-5"> </head> <body bgcolor="#FFFFFF" text="#000000"> <p>&nbsp;</p> <table width="37%" border="0" align="center" cellpadding="0" cellspacing="0" height="66"> <tr> <td bgcolor="#000000" …

Member Avatar for pritaeas
0
77
Member Avatar for rpv_sen

Hi friends i am having n number check box, if i checked one check box it has to select all the similar values of the check box and the other check box should be disable. can any one help me to solve the issue i am having a java script …

Member Avatar for rpv_sen
0
202
Member Avatar for skunkmedia

Hello all, First and foremost I would like to thank anyone who will end up contributing to this thread. I'm relatively new to PHP/MySQL and did a site migration for a client to a different server. The website was working perfectly fine before, however now I am getting these errors. …

Member Avatar for simplypixie
0
304
Member Avatar for jithusdani

hi freinds,, In my application i have to send email to a specified email, I have done this and its working fine , Now I want to send some word attachment in the same email id. The word attachment will select the user through the application as browse option just …

Member Avatar for dean8710
0
167
Member Avatar for aaloo

this is my as3 code which is sending variables to php [code] var myData:URLVariables = new URLVariables(); myData.firstName = "Kirill"; myData.lastName = "Poletaev"; var myRequest:URLRequest = new URLRequest("test.php"); myRequest.data = myData; myRequest.method = URLRequestMethod.POST; var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.VARIABLES; try { loader.load(myRequest); } catch (error:Error) { trace('Error: …

Member Avatar for aaloo
1
1K
Member Avatar for jfunchio

I have the registration form and everything seems to work good except when I try to insert the data into the table from the query in the php code. It will submit, but when i check the database the data is not in there. I tried multiple ways, but none …

Member Avatar for jfunchio
0
882
Member Avatar for narekm

Hello there. I am sooo despared since I cant make this work here is what I have in my logged_in.php file. <html> <?php echo "Welcome: "."<b>".$_SESSION["username"]."<b/>"; ?> <head> <div id="ajax"></div> <script type="text/javascript"> function createXMLHttpRequest(){ var XMLHttpRequestObject=false; if(window.XMLHttpRequest) { XMLHttpRequestObject=new XMLHttpRequest(); return XMLHttpRequestObject; } // else{ if(window.ActiveXObject) { XMLHttpRequestObject=ActiveXObject("Microsoft.XMLHTTP"); return XMLHttpRequestObject; …

Member Avatar for jmichae3
0
247
Member Avatar for ebanbury

Hi I have a php page, in which I would like users to be able to 'renew' a product by clicking on a button 'renew' There are no form fields to post though, as information is just shown to the user via a recordset. So basically they see their product …

Member Avatar for jmichae3
0
135
Member Avatar for JamesPublic

I'm trying to use the Fb PHP SDK to execute different Js document.getElementById innerHTML functions, depending on whether the user is logged in to Fb or not. For some reason the function won't work for me. I know my API connection is successful, and Javascript can be inserted here, as …

Member Avatar for jmichae3
0
218
Member Avatar for nizam27391

Hi. Anybody dealt with cakephp? I have this problems. The delete function is not functioning. Its not deleting the things I want to delete from the database. Heres my code./ [CODE] function delete($id = NULL){ $this->Application->delete($id); //-->this cause problems $this->Session->setFlash("Application " . $id . " was deleted"); $this->redirect(array('action' => 'index')); …

Member Avatar for jmichae3
0
243
Member Avatar for Ingska

Hi! I have some forms that i have used to send to my e-mail using the php mail() function. I have had som issues with it because the mailservice i am using is not on the same server as the domain, so now i am forced to change the way …

Member Avatar for NameSet
0
230
Member Avatar for rse

Hello, How can I encrypt and decrypt a session variable using salt, what do I need to set in the header? I tried this but got error about unknow function mcrypt_ecrypt. Any ideas to help. [code=php] function encrypt($text, $SALT=null) { $SALT=SECURE_KEY; return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, SALT, $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)))); } …

Member Avatar for rse
0
50
Member Avatar for siva28

i need a solution... create a web page using send mail option. so mail send to mail id as well as to mobile. also i login through mobile. when i enter using mobile automatically enter my area of web page. is this possible? for example..im client of one website. using …

Member Avatar for jmichae3
0
205
Member Avatar for cmps

Hello, I want to know if I am doing a list of students, which are executed from database (mysql), does the number of data influence in the speed of the page load? if yes: What to do ? And for how much data should I start to think for a …

Member Avatar for cmps
0
130

The End.