| | |
Run time error!!!!!! Pls help...
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Ok Nav it is now working correctly....
But the echo statements after the query
while($row_join=mysql_fetch_array($result_join))
{
$name_n=$row_join['t1.personal_name'];
echo "name from page=".$name_n;
is not working!!!!! There is no error messages displaying.. but there is nothing printing other than the query
But the echo statements after the query
while($row_join=mysql_fetch_array($result_join))
{
$name_n=$row_join['t1.personal_name'];
echo "name from page=".$name_n;
is not working!!!!! There is no error messages displaying.. but there is nothing printing other than the query
Whats t1.personal_name ? Is t1 a table name ? If yes, then I would suggest you to use an alias for that column. For example,
That ll solve your problem.
Cheers,
Naveen
php Syntax (Toggle Plain Text)
$query="select t1.name as name, t2.dept_no as dept from emp t1, dept t2 where t1.dept_id=t2.dept_id"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $name=$row['name']; ............... }
That ll solve your problem.
Cheers,
Naveen
Last edited by nav33n; Feb 8th, 2008 at 2:29 am. Reason: Added more.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Similar Threads
- Help when running error (VB.NET)
- what does it mean A Runtime Error? (Windows NT / 2000 / XP)
- excpetion error (C++)
- windows xp installation error!! pls help! (Troubleshooting Dead Machines)
- JSP with MySql (JSP)
- RmDir and MsChart Have Problems in XP -Pls Help (Visual Basic 4 / 5 / 6)
- Please HELP newcomer - can't find server,DNS error, page cannot be displayed (Viruses, Spyware and other Nasties)
- Help Please (Visual Basic 4 / 5 / 6)
- pls help! programs don't work, scandisk error (Windows 95 / 98 / Me)
Other Threads in the PHP Forum
- Previous Thread: Data from mysql in a 3 columns table
- Next Thread: 2 Regex Questions
| Thread Tools | Search this Thread |
ajax apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm msqli_multi_query multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql static subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web websphere white xml youtube






