![]() |
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| General Board General discussions. Please check main forum categories before posting here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
![]() |
I posted here because this isnt strictly a web design problem but hoping you can help (or point me in the right direction). Im writting a PHP script to display data on a userbar which works PHP Code: So the above in short has become:- config.inc.php PHP Code: PHP Code: but whatever I try, userbar displays either the text "Checked : 3 $xa of $x work" without changing $xa or $x or "Checked : 3 of work" with the variables being blank.
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters |
| |
| | #2 (permalink) |
| Member |
I'm not a php programmer, but I can't see where you are declaring what vars $x and $xa? I'm guessing that $xa should be your $rsdata array length? And $x is your current position in the array? |
| |
| | #3 (permalink) |
![]() |
I get the impression this isn't the whole script. As above $xa $ x aren't set, and when you split the array arrays into key value pairs where is imgnum set for the comparision with 001, 002 etc? S |
| |
| | #4 (permalink) |
![]() |
Yea thats far from the whole script as its a project in the making, but this might make it easier. PHP Code: ive highlighted the vars taken from config.inc.php with $x $xa being substituted. In the example posted $tempvalue[3][8] is the same but obviously this changes place and wording allowing the user to config the output.
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters |
| |
| | #5 (permalink) |
![]() |
After posting I reading some of your comments I googled for "replace" and came up with a answer to my problem. preg_replace ^ ive not see this before but does the job config now looks like this PHP Code: PHP Code: Thanks for your comments, from this I was able to find an answer via google.
__________________ Banking Sort code database & Sort code lookup and verify & Sort codes info & Sort code Available UK domain lists - Garden patio heaters |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| PHP Builder | admin | Scripts and Coding | 1 | 02-12-2007 08:18:08 AM |
| PHP help | admin | Scripts and Coding | 0 | 17-11-2007 03:11:05 PM |
| PHP Link Directory - Free Templates | admin | Website Design | 0 | 18-05-2006 12:25:17 PM |