hi all,
how this statement "for($i=1; $i<=10; $i++)" can be written using foreach loop
thanks in advance,
sridhar
Search found 6 matches
- Sun Apr 12, 2009 9:15 am
- Forum: PHP - Code
- Topic: how to use foreach
- Replies: 10
- Views: 1499
- Sun Apr 12, 2009 7:30 am
- Forum: PHP - Code
- Topic: how to get parameter in php
- Replies: 2
- Views: 145
how to get parameter in php
Hi all, In this i have to get all the values from the page(i have attached the screen shot). In this so many text and combo boxes are there. for this form i used a for loop the name will be in thos order combo_skill1,combo_skill2,....combo_skill10 text_skill1,text_skill2....text_skill10 naming conve...
- Wed Apr 08, 2009 4:55 am
- Forum: PHP - Code
- Topic: how to insert values in mysql table using php
- Replies: 1
- Views: 82
how to insert values in mysql table using php
Hi all, I want to insert the values from php registration form in to mysql db using the foreign key, Table structure, Table1: userid primary key autoincrement, username emailid Table 2: id Phone number Address Fax Foreign key(id) reference Table1(userid) for inserting values into table2 i have to us...
- Fri Apr 03, 2009 6:19 am
- Forum: PHP - Code
- Topic: problem while connecting php to mysql
- Replies: 5
- Views: 428
Re: problem while connecting php to mysql
ACCOUNT_INFO table CREATE TABLE IF NOT EXISTS ACCOUNT_INFO ( USERID int(5) NOT NULL auto_increment, USER_NAME varchar(50) default NULL, PASSWORD varchar(50) default NULL, EMAIL varchar(50) default NULL, VALIDITY_STATUS varchar(5) NOT NULL default 'NO', PRIMARY KEY (USERID) ) USERPROFILE...
- Fri Apr 03, 2009 5:28 am
- Forum: PHP - Code
- Topic: problem while connecting php to mysql
- Replies: 5
- Views: 428
Re: problem while connecting php to mysql
while inserting into table values updated successfully in one table and not in the other..
- Thu Apr 02, 2009 9:43 am
- Forum: PHP - Code
- Topic: problem while connecting php to mysql
- Replies: 5
- Views: 428
problem while connecting php to mysql
Hi all, Am new to php, i created a registration form using php. i have to insert the values of the form in two mysql db tables simultaneously. i created a table called "accountdetails" in that id,username and password will alone stored. id is primary key and auto increment. next i created ...