Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

foreach

1
vote
1 answer
42 views

Selecting $_POST with a foreach statement returns error

So I have a form that can increase and decrease according to what the user adds to the page. To be able to handle unknown posts, I have set up a…
asked June 24, 2011 2:39 pm CDT
Chris
1
vote
2 answers
23 views

[MySQL] Updating each row separately

I'm trying to update some rows in my database. I have a table like the following : id | subid | creation_date 1 | 1/1 | 2011-06-23 1 | 1/2 |…
asked June 23, 2011 9:39 am CDT
LostInSql
0
votes
1 answer
26 views

MySQL - using a foreach of sorts in an SQL Procedure

Well, here goes. I've been doing a lot of searching for some way to create a "Foreach" of sorts with a mysql query. I 100% know how I'd go about…
asked June 21, 2011 11:39 pm CDT
Anther
0
votes
0 answers
34 views

"foreach" loop : Using all cores in R (especially if we are sending sql queries inside foreach loop)

I intend to use "foreach" to uitlize all the cores in my CPU. The catch is i need to send a sql query inside the loop. The script is working fine…
asked June 20, 2011 12:40 am CDT
rajesh
0
votes
1 answer
27 views

Using foreach to display results

I'm trying to write some sort of forum homepage, based off work someone else did. Here's what I've got so far: <?php $crumbs = explode(",",…
asked June 18, 2011 1:07 pm CDT
Shamil
0
votes
2 answers
37 views

How to insert 3 arrays into 2 MySql tables?

I have 3 simple arrays with same number of items $id= array(1, 2, 3, 4, 5); $fruit= array('apple', 'banana', 'ananas', 'orange', 'lemon'); $price=…
asked June 10, 2011 8:33 am CDT
Goldie
0
votes
4 answers
20 views

Problem with foreach () Invalid Argument Supplied

Hi, I am trying to delete every follower from an array using PHP. However I am receiving the error : Warning: Invalid argument supplied for…
asked June 5, 2011 5:01 pm CDT
XcodeDev
0
votes
1 answers
29 views

Xml foreach loop with lots of records, limit records pulled by category and number

$feed = 'myfeed'; $xml = simplexml_load_file($feed); foreach( $xml->productinfo as $productinfo ) { $product_category =…
asked June 4, 2011 6:04 pm CDT
webmasters
1
vote
1 answer
30 views

Php mysql query within foreach loop not working

Name pretty much explains it all-- I have an array and I want to run a query for each item in the array Two variables come from this, volume and…
asked June 3, 2011 1:46 pm CDT
thomas
0
votes
0 answers
34 views

JSP - function with a list parameter

Hello I have the following code: <c:forEach var="phone" items="${phones}"> Type: ${phone.type} </c:forEach> I want to create a function…
asked May 29, 2011 1:07 pm CDT
user748790
0
votes
3 answers
33 views

MySQL to PHP array grouping duplicate values

Hi All, Please be gentle with me as I am kind of learning as I go using manuals, trial and error and (ahem) reverse engineering of open source…
asked May 19, 2011 12:14 pm CDT
Leseul
0
votes
3 answers
56 views

Looping through multiple arrays

i'm really confused about something and need some advice. i want to be able to loop through 2 arrays at the same time but i can't seem to figure it…
asked May 19, 2011 6:09 am CDT
john
0
votes
3 answers
26 views

PHP, MySQL, SELECT question

Hello I have a question that could seem complicated. But I will try to explain it as better as I can. This is a problem of logic. I have a database…
asked May 16, 2011 5:52 am CDT
DiegoP.
0
votes
1 answer
25 views

When using MySQL request in foreach, first select is good, but then not

With this code: foreach ($content as $value) { $data=$value[0]; echo $data; $req="SELECT * FROM TABLE WHERE data='$data'"; $result=mysql_query($req)…
asked May 9, 2011 9:47 am CDT
Clément
1
vote
5 answers
41 views

PHP, Trying to get property of non-object in

on Control page: <?php include 'pages/db.php'; $results = mysql_query("SELECT * FROM sidemenu WHERE `menu_id`='".$menu."' ORDER BY `id` ASC LIMIT…
asked May 4, 2011 9:06 pm CDT
Gerelt Od
1
vote
4 answers
37 views

Php mysql query with a loop in it

I'm trying to retrieve the results of users in my database, and then if my checkbox is selected to retrieve only users who have photos to show those…
asked May 4, 2011 11:14 am CDT
Bobby
0
votes
3 answers
37 views

Php mysql data only shows one row with foreach loop

ok i have this and it doesn't show all the rows when fetched from mysql database its like this: mysql_select_db($database_config, $config);…
asked May 2, 2011 11:26 am CDT
Keshav Nair
0
votes
1 answers
62 views

Looping through Regex Matches.

Hello. This is my source string: <box><3> <table><1> <chair><8> This is my Regex Patern:…
asked April 23, 2011 6:15 pm CDT
Hooch
0
votes
2 answers
48 views

CI - Getting data from DB into array with foreach

Hi. I have a database table with events in them: id | title | description | day_start | day_end | user_id 1 | sometitle | blabla | 2011-04-20 |…
asked April 20, 2011 5:14 am CDT
cabaret
0
votes
4 answers
45 views

PHP foreach, arrays data used in query

Hi all, I have: $array1 = //contains places ids and locations; $array2 = array(); $array3 = array(); foreach($array1 as $itemz) { $array2[] =…
asked April 19, 2011 6:27 am CDT
user638009
Pages : 1 | 2 | 3 >
51

foreach

Tagged: foreach
Related Tags
mysql × 47
php × 41
arrays × 19
loops × 9
query × 4
regex × 3
sql × 2
database × 2
function × 2
row × 2
wordpress × 1
order-by × 1
oop × 1
select × 1
object × 1
join × 1
retrieve × 1
curl × 1
jsp × 1
results × 1
.net × 1