Portal Home > Knowledgebase > Articles Database > solve my php problems


solve my php problems




Posted by elena1234, 03-03-2010, 07:41 AM
please let us know how to solve it. Last edited by writespeak; 03-24-2012 at 09:14 PM.

Posted by bear, 03-03-2010, 08:48 AM
You might get more interest if you explain what the problem is?

Posted by elena1234, 03-03-2010, 08:58 AM
my problems is Parse error: syntax error, unexpected T_STRING in D:\xampp\htdocs\ram\aa.php on line 43 Last edited by writespeak; 03-24-2012 at 09:13 PM.

Posted by TheSimpleHost-Nathan, 03-03-2010, 09:12 AM
Works fine for me...

Posted by elena1234, 03-03-2010, 09:27 AM
hey TheSimpleHost-Nathan, what is your reply

Posted by TheSimpleHost-Nathan, 03-03-2010, 09:33 AM
That was my reply, it works fine. I get no PHP errors (apart from the obvious DB errors).

Posted by tim2718281, 03-03-2010, 09:46 AM
1) the code does not check that the mysql_connect worked 2) the code does not check if the mysql_select_db worked 3) the code does not check if the mysql_query worked 4) the code contains the mysql_query within a loop over its results. I'm not sure what that will do.

Posted by HivelocityDD, 03-03-2010, 11:49 AM
Hey, The code looks very weird to me. I couldn't find a reason for this code to work. 1) $db=mysql_select_db($db_name); this line does not call the mysql resource id It should be some thing like It will be great if you could point out whats there in your line numbers 40,41,42,43,44 The error seems to be some semicolon missing or not having a statement completion or string in-completion Thnanks

Posted by TheSimpleHost-Nathan, 03-03-2010, 11:56 AM
It's not correct, but it will work.

Posted by HivelocityDD, 03-03-2010, 12:07 PM
TheSimpleHost-Nathan Are you able to see the "******'s inside the php statement ? How you expect it to work ? the possible comments in PHP is //, /* */ or # Not sure how its working for you ... happy to hear that it worked at least for you :-D

Posted by TheSimpleHost-Nathan, 03-03-2010, 12:12 PM
Yes, I'm fully aware of that. I made the assumption that the *'s were for formatting of the post. It worked for me by copy & pasting his code, doing a F&R for *'s and then checking..

Posted by energizedit, 03-03-2010, 12:14 PM
Try changing the single quotes here to There may some issue with the quoting in the echo statement.

Posted by TheSimpleHost-Nathan, 03-03-2010, 12:19 PM
That works OK, so it shouldn't be the quotes that are the problem. I checked the script and got no errors, I used: aswell. What version of PHP are you using?

Posted by amillerweb, 03-03-2010, 12:54 PM
Isnt Onclick="selectall();" a function? embeded into html you must make a call to distinguish Onclick=""? idk, its early

Posted by TheSimpleHost-Nathan, 03-03-2010, 12:56 PM
It's javascript

Posted by amillerweb, 03-03-2010, 01:00 PM
Well that explains it, I never learned Javascript! lol



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
High server load (Views: 623)
Hoster complete down ? (Views: 649)
APlusHosting down? (Views: 700)

Language: