Tagged Questions
0
votes
3answers
42 views
First Line of PHP While loop doesn't echo to screen
In the following section of code. I'm checking my "$email_count" and output one of two things. This works fine. The problem is in the while loop. It doesn't echo out the first record. Any help ...
0
votes
0answers
14 views
Function inside while inside function inside while only triggers once each layer
Consider this (simplified) code... Function getLevelOne is called, runs fine, calls getLevelTwo, runs fine, and then stops, without continuing the while that was called in getLevelOne... The way its ...
0
votes
1answer
30 views
dynamically build both <th>'s and <tr>'s
The amount of columns in a table is based upon the amount of data in a table. The amount of rows in a table is based on the amount of rows in a different table. An example of these tables are below
...
1
vote
1answer
20 views
Using an incremented value in a SELECT WHERE query MYSQL
Let me start off that I have only been coding for the past few months. I know I've probably got a ton of mistakes or bad practices everywhere. I like constructive criticism, so please let me know what ...
2
votes
1answer
27 views
Multidimensional PHP array stays empty
I'm trying to create a multidimensional array within a PHP function. But it doesn't seem to work. The function I wrote:
//Get newsitems
function getNews() {
$result = mysql_query("SELECT * FROM ...
0
votes
1answer
36 views
Nested While loop only runs inside loop correctly
I've got two while loops that I'm using to run through some MySQL data.
The first while loop runs through a bunch of reports and checks the 'state' (as in United States) that is stored in the table.
...
0
votes
3answers
21 views
Join two MYSQL Query
I have two simple querys, but i need a little help to join them in one result
$query="SELECT * FROM USLUGE WHERE marka='1'";
And second query
$query2="SELECT * FROM USLUGE WHERE marka='2'";
I ...
0
votes
1answer
29 views
PHP exec in while loop
I have problem when excecute the exec function in while loop
I want to transfer xml file to server the problem is the transfer to server is success
but the data xml is same at all, the data is still ...
0
votes
1answer
31 views
Infinate loop? Missing something? I don't know what going on Error: 500 time out (Shouldn't be happening)
I am trying to create a PHP script that will rip apart a Json file sort it and send it up to the database, however I don't understand why this is happening: I used to get a error saying I exceeded the ...
1
vote
2answers
67 views
PHP While loop post data to edit 1 row
I have made a while loop which displays all users in Ploegen from the database I made it output the text which is suppose to be hidden but im testing it a the moment. anyway it has to update only 1 ...
0
votes
2answers
29 views
php - dynamically create div content from SQL
So, here is the page in discussion, DONATION RESULTS
What I did was I used the SQL DB to populate rows by totals, works great. Now, I want when the name is clicked, or the ammount is clicked, for a ...
0
votes
2answers
30 views
php output txt files with record limits plus grouped by unique county names
When I ouput these txt files, I am trying to group them by unique county with a count limitation per county file. For example, let's say the query returns 2 unique counties in this accessable result ...
2
votes
2answers
20 views
Wordpress MySQL result resource is not valid
I have wp_places custom table and I am getting this when I am printing array:
[0] => stdClass Object
(
[home_location] => 24
)
[1] => stdClass Object
(
...
0
votes
4answers
46 views
My while loop from database is repeating results. I know it's my poorly formatted query.
I have a query to bring results from my database. It works... until there are more than 2 results that it, then it just repeats some results before adding in new ones.
I know it will be because my ...
0
votes
2answers
16 views
Show comments related to a post within a while loop PHP
I have a while loop which lists user posts from my database.
I also want to show comments that have been made on that post.
The comments referece the session id so I can compare those, another while ...