39,323 Topics

Member Avatar for
Member Avatar for Smudly

I want to create a page that contains all sorts of Variables with values such as Prices, Name of Site, Rates, etc. I want to create an admin page, that allows the admin to easily edit the values inside this php file. How does this work without the variables being …

Member Avatar for rch1231
0
62
Member Avatar for Dartz654

When a user logs in, it redirects them to a page that prints their account name, thus showing that they are logged in. But if they leave the page and come back they get logged out, and if they refresh the page they get logged out. I don't know why …

Member Avatar for Dartz654
-1
144
Member Avatar for valonesal

Ok so I am working on setting up a zencart site. We purchased a slide show from flash den and we cannot figure out how to get it to show in zencart. We have tried all of the normal stuff and it doesnt seem to work. When we create a …

0
61
Member Avatar for whiteyoh

Hi All, im trying to find a way of checking a string to see if it contains a word held in an array. If it is in the array i would like it to be replaced with cencored. the code if been working with is [code] <?php $myString = "Hello, …

Member Avatar for blocblue
0
89
Member Avatar for debow

I have a dynamic drop down that allows me to select an item. That item is posted to a new page that I run a query against to build/populate my form that I'm wanting to update a column in. However the issue is after I hit my submit button it …

Member Avatar for debow
0
158
Member Avatar for jidesbey

Hello, I have build an html interface with a text area. I want a script that would let me search for text pasted there based on a database. how do I go about it

Member Avatar for diafol
0
46
Member Avatar for Onisutra

I currently have 12 files I've designed for database connect. I have 1 interface, 1 main class & 11 sub classes. File List: iDatabase.php Database.php mySQL_connect.php mySQL_close.php mySQL_error.php mySQL_errno.php mySQL_escape.php mySQL_query.php mySQL_array.php mySQL_row.php mySQL_assoc.php mySQL_num.php mySQL_id.php While I've gotten as far as creating all the class code & the interface, …

Member Avatar for diafol
0
134
Member Avatar for levsha

Here is a problem. I have an HTML form with several fields in it. One of the fields - 'Upload file'. When I upload a file, everything works properly. But when I choose to submit the form without a file, it gives me the error message: "There was an error …

Member Avatar for levsha
0
165
Member Avatar for bimalnayak

Hi I have a problem while i am trying to add to the database i can't find where is the bug is...Pls help me .... [CODE] if($action=="insert") { $acknowledgement_no=$_POST['acknowledgement_no']; $customer_id=$_POST['customer_id']; $date_commencement=$_POST['date_commencement']; $Plan_term=$_POST['Plan_term']; $ledger_no=$_POST['ledger_no']; $customer_name=$_POST['customer_name']; $age=$_POST['age']; $cur_address=$_POST['cur_address']; $nominee_name=$_POST['nominee_name']; $nominee_age=$_POST['nominee_age']; $relation_applicant=$_POST['relation_applicant']; $Place=$_POST['Place']; $agent_name=$_POST['agent_name']; $agent_code=$_POST['agent_code']; $amount_invested=$_POST['amount_invested']; $received_rupees=$_POST['received_rupees']; $query5="INSERT INTO bond_print SET "; $query5.="acknowledgement_no='$acknowledgement_no',"; …

Member Avatar for digital-ether
0
110
Member Avatar for vizz

[CODE]<?php // Inbox // Display Messages // mail.host.com $host = "mail.com"; // username $username = "vizz"; $password = "vizz"; // make connection $inbox = @imap_open ("{". $host . "/pop3:110}",$username, $password) or header("Could not connect. Somethings wrong !"); $total = imap_num_msg($inbox); ?> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <!--check all messages--> <script …

Member Avatar for kesav
0
93
Member Avatar for nick3592

hi i was wondering how i can get a certain part of a url in php. For example a url like [url]http://site.com/randomfile[/url]. what i want is only the site.com part. How can i do this?

Member Avatar for nick3592
0
438
Member Avatar for k2k

my login script checks for login name and password in the database, if true then set value for a session variable for example $_SESSION['loginName'] = $login --> this is to identify who got logged in. however, if i have more than one user logged in to the system, then $_SESSION['loginName'] …

Member Avatar for chrishea
0
106
Member Avatar for design.eng

I have been looking for a tutorial to learn populating drop menu or list data from a mySQL. I have found this thread from a website. But it seems something wrong. I get this error [CODE]0 and !is_numeric($cat)){ // to check if $cat is numeric data or not. echo "Data …

Member Avatar for design.eng
0
1K
Member Avatar for 1x4n

hi all i've been trying to find a php function for this but couldn't find any hope anyone here can help i want to show only a part of string like SELECT LEFT (0,5)... in SQL but i want to do it in php ie: [CODE] $string = "hello world"; …

Member Avatar for 1x4n
0
91
Member Avatar for keval_hack

Hi, I want the name of all University in india. please any one can give me name of site where can i get the list of all indian university. -keval

Member Avatar for Ankit_Parmar
0
77
Member Avatar for phphit

For some reason, Javascript I am trying to execute with php is not working. Below is my code. [CODE] <script type="text/javascript"> function GetIst() { var d = new Date() var gmtHours = -d.getTimezoneOffset(); document.write(+ gmtHours); } </script> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); …

Member Avatar for vibhaJ
0
745
Member Avatar for Tracie-marie

Hi all, I'm a self taught at PHP so I've probably made a really silly mistake but I can't see any issue with this code but I keep getting the following message: Parse error: syntax error, unexpected T_VARIABLE in blah blah on line 816. I know it will be a …

Member Avatar for Tracie-marie
0
83
Member Avatar for demo80

I have tutorials for php but when i go through those tutorials php i have no problem but when it comes to real action things doesnt work please help. how can i do to be able to work well.

Member Avatar for muralibobby2015
0
46
Member Avatar for nick3592

hi i would like to know what steps you guys take to avoid php hacks such as sql injection, xss hacks.

Member Avatar for vibhaJ
0
66
Member Avatar for bimalnayak

Hi i am working on a project that is like a MLM software , but i cant find the algorithm to do that , can any one please help me regarding that so that i can do it .

0
59
Member Avatar for danny_mccaslin

Hi. I'm a new guy, and I'm having trouble with inserting into a database table. I'm designing a backend for a the website of a church camp that my wife is involved in. They have member churches, and I want her to be able to input data into the database …

Member Avatar for danny_mccaslin
1
198
Member Avatar for saravanados

Hello all I am a newone for PHP and I write a basic code in php saved in my pc but it is not working .It asks a dialogbox like save or open like this .I have no server .How do iuse my pc as my server .

Member Avatar for Ankit_Parmar
0
92
Member Avatar for wiredtec

I'm looking for a beta form. what i want it to do is auto redirect user from a main site to the enter beta key form. If they don't have a key , a link to a get beta key signup form that only require a name ane email. This …

Member Avatar for vibhaJ
0
316
Member Avatar for nick3592

Hi how can i put data selected from a mysql table into a array. I am doing this so it can be put into a select form.

Member Avatar for vibhaJ
0
115
Member Avatar for peck3277

Hey guys, I'm trying to make a check to see if a file to be uploaded was added. I have tried the below and a few variations. I imagine I'm having problems because $_FILES is a global variable and is therefore always set. But I still can't figure out what …

Member Avatar for Zagga
0
108
Member Avatar for idane

I have a table on a page that displays info from a database and everything is working fine but I want it so if the user entered data from another page to a certain field then the row on my data display table will turn red. Right now I have …

Member Avatar for idane
0
878
Member Avatar for turpentyne

I've got some code working finally that puts the checked items from two different lists, into their respective tables - all within one form. Everything works fine except... On the second set of checkboxes, it's putting the final checked item from the array into the database twice. some kinda loop …

Member Avatar for turpentyne
0
138
Member Avatar for musicofthehart

I have a field that looks like SKU: [url]www.cool.com[/url] the code that spits that out is [CODE]<tr> <td><b>SKU:</b></td> <td><?php echo $product_info['sku']; ?></td> </tr>[/CODE] the [url]www.cool.com[/url] is what I entered in for sku: but what comes out on the page is not a clickable link. What I would like to have …

Member Avatar for musicofthehart
0
5K
Member Avatar for levsha

I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] What could it be? Thank …

Member Avatar for levsha
0
63
Member Avatar for levsha

I use SwiftMailer in my PHP script to send emails upon HTML form submission. On the test server it all works fine. On the production server (different host) it gives me this error message: [QUOTE]Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18[/QUOTE] The two machines use different …

Member Avatar for levsha
0
106

The End.