Hi,
Is anyone able to assist me on this one please?
Cheers,
vfm.
Search found 32 matches
- Sat Nov 13, 2010 1:59 am
- Forum: PHP - Code
- Topic: Loop + counter
- Replies: 5
- Views: 772
- Thu Nov 11, 2010 9:46 pm
- Forum: PHP - Code
- Topic: Loop + counter
- Replies: 5
- Views: 772
Re: Loop + counter
Hi, I may not have explained myself clearly. I have in my db four columns which contain image paths. What I'm wanting to do is create a loop through these fields i.e. photo1_thumb, photo2_thumb, photo3_thumb and photo4_thumb. I want my for loop to essentially populate each of these. I had the follow...
- Thu Nov 11, 2010 6:31 pm
- Forum: PHP - Code
- Topic: Loop + counter
- Replies: 5
- Views: 772
Loop + counter
Hi all, I'm trying to output the following HTML onto my page: <li><a href=\"javascript:void(0)\" onclick=\"switch_product_img('photo_1', '$count');\"><img src='$row[photo1_thumb]' alt='' /></a></li> This is currently part of a for loop and what I want to do is replace the numbers...
- Thu Nov 04, 2010 3:21 am
- Forum: PHP - Code
- Topic: Form field & spaces
- Replies: 4
- Views: 770
Re: Form field & spaces
Hi, It doesn't actually look like it's an SQL problem. When I submit a value and look at the database I see the full string. However, when I use this: <input type="text" name="colour" id="colour" size="50" value=<?= $row['colour'] ?>> I see "Navy". D...
- Thu Nov 04, 2010 1:07 am
- Forum: PHP - Code
- Topic: Form field & spaces
- Replies: 4
- Views: 770
Form field & spaces
Hi, I'm not sure if this is a php issue or an sql one. I have a field 'color' and when I put in say "Navy blue" and output that into a input field I only get "Navy". Can anyone help explain to me why this is happening and what I need to do to get around it? Thanks in advance. vfm.
- Tue Nov 02, 2010 11:25 pm
- Forum: PHP - Code
- Topic: SQL not executing nor echoing
- Replies: 2
- Views: 173
Re: SQL not executing nor echoing
Great thanks for the tip! It told me what the problem was and I was able to fix it!
- Tue Nov 02, 2010 10:48 pm
- Forum: PHP - Code
- Topic: SQL not executing nor echoing
- Replies: 2
- Views: 173
SQL not executing nor echoing
Hi, Can anyone see anything glaringly obvious with this PHP code? It's not even echoing my query to the browser! $email_address = $_POST['email_address']; echo $email_address; $que = mysql_query("DELETE FROM `member2` WHERE `email` = $email_address"); echo $que; I can see the $email_addres...
- Tue Oct 19, 2010 8:31 pm
- Forum: PHP - Code
- Topic: For loop
- Replies: 6
- Views: 459
Re: For loop
Is anyone please able to assist me with this?
- Thu Oct 14, 2010 6:36 pm
- Forum: PHP - Code
- Topic: For loop
- Replies: 6
- Views: 459
Re: For loop
Does anyone know how I can modify the above code so that if there are more than three items it should break to a new line?
- Mon Oct 11, 2010 11:39 pm
- Forum: PHP - Code
- Topic: For loop
- Replies: 6
- Views: 459
Re: For loop
Hi twindev,
THanks that worked pretty well - however the only thing it doesn't do is go to a new line if there are more than three items. Would there be much modification to your code to include this functionality?
Thanks in advance.
THanks that worked pretty well - however the only thing it doesn't do is go to a new line if there are more than three items. Would there be much modification to your code to include this functionality?
Thanks in advance.
- Thu Oct 07, 2010 7:52 pm
- Forum: PHP - Code
- Topic: For loop
- Replies: 6
- Views: 459
Re: For loop
Anyone? I'm still struggling with this one!
- Mon Oct 04, 2010 11:43 pm
- Forum: PHP - Code
- Topic: For loop
- Replies: 6
- Views: 459
For loop
Hi guys, I've got a three-column CSS-designed layout and in each of those columns I'm trying to put a value from my database. However, I'm very new to this and cant quite figure out the logic for doing it. Below is my code. Can anyone please tell me how I can get the three IDs in each of the columns...
- Tue Sep 28, 2010 2:26 am
- Forum: PHP - Code
- Topic: Shortening a string
- Replies: 5
- Views: 1382
Re: Shortening a string
Perfect thanks!
- Mon Sep 27, 2010 9:39 pm
- Forum: PHP - Code
- Topic: Shortening a string
- Replies: 5
- Views: 1382
Shortening a string
Hi, I have a blog page and on this page I only want to show the first 250 characters of the main blog post. So let's say I have a variable called $text and in this contains "The quick brown fox jumps over the lazy dog". But what I want to show is "The quick brown fox..." How woul...
- Tue Sep 21, 2010 1:25 am
- Forum: PHP - Code
- Topic: Admin pages & forcing logon
- Replies: 2
- Views: 114
Re: Admin pages & forcing logon
Hi,
That logic makes sense. Are there standard snippets of code out there that I could use? As I said, I'm very new to all of this.
Cheers,
Kieran.
That logic makes sense. Are there standard snippets of code out there that I could use? As I said, I'm very new to all of this.
Cheers,
Kieran.