39,393 Topics

Member Avatar for
Member Avatar for jzimmerman

hello all, I am looking for some help doing multiple queries. I have two tables that are not related that I need to query on on PHP page. The page is for people to register for an event. The first table has a selection of dates for people to arrive …

Member Avatar for ShawnCplus
0
76
Member Avatar for shea279

OK, I put together some sample code from Paypal's api, that should complete a payment and notify me with IPN. For some reason it is not working. I tested it with sandbox.paypal.com's IPN tester, and that worked. (if it works, it is supposed to write all post variables to ipn.html) …

0
99
Member Avatar for veledrom

Hi, I cannot find the solution for this example. It is to do with Static declerations. Help please. Error : "Fatal error: Non-static method ExecuteSql::executeSql() cannot be called statically, assuming $this from incompatible context " Thanks [code] <?php class DBconnection { private $host="localhost"; private $user="root"; private $username=null; private $password=null; private …

Member Avatar for veledrom
0
371
Member Avatar for odysea

is there any way to get the id you are going to insert the data in before you post the data, like get the last id and do a +1 to it or something pleaseee?

Member Avatar for odysea
0
155
Member Avatar for Aamit

I have 100 items and 10 vendors. Vendors bid on that items like Vendor1 Bid [B]Item quantity price Total Min-require[/B] Item1 10 10 100 200 Item2 15 20 300 Item3 17 17 289 Item100 10 10 100 Vendor2 Bid [B]Item quantity price Total Min-require[/B] Item1 10 12 120 300 Item2 …

0
62
Member Avatar for odysea

hi guys any idea how i can insert a whole html code in $content please ? basically i want to paste my html template after $content ='whole html code goes here' any ideas ? thanks in advance [CODE]<? if(isset($_POST['save'])) { $pagename = $_POST['pagename']; $content = 'test'; $filename = "cms/pages/$pagename.php"; $filehandle …

Member Avatar for odysea
0
238
Member Avatar for justted

Hello, I have been looking at tutorials and pages on the net regarding cookies and sessions. Originally I thought my script was using both but then noticed it doesnt. I wanted to know if there is anything wrong with this code as my new server doesnt seem to like my …

Member Avatar for somedude3488
0
749
Member Avatar for nathenastle

Hi all, while sending newsletter to more than one people iam not getting message,if message is showed and the error gives the following please give me suggetions.... This is a multi-part message in MIME format. --==Multipart_Boundary_x41a1c62a6e13d8689239009589f2351cx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit --==Multipart_Boundary_x41a1c62a6e13d8689239009589f2351cx Content-Type: image/pjpeg; name="2 air.jpg" Content-Disposition: attachment; Content-Transfer-Encoding: base64 …

Member Avatar for cwarn23
0
141
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
57
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
162
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
112
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
261
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
57
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
119
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
151
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
78
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
107
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
42
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
155
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
178
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
73
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
101
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
110
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
197
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
82
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
201
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
513
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
210
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
94

The End.