Search found 28 matches

by johnworf
Thu Feb 26, 2009 8:46 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Re: Parse error: syntax error, unexpected T_ELSE in

okay i've gone through my code again and found curly braces not quite right IMHO (which probably isn't a great opinion) but i still get the same error.!!!   <?php // technocurve arc 3 php bv block1/3 start $color1 = "#99cc33"; $color2 = "#ccff99"; $color = $color1; // technocurve...
by johnworf
Thu Feb 26, 2009 5:40 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Re: Parse error: syntax error, unexpected T_ELSE in

Hi, I don't know if it helps - but this was the code before...this will show records fine if there are any but also shows the table headers when there aren't records - so if anyone can adjust this code so that it works i would be grateful...   <?php // technocurve arc 3 php bv block1/3 start $color1...
by johnworf
Wed Feb 25, 2009 11:02 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Re: Parse error: syntax error, unexpected T_ELSE in

unfortunately i get the same error.
by johnworf
Wed Feb 25, 2009 9:35 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Re: Parse error: syntax error, unexpected T_ELSE in

i thought this was the if statement for that near the top... if ( $totalRows_Recordset1 > 0 ) { I'm bit of a newbie and struggle with how the code is put together - this is just so frustrating! I'm guessing you are probably write though it's the way my code is put together that's probably throwing i...
by johnworf
Wed Feb 25, 2009 8:55 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Re: Parse error: syntax error, unexpected T_ELSE in

no i get the same error
by johnworf
Wed Feb 25, 2009 4:16 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Re: Parse error: syntax error, unexpected T_ELSE in

so i've added that line and i still get the same error

Code: Select all

 
<?php while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)) {; ?>
 
by johnworf
Tue Feb 24, 2009 9:06 am
Forum: PHP - Security
Topic: URL Security
Replies: 20
Views: 4417

Re: URL Security

this might help...

i haven't checked it out but i need to implement something like this soon...

http://www.ngcoders.com/php/selling-dig ... pn-and-php
by johnworf
Tue Feb 24, 2009 9:02 am
Forum: PHP - Code
Topic: insert/update/verify
Replies: 6
Views: 391

Re: insert/update/verify

so does that mean having 2 columns of data...

verify and checked data fields
by johnworf
Mon Feb 23, 2009 7:40 am
Forum: PHP - Code
Topic: insert/update/verify
Replies: 6
Views: 391

Re: insert/update/verify

This is a pretty simple thing to do. Add a column in the table something like comments_verified that will be either 1 or 0(default 0). If 0, you need to verify before displaying them so on the verify page, query all of the entries that have comments_verified = 0 and on the display page comments_ver...
by johnworf
Mon Feb 23, 2009 7:38 am
Forum: PHP - Code
Topic: Determine if MySQL query is empty without mysql_fetch_array?
Replies: 24
Views: 4783

Re: Determine if MySQL query is empty without mysql_fetch_array?

He wants to do something with the array if it's not empty, it's not there just to check if rows were returned or not. This is common usage and quite useful since array access and functions is much robust than the while loop The array is only empty if 0 rows get returned. I use mysql_num_rows @johnw...
by johnworf
Mon Feb 23, 2009 7:31 am
Forum: PHP - Code
Topic: Parse error: syntax error, unexpected T_ELSE in
Replies: 12
Views: 1089

Parse error: syntax error, unexpected T_ELSE in

hi, i want to add in different colors to the rows and the thing works fine when there are records but doesn't when there are none - as i get a table headings... Parse error: syntax error, unexpected T_ELSE in /home/allresta/public_html/Alabama/alabaster.php on line 106   <?php // technocurve arc 3 p...
by johnworf
Sun Feb 22, 2009 5:15 pm
Forum: PHP - Code
Topic: upload / security
Replies: 0
Views: 65

upload / security

ok...what's best way to do this without involving a solicitor.. lets say i have a colleague who has 1000 digital products...that they want to maintain, and let people purchase individually via paypal. what's the best method of doing this so the developer (me) cannot access these 1000 files - but i c...
by johnworf
Sun Feb 22, 2009 5:08 pm
Forum: PHP - Code
Topic: Determine if MySQL query is empty without mysql_fetch_array?
Replies: 24
Views: 4783

Re: Determine if MySQL query is empty without mysql_fetch_array?

Hi, I'm not sure how i do the if else constraint properly... i'm getting an error in line 104 Parse error: syntax error, unexpected T_ELSE in /home/allresta/public_html/Alabama/alabaster.php on line 106   <?php // technocurve arc 3 php bv block1/3 start $color1 = "#99cc33"; $color2 = "...
by johnworf
Sun Feb 22, 2009 4:41 pm
Forum: PHP - Code
Topic: Determine if MySQL query is empty without mysql_fetch_array?
Replies: 24
Views: 4783

Re: Determine if MySQL query is empty without mysql_fetch_array?

hi, i've got a similar problem with my code... i want to add in different colors to the rows and the thing works fine when there are records but doesn't when there are none - as i get a table headings...i'm struggling with the code - it keeps breaking down when i modify it - not sure how to integrat...