21 Posted Topics
Where do u have to insert the data, to a MySQL table?, or to an array? It can be done assuming that the tables or arrays in which you want to insert the data have a common key.
Hello all, I have a simple question, I have a website which has a database, and I have a customer(with another website) that takes the orders, but instead of saving the order to their database they must save it to ours, this meaning that the must be able to access …
Hello all hope this section isn't abandoned, anyway any help is really appreciated. Heres my problem: So I'm designing this database to hold orders, a customer places an order, which can have up to four accessories, at first I designed this table: [LIST] [*]idOrder[*]Acc1[*]acc2[*]acc3[*]acc4 [/LIST] but then I realized that …
Hello all, hope you can help me understand, here's the general description: I have a form, 'frmData' that has a hidden field, that when submitted it sends the info to process.php, which checks if the hidden field has been submitted, if so it redirects the user to a page "energy.php" …
Two distinguish an include file from another that contains a mix of php and html.
Hi!! You should paste your code for displaying info on the database
Hi everyone hope you can help me with this issue, I'm trying to make a login system that is object oriented so I have the following classes: [INDENT] [LIST] [*]MySQLDB: Peforms all database operations, adding/removing members, checking passwords and usernames, also performing querys. [*]Session: Performs Session actions(log in/out, keeping track …
Have you changed the host of the MySQL database in the code?
You could use this meta tag. [CODE=XHTML] <meta http-equiv="refresh" content="5;url=http://www.yourwebsite.com/index.php"> [/CODE] Or by using javascript.
I think it's the constructor's scope, you set it to private, so it cannot be called outside of the class definition, set the scope to public. Regards, Triztian
Here is how it's done, first we perform all necessary database connections, the we query the database, after obtaining the result-set we transform it to an array The and lastly we print it's content using a foreach loop structure. [CODE="php"] <?php var $link; //SQl Link variable. var $query; //SQL query …
This is done by exploding the array, assuming that the data will remain as a string, so we use the [URL="http://www.php.net/manual/en/function.explode.php"]explode();[/URL] function [CODE] <?php function search($raw_string,$key) { var $string_array; //Array in which the exploded string will be stored var $pos=0; //Gets the position of the $key in the array $string_array=explode(";",$string); …
You should try to develop the script yourself and when you get stuck in a particular area post the issue here; get based on the scripts you've seen and modify them to suit your needs...
Yes it can, just a guess here, but it might be a typo, the semicolons are missing at the end of the statement. For further reference: [URL="http://www.php.net/manual/en/function.include.php"]Include[/URL]
The ones that come to my mind... [CODE] For a Login system, Visitor tracking For eCommerce For Content Managing Systems (CMS) [/CODE]
Ok, so first the XHTML code is missing the <form> label, here's the code [CODE="html"] <form action="mail.php" method="post"> <select name="cboMails"> <option value="[email protected]">[email protected]</option> <option value="[email protected]">[email protected]</option> <option value="[email protected]">[email protected]</option> <option value="[email protected]">[email protected]</option> </select> <input type="submit" value="Submit" /> </form> [/CODE] Quoting [URL="http://www.w3schools.com/html/html_forms.asp"]W3Schools[/URL]: "The most important thing to notice when dealing with HTML forms and PHP …
First you will need to have a database server (MySQL is the most used) The database would have 2 tables (for now..as we add more features, we could add tables or columns) One for users and the other for statistics, the primary key should be username in both tables. The …
Well depends on what kind of data you are validating, a quick example would be to validate a number within a certain range (e.g. Persons age, height, weight, etcetera). [CODE] <?php function range($min,$max,$val) { if ($val < $min) || ($val > $max) return 1; //Error, invalid data else return 0; …
May I ask, instead of just printing the tokens, how would we assign them to a variable?
Hi I think this is my first post, so here it goes: [B]Overview:[/B] [INDENT] This program declares global bidimensional array of 30 rows and 5 columns (not counting 0 in the rows) of floating type to save information of students, table is as follows: ID Partial1 Partial2 Partial3 Partial4 Average …
The End.
Triztian