39,402 Topics

Member Avatar for
Member Avatar for niths

--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 'Resource id #10' at line 1--- [code] <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" …

Member Avatar for richieking
-1
343
Member Avatar for dschuett

Hi, I have made a log in script that checks the database for username and password. I have everything working for the users (they must be logged in to access member.php). Now I have admin.php redirecting to a different page, but how do i keep users OUT of that page? …

Member Avatar for richieking
0
7K
Member Avatar for pearll

[B]What is wrong with the "update" row :-O.... it is showing some syntax error !! plz sombody rply soon !!!!!! [/B] [CODE]$sql="SELECT * FROM contact"; $result=mysql_query($sql);?> <table align="center" width="700" border="0"><tr><td><?php echo "<form name='form1' method=post action=''>"; echo "<table border='0' cellspacing='0' cellpadding='2' width='600' align='center'>"; echo"<tr bgcolor='#ffffff'>"; echo"<td>&nbsp;</td>"; echo"<td align='center' bgcolor='#FFFFFF'><strong>emailid</strong></td>"; echo"<td align='center' …

Member Avatar for richieking
0
138
Member Avatar for pearll

here in my page "eg3.php" ..."NEW" and "Delete" button are working fine ... but when i click "edit" button ... the "update.php" page opens but with empty textboxes as if i have to insert NEW data ... that is the problem... the text boxes should display data of checked row …

Member Avatar for richieking
0
106
Member Avatar for anoopkris123

Photo Gallery Code. This code is show all the images from the images folder with filename ending with "_thumb" When i run this code its working but i a getting an error as "[COLOR="Red"]Notice: Undefined variable: count in C:\wamp\www\photogallery\AutoGeneratingGallery\index.php on line 58[/COLOR]" I am using Wamp server 2.0 Please some …

Member Avatar for richieking
0
1K
Member Avatar for vibhaJ

Hi All, I have javaPowUploader for multiple file upload. I am able to upload file upto 4GB after php setting. But how can i upload file greater than 4GB?

Member Avatar for richieking
1
155
Member Avatar for Manny7

Hi there, i've the strings, who containts this: "asgaasg, gasgasg, saxx" or "asgaasg, saxxss". And I need always to get only the part of the strings for the last comma, so in th first example it is: "saxx" and in the second "saxxss". I tried to get that with using …

Member Avatar for mschroeder
0
116
Member Avatar for sistrlynn

Hi, I need som assistance placeing an HTML table within a PHP script. I thought I could just echo it, but I am getting a parse error. Here is the PHP code: (the parse error comes on line 339 <?php /* declare some relevant variables */ $DBhost = "localhost"; $DBuser …

Member Avatar for richieking
0
299
Member Avatar for jrhitokiri

I have this code: [CODE] function parse_aggregators_xml($aggregators_xml) { $simple_xml = new MySimpleXML(); return $simple_xml->xml_load_string($aggregators_xml, 'array'); } $xml = file_get_contents(XML_TEMPLATE); if (empty($xml)) return false; $data = parse_aggregators_xml($aggregators_xml); $data = json_decode(json_encode($data)); echo "<pre>";print_r($data );echo "</pre>"; [/CODE] the output of the xml is like this: [CODE] stdClass Object ( [aggregator] => Array ( …

Member Avatar for jrhitokiri
0
137
Member Avatar for ryathegr8

hi... i used the following links to download apache n php compiler/interpretor....but find no exe file or setup in downloaded folder... plz anybody give me the exact link by clicking whixh i could download the folder with exe files of both.... [url]http://www.php.net/downloads.php[/url] [url]http://httpd.apache.org/download.cgi[/url]

Member Avatar for Usernamex235
0
130
Member Avatar for g4george

Hi I have a session variable I wish to display in the title of a web page. This works well with IE. However, when I switch to Firefox it only works on my personal server. And not when I go online using Firefox. Can anyone tell me why? [CODE]<?php echo(ucwords($_SESSION[fullname])); …

Member Avatar for mahavir123
0
61
Member Avatar for ryathegr8

hi.... can anybody give me link for php compiler exe file???? and mysql...whateva needed to build a web application.... i'll be thankfull....

Member Avatar for akvlko
0
193
Member Avatar for artvor

Hello, it's about a week that I'm searching for a simple script that do this: So when value is 0 checkbox must be not checked and the opposite if value is 1... So when I check box it must send value= 1 to my mysql DB and if it's not …

Member Avatar for akvlko
0
230
Member Avatar for Mr.Kazaam

I was following this tut. on how to install Apache, PHP, Mysql, and PHPmyadmin. I need a bit of help! I get a [B]"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mysql_test.php on line 15"[/B] everytime I test the mysql thing. What ive …

Member Avatar for R1Programmer
0
280
Member Avatar for aslamdoctor

Hi Everyone, I want to develop a tool in which I will input the following details 1.Total Area of your house roof. 1.Direction of the Roof of your house 2.Average Monthly Power Bill 3.Style of the Roof (wood shake, foam, rolled, spanish tile etc) 4.How steep is the Roof slope …

Member Avatar for aslamdoctor
0
261
Member Avatar for Allison2009

Hi, We run three Online Shopping Carts. All the Shopping Carts are run on Zen Cart. For all the three Shopping Carts, we use only one PAYPAL Account. PayPal Pro is configured in all the three. There is no problem with two Shopping Carts. We face problem with One Shopping …

0
93
Member Avatar for doctorphp

Hi All I am trying to add a no under 18's feature to my register page. I have got a simple function which uses the year of birth but I am not sure what to do for the day and month. Here is the code. If someone could help me …

Member Avatar for chrishea
0
295
Member Avatar for anyname4u

Hi, I have this error: Notice: Undefined index: menu_name in C:\wamp\www\widget_corp\create_subject.php on line 16 this is the code: [CODE]<?php require_once("includes/connection.php")?> <?php require_once("includes/functions.php")?> <?php //for validation $required_fields = array('menu_name', 'position', 'visible'); $errors = array(); foreach($required_fields as $fieldname){ if (!isset($_POST[$fieldname]) || empty($_POST[$fieldname])){ $errors[] = $fieldname; } $fields_with_lengths = array('menu_name' => 30); foreach($fields_with_lengths …

Member Avatar for anyname4u
0
281
Member Avatar for trilithon

I need to query data from a table accourding to user level to genarate a menu list for different user levels, the code worked well with (session->username) but when I changed to (session->user_level) it does not want to work. Any help will be appreciated. Here is my code: [CODE=php] <?php …

Member Avatar for trilithon
0
96
Member Avatar for dschuett

Alright, so I have been working on building a photographer a website. She requested that she would like a page that would allow users to log in and view their proofs and only allow THEM access to their own pictures. I have successfully created a log in page using sessions …

Member Avatar for richieking
0
619
Member Avatar for RossCode

Is there a way you can detect if an incoming referrer is from a url using https? I know you can detect http but it doesn't seem to show anything for https.

Member Avatar for RossCode
0
170
Member Avatar for muralibobby2015

hello.... i was completed login website. but client said some times user account over riding. showing another user login information. so how it solve. i was checked all of my code but there is no chance to show another user information. is there any chanse to over come this problem …

Member Avatar for mahavir123
0
61
Member Avatar for shancq50

Hi friends I am working on a project where I need to show results based upon user queries.I have created the pages,but results are not showing.as I am new to php I can't figure where the problem is. Here is the code [code=php]<html> <head><title>Showing Results</title></head> <body bgcolor="#666666"> <?php include_once "connection.php"; …

Member Avatar for hielo
0
120
Member Avatar for Mike_H

I am trying to show two hidden <div> (lines 54 & 55) depending on the value of a session variable. I know the "if" statement is working because the alert tests I have do show when the code is run. The "Viewing all whose payment has NOT been confirmed." should …

Member Avatar for Mike_H
0
34K
Member Avatar for ivan3510

Hi! Sorry for my bad english! How to make one php file that will make a picture with some text, numbers...? How to make it if user doesn't have font that is used in this picture? How to make it with different, that one letter be largest that the second …

Member Avatar for ivan3510
0
112
Member Avatar for pearll

can anybody help me for making a login page .... only after successful login (with userid and password provided to user) he will be allowed for further pages. here i want to display email ids' information used by a company....the user can delete or update the emailids or can make …

Member Avatar for pearll
0
87
Member Avatar for amulet_john

How do I retrieve Image in MYSQL using PHP? I am currently creating an online shopping cart. In my database(test) I have a table images where all image are stored. Now my problem is that, when the moment I retrieve them, all the features in my database will displayed in …

Member Avatar for hielo
0
125
Member Avatar for david_r

I'm sure this is something stupid but I cannot figure out why I am getting a syntax error with this. Thank you for taking the time to look at my code This is the code that builds the query. [CODE]$numElements = count($new_array_without_nulls); $i=1; // Don't add comma to last element …

Member Avatar for david_r
0
170
Member Avatar for akvlko

Hi Friends ! I Need a Paging Script such as Gmail for my College Project Which is a CMS based on Windows Sky Drive with Email Facility....! Thanks in Advanced!

Member Avatar for Stefano Mtangoo
0
116
Member Avatar for genosy

hi, Am having a problem Inserting into SQL 2008 database using stored procedure from a php webpage. My Stored Procedure is: [code=text] Create PROCEDURE [dbo].[udp_AddContact_Insert] @Contact_ID int, @Client_ID int, @STD varchar(10), @Tel varchar(20), @Mobile varchar(20), @EmailAddress varchar(100), @FirstName varchar(20), @LastName varchar(20), @Title_ID int, @Position_ID int, @User_ID int, @SourceURL varchar(1000), @PositionText …

Member Avatar for genosy
0
212
Member Avatar for david_r

I am having an issue with populating values from a form into a mySql database. When the code attempts to send the insert query to the database, it returns the error, ERROR: Incorrect decimal value for column 'purchase_price' at row 1 I think I can understand what is happening here. …

Member Avatar for david_r
0
200
Member Avatar for raul8
Member Avatar for osol
0
61
Member Avatar for Smudly

Hi, I am having some major issues. My site provides sheet music available for downloading for free. When a user clicks on a sheet to download, a new window opens up. This user views our sponsor's website for 30 seconds. Once the time is up, they can download the free …

Member Avatar for Smudly
0
176
Member Avatar for rakibtg

how to make a php link which will open in new tab what should be the php code to open a link in new tab. how i can make a link in php which will open in new tab?

Member Avatar for Caeon
0
146
Member Avatar for saideepthi.bits

hi, i have a page which shows user details(div1) by default there will be an admin who enters username and pwd and then a new div(div-layer) is displayed. also ,a user can edit his data by pressing edit button on which he will be displayed div2 and div1 will be …

Member Avatar for saideepthi.bits
0
242
Member Avatar for curious_me

Can Somebody help me with my PHP project. what I want is to make a database query's result to be randomly distributed to an html table. and then save the whole table in a database just like this. Query Result Query Result Query Result to Data Data Query Result Data …

Member Avatar for Caeon
0
75
Member Avatar for websurfer

I', am a newbie and trying to get a better understanding of securing mysql queries vs. injections. I found this code here below, which seems to work nicely and makes it possible to automatically "clean" all inputs coming thru `$_GET`, `$_POST` and `$_COOKIE`. But in some forums I was told …

Member Avatar for websurfer
0
155
Member Avatar for philip.s

Hi guy's, I am missing something, what on earth is wrong with this script, I can not get it to insert all my values into a table. [CODE] $host="localhost"; // Host name $username="root"; // Mysql username $password="1234"; // Mysql password $db_name="database"; // Database name $tbl_name="input table"; // Table name $que …

Member Avatar for Caeon
0
83
Member Avatar for shipy013

How do I create a constant No direct script access allowed. As is the Joomla CMS.? [CODE] // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );[/CODE] [CODE]if ( ! defined('BASEPATH')) exit('No direct script access allowed');[/CODE]

Member Avatar for hielo
0
7K
Member Avatar for musubi

Hi, I am a college student who wants to install a local testing environment for PHP, using something like XAMPP (on Windows) so I can just mess around with PHP and MySQL. The problem is when I install it, by default the site can be accessed by typing in my …

0
56
Member Avatar for Dega

Hey. So basically I am working on a simple project, I am no PHP expert, I only know a bit of the basics. This project is simply a "performance monitor" script. I have the parts to add records etc. I am now starting to tackle the next phase of the …

Member Avatar for Dega
0
90
Member Avatar for Viruthagiri

Ok guys I'm getting trouble with my php echo command. All the codes after the first echo command, displaying in browser. I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0. I've given the example of my error. Please solve it ASAP. …

Member Avatar for Viruthagiri
0
184
Member Avatar for devilish demon

[url]http://pakcom.pk/clients/saddar%20site/[/url] please have a view of this web-survey simple coding and let me know what problem it has that it does not send any info to my email address which i have specified in mail function and not even echo the message of "thankyou for feedback" please rectify my mistakes …

Member Avatar for P0lT10n
0
72
Member Avatar for sajohnson05

I am getting this as my output from the code below and i need to get just the first and last column. This is my first time useing fgetcsv so any help would be great. Array ( [0] => 1~Joe~Salem~VA~Captain ) Array ( [0] => 2~Sara~Vinton~VA~Lieutenant ) Array ( [0] …

Member Avatar for hielo
0
98
Member Avatar for Viruthagiri

Guys I have 2 files. index.php and connect.php I'm getting database connection error. This is the error i got [QUOTE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\wamp\www\index.php on line 3[/QUOTE] Then i added the error detection code in the third line. I got the following …

Member Avatar for richieking
0
202
Member Avatar for 00100110

Hi guys, I'm currently working on an online shop project. I'm kinda stuck on the payment part. I need to make it possible for people to pay with visa and credit card. Only problem is, i have no clue on how to start with programming this. Or maybe there are …

Member Avatar for 00100110
0
73
Member Avatar for curious_me

Please somebody help me how to get the values of Radio Button arrays. here are my codes [CODE]<?php include("conn.php"); $query = "SELECT * FROM pointsprof, subject WHERE pointsprof.Total >= subject.IM108"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) or die(mysql_error()); do {echo '<form action="subjectload.php" method="POST" name="theForm" onsubmit="return validateFormOnSubmit(this)"> <form id="form1" …

Member Avatar for richieking
0
1K
Member Avatar for mahe4us

Hi everyone, I have set the email piping to script in cpanel. Also in script i send a acknowledge mail to me to confirm whether the script works or not. But the script works fine and i have received the mail to my inbox. I got one more mail which …

Member Avatar for kerryJames
0
338
Member Avatar for mickeyci

I have no problem connecting to database, and the form is okay i guess. ¿Do anybody see the problem in here? It keeps returning me ERROR! PHP code: [code=php] <?php mysql_connect("$host", "$mysql_user", "$mysql_pass")or die("Error connecting."); mysql_select_db(users)or die("Can't access to database."); if($id) { $sql = 'UPDATE members SET '; $sql .= …

Member Avatar for anojs
0
167
Member Avatar for dschuett

Ok, so I will do my best at explaining this... I have set up a database of our company's Parts Ordered forms. I have created a php form that allows users to inject new POs into the database. Which works successfully. I am working on the search form to allow …

Member Avatar for richieking
0
3K

The End.