User Profile
Collapse
-
Where in your code do you connect to the server and the database? -
I'd suggest to use a free class for this, like
http://www.phpclasses.org/package/62...XLS-files.htmlLeave a comment:
-
Enclose the input fields in a form, add a submit button which submits the form to your MySql insertion part en process, like:
...Code:// check submission if (isset($_GET['submitted'])) { .... check $_GET['city'] and $_GET['room'] for validity .... insert values into database } else { // Prompt for values ?> <form> .... your input fields ....Leave a comment:
-
If the 'undefined index' is not followed by a (var) name, it means that you use a blank index on an array. Usually this message is shown prefixed with the PHP source line number of the statement that causes this notice.Leave a comment:
-
This is the HTML and CSS forum. Your question does not belong in this forum but in the ASP forum.
RonaldLeave a comment:
-
Sorry to disagree slightly here.
A destination anchor is not just, or only, a div. The destination anchors in HTML documents may be specified either by the A element (naming it with the name attribute), or by any other element (naming with the id attribute).
Ronald...Leave a comment:
-
LAST WARNING:
As a member you (should) know by now, and you have been warned before, that you have to include any code within the appropriate code tags! Please enclose your posted code in [code] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions....Leave a comment:
-
First posting this bunch of code and not telling us what the error is? If you want us to help you, you have to tell us what the error, or supposed error is! This is not a guessing game. And withdrawing your post is not the answer to your problem.
So state your problem and describe the error or whatever it is that is the problem.
moderatorLeave a comment:
-
I sure hope you mean a server side language (like PHP, ASP, etc.)
Ronald...Leave a comment:
-
cURL is the name of the project. The name is a play on 'Client for URLs', originally with URL spelled in uppercase to make it obvious it deals with URLs. The cURL project produces two products:- libcurl
A free and easy-to-use client-side URL transfer library, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE and LDAP. libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, erberos, HTTP form based upload,
Leave a comment:
- libcurl
-
As your code is now, this only works when condition [php]if (!isset ($_SESSION['cart'])){[/php] is met.
You should start the session in the first statement if your script, i.e.[php]<?php
session_start() ;
....
[/php]Then you test whether the product exists in the session array and if so, increment it; if not add it to the session array.[PHP]
if (isset ($_SESSION['cart'][$prod_id]))
$_SESSION['cart'][$prod_id]['qty']...Leave a comment:
-
warning:
As a full member now, you should know that we expect your code to be posted in [CODE] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.
Please use the tags in future.
MODERATOR.Leave a comment:
-
I assume you want us to help you with your school/class work. I also assume that your lecturer thinks you have the (theoretical) programming and database background to achieve this, otherwise you would not have gotten this assignment?
But reading your posts I am not so confident that you have that expertise. Maybe it is wiser to do some (PHP) MySQL tutorials to get a better grasp on the matter at hand. See the following links:...Leave a comment:
-
When you want to distinguish between all different products you 'll have to use different names (and certainly different id's).
Increment a counter in the while loop and append that counter to the name field.
RonaldLeave a comment:
-
And why is that? OP only needs to open the file for read.
Ronald...Leave a comment:
-
WARNING:
Please enclose your posted code in [code] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.
Please use [code] tags in future.
MODERATORLeave a comment:
-
-
Leave a comment:
-
When this is true the statement will never work, because the WHERE clause will becomeand that is incorrect. But why are you reluctant to show your code and keep us guessing? Just show the code you did using the $_POST variable in the WHERE clause and I mean the code, not a description.Code:WHERE `user_name` LIKE '$_POST['user_name']' ";
Ronald...Leave a comment:
-
Are you using the SET NAMES command of MySQL before you INSERT or UPDATE? Like (in PHP)RonaldCode:mysql_query("SET NAMES 'UTF8'");Leave a comment:
No activity results to display
Show More
Leave a comment: