moldboy
Jul 10 2005, 05:20 AM
| | I have this variable that I want to take the value of to use as an array, now it is a slightly odd variable it's one that I get by combinin a word and a number and then calling the information stored in that var, so ${${word . $number}}, anywho I get the following error Fatal error: [] operator not supported for strings in and then the path |
Reply
palladin
Jul 10 2005, 04:47 PM
Can you put little more code  from this i see only FatalError  and no idea what you try to do  but ... Array ID can got only numbers NameImage[1] = "one"; NameImage[2] = "two"; ... so ... $id = 'bolek'; $number = 1.$id; NameImage[$number] give you error  $id = 5; $number = 1*$id; //give(5) or $number = 1.$id; //give(15) NameImage[$number]; give you value from array if this not give you answer put more code and write cleary what you wanna do  -------------------- Practice is when evrything is work but no one know why. Theory is when work nothing but evry one know why. Programmers join Practice with Theory - nothing work and no one know why 
Reply
moldboy
Jul 10 2005, 05:05 PM
I've actualy changed my array structuring system to use the array() function But I post what I wanted to do anyway, Let's pretend that I have 3 pages, on the first page the user enters a number, we'll say 4 on the next page using a while loop and code simmilar to the following the page generates a form field with 4 text boxes: CODE //form junk up here, don't feel like typing $break = 0 $number = 1 while ($userinput > $break){ echo "<tr>"; echo "<input type=\"text\" name=\"inputarr" . $number . "\">"; echo "</tr>"; break++; number++; } //bunch more code here
THis would build frou text inputs with the variables inputarr1 inputarr2 inputarr3 inputarr4. Now I wanted to store information in an array form in the values that the user entered, so if inputarr1 was cookie, I want to create a array called $cookie with information, so: CODE ${${inputarr . $number}}[] = whatever information;
bearing in mind that the $number would be deffined simmilar to the above example. This returned an error, the funny thing is I built this and it worked relativly well it didn't return the final output I wanted but no errors, so I went to watch TV and make a more complex example and when I cam back I recieved an error so I tried my simple example again and I go the same error, but now I've switched to using the array() function it workes like it did, not the correct answer but an answer.
Reply
sachavdk
Jul 15 2005, 01:09 AM
Isn't it easier to do it in a way like this: CODE <? $var1 = "foo"; $var2 = "bar";
$foobar = "the_thing_you_want";
eval("\$finalvar = \$".$var1.$var2.";");
echo $finalvar; ?> The code above will write the_thing_you_want on the screen
Reply
Similar Topics
Keywords : fatal, error, strings
- Error Installing Template In Joomla! 1.5.7
(0)
Flex Error #1034: Type Coercion Failed: Cannot Convert Mx.managers
(1) Hi Boosters am created below flex module and then include this module to one mxml application .
after that i run that mxml file , its showing combobox successfully. But if i click that combobox
then , following error displayed. anyone know the solution, pls post it. CODE <!--
test.mxml --> <mx:Module
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:ComboBox x="199" y="80" width="140">
<mx:dataProvider> <mx:Array> ....
Linux/ Apache /mod_rewrite Issue
Error when accessing a file (4) running on Ubuntu 8.04 with an XAMPP - php5.2.5, Apache 2., etc Getting this error when I try to
access an sNews CMS which requires mod_rewrite and is installed locally: QUOTE Apache/2.2.8
(Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2
Perl/v5.10.0 configured -- resuming normal operations /opt/lampp/htdocs/jim/snews/.htaccess:
RewriteBase: argument is not a valid URL /opt/lampp/htdocs/jim/snews/.htaccess: RewriteBase:
argument is not a valid URL Using this link: http://localhost/jim/snews/snews16_ema....
An XSL Transform Error
Who knows how to fix it? (2) Wel i am working on my project and i am testing some things out with rss feeds, link to site when
i look at my site i'll see the following error in my feed panels : QUOTE MM_XSLTransform
error. The server could not perform the XSL transformation because an XSLT processor for PHP could
not be found. Contact your server administrator and ask them to install an XSLT processor for PHP.
When i googled this error i got the this: Change in your php.ini: ;extension=php_xsl.dll to:
extension=php_xsl.dll So is this possibible on trap17 or do i have to ask a a....
Page Load Error When Trying To Get Into Control Panel
I just changed domain (2) I had put a domain name that I didn't have when I registered my website. I got the 15 credits
and changed it to a subdomain. Now I can't log into my control panel. At first it was telling me
I had the wrong password which I'm sure I don't. Now I just get a timed out error. Also my
confirmation email for changing my domain was kinda blank. QUOTE Hi, This mail is to notify
you that your domain has been changed to : Regards, trap17.com So yeah... any help? EDIT:
Also I don't see my request to change domain the proper forum I had attempte....
An Error Thought I'd Let The Admins Know About.
Bad link. (4) Upon my creation with the forums, I noticed that I got a little info box almost at the top, telling
me my credit value towards obtaining the free default package hosting. Upon reading this I noticed
that the last paragraph with "computer hosting" the link to there site is not working. Clicked it a
few times just to make sure it wasn't my connection. Unfortunately it isn't. I just thought
I could help out with that, as its not exactly working, and I am some what interested in it. ^.^
Thank you and take care. /smile.gif" style="vertical-align:middle" emoid=":)"....
Mysql Db Is Down Getting Following Error
(2) My Mysql is Down can I get some help please? Appreciate it. Patrick Domain: patrickcurl.com Error:
phpMyAdmin - Error #2002 - The server is not responding (or the local MySQL server's socket is
not correctly configured)....
Hosting Problem [resolved]
403 Forbidden Error occurs whenever I try to access my site (22) First off, let me say that I have spent considerable effort and time going through the forums
seeking solutions for this problem. I have even gone as far as to seek help from the Xisto Live
support team (they suggested I wait 2 hours and then get back to them. Well I did that, and there
has been no change, and live support is now down). I've also tried changing permissions on both
files and folders via Cpanel, but to no avail. I still end up with the same error: QUOTE
Forbidden You don't have permission to access /index.php on this server. Additionally, a 4....
Wordpress Error - Bytes Exausted [resolved]
NextGEN Gallery (7) Hey, I have just gotten my blog up and migrated it from my own webserver. I have fixed up most
problems but one issue remains. When I try to upload an image to NextGEN Gallery I get and error
when it tries to generate a thumbnail. QUOTE Fatal error: Allowed memory size of 33554432 bytes
exhausted (tried to allocate 1992 bytes) in
/home/samlock/public_html/wp-content/plugins/nextgen-gallery/lib/thumbnail.inc.php on line 183
It does it for EVERY image size, so it's not because of a big image. Help, please.....
Help Me _ Error Message: "could Not Retrieve Session Record"
IPB-Forum error message (2) Hi ... Please I need help quickly ... I am an administrator of a "IPB-Invision Power Board Forum"
and I cannot login in the ACP (Admin Control Panel) anymore. When I write the user name and password
both are accepted and the login is successfull but then suddenly I get an error message that says:
Could not retrieve session record What can I do to solve the problem ? Please help me
!!!!!....
Phpbb3 - Error 28
(5) I get the following error when I try changing a users group of my Phpbb3 powered forums. QUOTE
SQL ERROR Got error 28 from storage engine SQL SELECT ug.*, g.* FROM groups g, user_group ug
WHERE ug.user_id = 83 AND g.group_id = ug.group_id ORDER BY g.group_type DESC, ug.user_pending ASC,
g.group_name BACKTRACE FILE: includes/db/mysql.php LINE: 158 CALL: dbal->sql_error() FILE:
includes/acp/acp_users.php LINE: 1881 CALL: dbal_mysql->sql_query() FILE:
includes/functions_module.php LINE: 471 CALL: acp_users->main() FILE: adm/index.php LINE: 74 CALL:
p_master->l....
Error 28 (on Phpmyadmin)
What does this error message mean? (10) I have a shopping cart system on my website. It always worked before, but all of a sudden, when I
try to access it i get "Got error 28 from storage engine". Has that got something to do with the
recent problems again, or can someone tell me what this error message means? Thanks. After posting
this I noticed I cannot get into my PHPAdmin anymore. It gives loads of errors: QUOTE Warning:
session_write_close() : SQLite: session write query failed: database is full in
/usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Warning: session_write_close() :
Fai....
Page Load Error When Accessing Cpanel
(0) Not sure what the issue is. I cannot even load up any of the cpanel's to allow me to put in a
password. I have tried the link that is located in the Credit System 2.0 I have tried the links
with subdomain/cpanel I have tried the links with subdomain:2082 All 3 of these just give page
load errors. Please note : This isn't a "my password doesn't work" thread. This is a "I
can't even get cpanel to TRY to load" thread. Thanks in advance.....
Coppermine Gallery Error
(2) Okay.. so i have my gallery set up at photos.chantellepaige.org and everytime i try to access it i
get this error "Coppermine critical error: Unable to connect to database ! MySQL said: Access
denied for user 'giselle_copp1'@'localhost' (using password: YES)" how do i change
the password etc?? or fix the problem??....
Cannot Open Display - Error
(2) I basically have some problems in accessing xWindow applications(SAS and nedit in particular) in the
server. i get "Cannot open display" when i try to access nedit and other applications. I did some
findings on this and thought this might be of some help to you. But I was not able to zero in on
the problem yet. The problem I guess, is the remote not able to enable the display to the server.
The display settings has to be set properly in the remote machine. Commands I tried
setenv DISPLAY xhost + DISPLAY=gl5705rk02:10.0 ....
Error
I REALLY NEED HELP! (0) Well .. I got a problem.. I got an error in the compiler.. Do you know where i can get JDK 5.0? ....
The True Story Of The Internet (without Error)
video about the development of Internet (0) first of all I didn't meant to spam but there was an error with the previous post so I have
posted it again The true story of the Internet was name of the video I watched on
Discovery channel, and since it's an interesting video so I have decided to share it with you...
It talks about the development of the Internet and it makes an Interview with important site owners
such as facebook ,you tube and e b a y The video is divided into 5
parts... I do recommend watching it. /biggrin.gif" style="vertical-align:middl....
Mysql Error
(3) ok i need some more help from the wonderful coders here at Trap. I'm almost done with my CMS
script, but i'm having a problem with the installer.php file, when it trys to inseret the user
data into the database i keep getting the following error: CODE mySQL Error: You have an
error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
right syntax to use near ';INSERT INTO `members` (`id`, `name`,
`username`, `password`, `email`, `title`) ' at lin....
Error While Activating Account
(10) Hello, I was signing up for an account, and it sent me an email with a link to follow to activate
my account and when i cliked on the link i got the following: QUOTE(error message) 404 :: Neave
Not Found Whatever you were looking for, it ain't here. Sorry about that. 2006
Imagefilez.com :: www.imagefilez.com the link that was sent in the email is
http://www.imagefilez.com/validate.php?ses...3e6cffc8c1bd2bb ....
Error E74? (xbox 360)
(11) Okay so me and my friend were playing guitar hero and all of a sudden the screen got all block like
and the graphics all turned into green swirly squares. So we thought maybe the A/v cord was loose or
something i turned off the xbox and re-plugged the a/v cords in now every time i turn the xbox on it
flashes 1 red light and says Error E74 in about every language i know of... I have called
1-800-4myxbox and all they said is that they only fix xbox's with the 3 red light error.... what
do i do? thanks.....
Generic Host Error
Anyone know how to fix it? (10) I've been receiving this errors for months and it seems not get get fixed... I'm using
Windows XP SP2 Home edition... CODE Generic Host Process for Win32 Services encountered a
problem and needed to close. I've tried whatever I can do, googling it, reading almost
everything possible and this error seems to be keep poping out everytime after I get my computer
started and my sound driver seems not to be working after that... I've even tried the hotfix
provided by Microsoft and kept my laptop up to date with the Windows Update and this error seems t....
Psp Error- Tut On How To Fix
When you try to use the internet does your psp get an internal error? (31) First of all, psp can browse the internet with its simple browser. BUT! What you may not know
is that there is a bug where when you try to search or use a wireless lan connection (WLAN) the psp
may say something like: Internal Error (80410A0B) To fix this without any memory loss, take out
the UMD which is in the psp, and also take out the memory card. Next, go to settings, then system
settings and click restore settings, the psp may freeze up, but it is not broken, take out the
batter pack and put it back in, the settings should be restored and all should work.....
Connection Error 800a0e7a On Win Server 2003 X64
(1) We have just set up a Windows Server 2003 x64 system for the purposes of being a dedicated web
server/media streaming server. Up to this point, we have been using Windows Server 2003 x86
environment and everything is running well. I have migrated the IIS settings over to the new server
and all appears to be going well when tested except that I have now lost all DB connectivity to the
3 small Access databases that I have in the server. All permissions and set ups are the same.
Based on past experience, I thought that it had to do with my Jet 4.0 drivers not being up t....
Gmail: 502 Server Error
GMail: 502 Server Error (22) Hey The topic name says it all. Well I have been trying for the last half an hour to log into my
GMail account, but it kept on occuring a Server 502 error. Just wondering if it is just me
or....yeah. QUOTE Server Error The server encountered a temporary error and could not complete
your request. Please try again in 30 seconds. Yep I have tried every minute..for the last half
an hour...(The Time now is 12.13pm Australian Eastern Standard Time) ....
Operating System Not Found
Error Displayed On Start Up (13) So I've been having some difficulties with my Laptop computer. Not the least significant of
them was this problem of not being able to find the O/S. What to do about it? How does the
computer not find the Operating System? I know that it is in there someplace, I had just
re-installed it, but the BIOS was not able to locate it. On the phone to the Manufacturer's
Help Centre. Explain the problem. Real nice guy. Had the answer right handy. Send me an email right
away. Good thing I had another machine available,huh? On startup, the powering on of the machine
tri....
403 Forbidden Error When Accessing My Site
(11) umm this is a problem that i have been looking in other topics to try to fix but i can't seem to
find a answer to what i lookin for. I got my site workin again the other day ok and so i went on to
see it (so i can make more changes) and when i got there i got this QUOTE Forbidden You
don't have permission to access / on this server. Additionally, a 403 Forbidden error was
encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.33 Server at
www.clansga.trap17.com Port 80 now i looked at everything and i can't seem to find t....
Error Installing Windows Xp -error 7 Ntkrnlmp.exe
(11) i have tried to install windows xp on my pc and i get an error right after it ask at the bottom of
the screen to press f2 to restore an error pops up saying FILE
\$win_nt$.~bt\NTKRNLMP.EXE cannot be open error 7 setup cannot complete and has
to close i have had windows xp on the pc before so i know its compatible but i used a different
version of windows before ,this tinme im using a new one and i get this error i seem to find no
solution anywhere about how to resolve this and I was wondering if possible theres something i need
to do,I am not to sm....
Virtual Memory Error... Windows Xp
(5) Im tryin 2 Install an Ebook & when I click the "setup" file, itz givin an error sayin "This program
requires at least 3MB of free Virtual Memory to run"... There r 3 partitions on the Disk Viz., C,
E, F... The Page file size is set as "1536-3072 MB" for C Drive, but other Drives do not hav any
Page File Size set... i've windows xp and win 2000 Plz help me wid thiz problem... Thanx, ....
---> Ftp Error Codes What They Mean <---
(4) CODE FTP Error Messages some nice info about ftp error codes so you know what they mean. i am
sure you see them all the time and sometimes you dont know what they mean, so take a look here. The
most common codes: 421 - often means: too many users logged to the same account. 530 -
wrong login:pass, some servers auto-switch to 530 from 421 when they reach the max # of users.
so notice the error message attached to the code. 550 - common in Ratio site, If the file exsist it
means you have no access to the file or dir. if you try changing dirs in an FTP ....
Error Not A Valid Win32 Application
(10) I get this error message when I try to open some files for example
C:\Downloads\Games\James_Bond_007 is not a valid win32 application or some other
files the error message is always "is not a valid win32 application" What can I do to open these
files so that the error message does not come up? How can I open this kind of file? I am using
Windows Me Pentium 4 1.3 Gigs 256 dram....
Looking for fatal, error, strings
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for fatal, error, strings
*MORE FROM TRAP17.COM*
|
advertisement
|
|