39,323 Topics

Member Avatar for
Member Avatar for ranyapalanivel

hi, i ll create a session for a program and save the login time. how can i give the session expire time and where can i give it. Thanks

Member Avatar for cwarn23
0
56
Member Avatar for san_cash

Hi!, I am trying to update record but an error is coming. Can any one help. [B]error is - mysql_numrows(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\xampp\Test\Report\Despatch\update.php on line 10[/B] [B]here is the script[/B] <? $id=$_GET['id']; $username="root"; $password="mysql"; $database="service"; mysql_connect(localhost,$username,$password); $query = "SELECT * FROM contacts …

Member Avatar for san_cash
0
160
Member Avatar for jondoughty

Hello, I am relatively new to PHP and need some help parsing a file. I was able to use explode to parse the file at the | delimiter , however I cannot figure out how to parse the file at two distinct delimiters. The file will need to be parsed …

Member Avatar for jondoughty
0
110
Member Avatar for theimben

I need something to read all files in a directory and all files in child directories and any directories below this. Could someone provide a snippet for me. Thanks :)

Member Avatar for kireol
0
260
Member Avatar for Temax

Hi I'm working with php in my project at school. Now I have a problem, it's a system where I want the administrator to chose a logo from his computer and submit it. Then show it when registed persons login. I'm using Mysql - and I want load images in …

Member Avatar for kireol
0
56
Member Avatar for coolmind259

Hi Guys, I have a problem in uploading images on the server. I have tried on my localhost and its works fine, but when I upload on the server then file uploading doesn't work fine,file is not saving in the sarabase as well. Please help me in this , thank …

Member Avatar for eriksank
0
118
Member Avatar for xmaddness

I am trying to do a simple MySQL query using my db class, but for some reason I am having issues with getting the query through using my db class. If I hard code the db call bypassing the class, it works fine. Here is the class: [CODE=php]<?php //////////////////////////////////////////////////////////////////////////////////////// // …

Member Avatar for xmaddness
0
147
Member Avatar for redburn

[B]I am trying to insert a new record into a mysql database and get the following error:[/B] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '30, 60, 90, DayCreated) VALUES ( 'Rush Shirt', …

Member Avatar for nav33n
0
77
Member Avatar for Abhilash Cheruk

<?php include 'dbconnect.php'; $query="select * from pnmsg;"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $msgs=$row[0]; } echo $msg; include 'dbclose.php'; ?> THis is my code and am working in my local machine it give the same error Anybody help . I could not find any mistake in my code

Member Avatar for nav33n
0
105
Member Avatar for joda9999

Hi Have the following problem Effects in C # (Visual Studio 2008) A class library written in PHP would like to take this call. Did it with $ printer = new COM ( "comPrinterTest. UserControl1"); Try not to work. The dll is in the directory where the php page is …

0
41
Member Avatar for justted

Hiya, I am still developing my website and just wanted to ask whether I am on the right track to ensuring my website coding, database connection, etc is safe. My public directory obviously has the main pages in which the members will visit. For example .... log_in.php is located in …

Member Avatar for justted
0
152
Member Avatar for jakesee

Hi, I am setting up a cron using php. I have a file which I want to update by doing file_put_contents() on it via cron and via web browser (manual). everything via web brower works fine, but cron gives a "permission denied". I am overwriting the file each time it …

Member Avatar for jakesee
0
173
Member Avatar for scorpionz

Hi this is Scorpionz... first of all Hi to everyone. I have a drupal 6 install in my system, that i am using with Xampp Cross Platform. Now the issue raised here is that: when I run this path [url]http://localhost/drupal-test/[/url] It works fine.... Now if i run this [url]http://localhost/drupal-test/test[/url] [url]http://localhost/drupal-test/anything[/url] …

0
72
Member Avatar for 3DProf4online

Could you please help realize the procedure of sending attached files in php. If it is possible, please, provide me with ready code examples. Thanks in advance!

Member Avatar for AyuBan
0
1K
Member Avatar for justted

Dear members, I am after some help with a script I am trying to write/use! I am currently re-designing a website for an animal charity for which they would like to add a section in the members area where people can upload their own photos of their animals/pets. I have …

Member Avatar for balamca
0
99
Member Avatar for m-hrt

i have 4 input box of credit card number and 2 boxes of credit card expire date month and year and one for the card holder name i have some code but is it ok or i have to do some thing else [CODE=LANGUAGE]<?php $connection = mysql_connect("localhost","root","password") or die("error connect"); …

Member Avatar for m-hrt
0
106
Member Avatar for Tonkz

Anyone knows what I'm doing wrong here? I am getting supplied argument is not a valid MySQL result resource in line 34 [CODE=php]<?php //Connect to database server $conn=mysql_connect("mywebsite", "user", "pass"); if (!$conn) { die('Could not connect: ' . mysql_error()); } mysql_select_db("data", $conn); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar for Tonkz
0
194
Member Avatar for Concentus

When I use [code]<?php include("header.shtml"); ?>[/code] to display the header for my website files, I get a gap added above the header when I view it in internet explorer 7 and 8 (not in firefox v2). Some type of character that causes a linefeed is added at run time. I'm …

Member Avatar for itisnot_me
0
81
Member Avatar for genieuk

Hi, could someone tell me what the correct syntax is to check is a user exists in my database. I got a login page and when user enters username and password i need it to check if they exist obviously in database and if so re-direct them to the page …

Member Avatar for genieuk
0
200
Member Avatar for Noraini

I success doing validation form before submit...the problem is I can't appear alert box for success submitted after validation and go to another page... When I doing alert box for success submitted (it's success)....but the alert box for validation does not working

Member Avatar for ShawnCplus
0
506
Member Avatar for Killer_Typo

[B]Intro[/B] OK, there's going to be a lot here, but it's just something that I built as my own crapped down version of PHPmyAdmin. I know it's not great. but that's not the point ;) [B]Getting started[/B] db_management: [PHP] <html> <body> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top"> …

Member Avatar for pansylea
0
206
Member Avatar for Aamit

Hi, I have no1 to no30 product prices. I want to calculate combination for 30 product prices Suppose I have 30 different numbers.. I want to calculate their sum by using combination. But combination [COLOR="Red"]should not repleted[/COLOR] i.e. E.g for 4 numbers... [ 10 20 30 40] I want to …

Member Avatar for rush1
0
92
Member Avatar for NaveenRahul

My problem is like i created a login page which will do the function i have set a menus when i logged in i do all the function except when i use the nenu button

0
46
Member Avatar for gagan22

Hi everyone, I want to make a Discussions Forums Module in my website using PHP Code where i want to make a community for persons in which registered persons that know that by visiting our web site and “talking” to other people they will find answers they need. How i …

Member Avatar for gagan22
0
126
Member Avatar for mintrax

I want to create a conditional row statement when filling a table. Some of the data will require 2 table rows for each record if a particular field has data in it. Can anyone assist or point me in the right direction. Please keep it simple...I'm no php expert. Any …

0
37
Member Avatar for sarithak

Hi frnds... i am new to ecommerce projects..i dont know any thing about ecommerce..now i am going to do a ecommerce project. how can i need to follow? plz give me some suggestions..where can i get material regarding this (from scratch)....refer some good tutorials Thanks Saritha

0
65
Member Avatar for maddogsprofiles

I can not get my site to connect to its database properly, I have narrowed it down to two files (attached) and I do not know what is wrong with them. I think it is the files, I have looked over the db a few times and it seems fine. …

Member Avatar for maddogsprofiles
0
96
Member Avatar for Siberian

I want to disguise a URL and [B]only temporary[/B]. I've been informed PHP command that could be used but I was unclear about the details and I don't want to use frames because the address could still be found if desired. For example if I tell you to go to …

Member Avatar for chrishea
0
157
Member Avatar for brandguru

Hey everyone I've made this website and want to use PHP to allow users to register and login. I've created a database and connected to it, i've also created the table to store data from the registration page. I've tested it and PHP for the registration page seems to be …

Member Avatar for brandguru
0
113
Member Avatar for genieuk

Hello, I am having some trouble with my registration form. For some reason when i launch my registration for wheter it be on localhost or webhost nothing is displaying on the page. I get no errors or anything and i cannot detect what is wrong with the script i made. …

Member Avatar for genieuk
0
134

The End.