39,316 Topics

Member Avatar for
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
193
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
504
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
205
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
Member Avatar for jabroni7

hello every one can any one help me wih php nd ajax code i have a select box with certain values from d database,if any one enters first letter ,i must have all values from d corresponding column databse starting with that letter,or if nothing matches i've to add the …

0
41
Member Avatar for JimD C++ Newb

Hello! I have a small problem with a MySQL query inside a PHP site. If a user clicks "Yes" to delete a record, the record should be deleted (which works great) However, when the user clicks "No", it should redirect the user to another location, leaving the record intact...but it …

Member Avatar for ShawnCplus
0
94
Member Avatar for genieuk

Hi, I wonder if someone could help me please. I basically made a registration form and need to insert the data into the database. I am not sure how i use the MySQL functions to do this, I created a db connection file and included it on registration page but …

Member Avatar for genieuk
0
107
Member Avatar for MCDT.CC

Hi everyone, I have PHPAuction XL V3.1, please may someone help me. I have managed to create the auctions but i cannot bid on them, the following error comes up: update PHPAUCTIONXL_auctions set current_bid=20, starts=2009-05-01 18:21:29,ends=2009-05-02 18:21:29 where id="1336eca400908b7a04133d27be69e27e" You have an error in your SQL syntax; check the manual …

Member Avatar for blocblue
0
131
Member Avatar for coolmind259

Hi Guys, I need help in country, state drop down list. I am using a dynamic country, state drop down list in a form, the country state drop down works fine if I don't open a form without ajax request. But if I open a form with ajax request then …

Member Avatar for gagan22
0
88
Member Avatar for oluchan

Pla can anyone help me with user profile update script. when user log in with their email and password, the page will redirect user to my account section where user can update profile. how do i populate user details on update profile link. I will appreciate any help. Thanks

Member Avatar for humbug
0
290
Member Avatar for m-hrt

i have a Listbox available in my page and that Listbox have these items. and i have trip named table which have these fields. id which will autocrement from to coach_type fare journey_date seat now i want this to be happen if a user come and take any item from …

Member Avatar for m-hrt
0
173

The End.