Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Exploded Fiber

Im not sure the correct syntax to solve this problem. I have 3 arrays: A=(3, 4, 5) B=(1, 3, 5) C=(5, 3, 2) I'd like to loop through first element of each array and find the largest int, move to the 2nd element of each array and again find the …

Member Avatar for Exploded Fiber
0
63
Member Avatar for Exploded Fiber

Hey Guys and Gals, I have an array: Array ( [Small] => Array ( [0] => 4 [1] => 5 [2] => 3 ) [Butters] => Array ( [0] => 5 [1] => 2 [2] => 5 ) [black] => Array ( [0] => 3 [1] => 5 [2] => …

Member Avatar for Exploded Fiber
0
142
Member Avatar for Exploded Fiber

I have a string- 3,3,2,2,3,3,3,2,3 - Is it possible to explode it by length, such as: 1-> [3,3,2] 2-> [2,3,3] 3-> [3,2,3]

Member Avatar for Exploded Fiber
0
86
Member Avatar for Exploded Fiber

hey all. Have a list of checkboxes with SQL data in table. Currently using echo to ensure I'm using the correct data, however, echo it returning the last checkbox data only. Here is a segment of what I've got. [CODE] echo "<table border='1'>"; echo "<tr><th>Last Name</th><th>First Name</th><th>Party</th><th>Description</th><th>Cast Vote</th>"; while($row = …

Member Avatar for hashinclude
0
89
Member Avatar for Exploded Fiber

Running a SQL query from the following code: [CODE] <php if(sizeof($_POST['addcandidate'])){ foreach($_POST['addcandidate'] as $id){ $name= mysql_query("SELECT LastName FROM candidate WHERE Candidate_ID= '$id'"); while($rowz= mysql_fetch_assoc($name)){ $candidatename= $rowz['LastName']; $alter= "ALTER TABLE '$votertable' ADD '$candidatename' int"; mysql_query($alter) or die(mysql_error()); } } } ?> [/CODE] I return Im getting: [COLOR="Red"]#1064 - You have an …

Member Avatar for Exploded Fiber
0
95
Member Avatar for prem2
Member Avatar for Exploded Fiber

Hey all, Im a little confused about taking the values of a 2D array and placing them into a query or string to use in query. I've done some homework but unfortunatly square eyes and a caffeine comedown just isn't helping. Essentially I have an array named $myarray. It looks …

Member Avatar for Exploded Fiber
0
118
Member Avatar for Exploded Fiber

Hey all, Im creating a voting website using PHP & SQL. Im planning on using a single table to store votes. Something like this. -- Voter_ID -- Candidate A-- Candidate B -- Candidate C -- ### --- 1 --- 2 --- 3 ### --- 1 --- 3 --- 2 ### …

0
71
Member Avatar for Exploded Fiber

Hi all, After some time pulling my hair my brain has turned to mush on this senerio. I'd appreciate any help offered as my PHP skills are still limited. Here is the senerio: I am creatings a voting website. I am currently creating an admin page that creates local election. …

Member Avatar for Exploded Fiber
0
103
Member Avatar for Exploded Fiber

Hello all, I'm pretty new to PHP & SQL. I am having some trouble with a web voting page I'm creating. I have a PHP loop which is displaying data from SQL table A. Beside it, a small text box linked to SQL table B to allow users assign numeric …

Member Avatar for diafol
0
189