No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
Try this <? if($name=='Mary') { ?> <script type="text/javascript">alert("Hi, Your Name is <?=$name?>");</script> <?php } ?>
please check does that 'categories_id' field exist in the Products table or are you using the correct spell for this field?
Please put the line number 110 of your code here. You probably missing ";" semicolon or some other syntax error like using some undefined varriable. Thanks
Do you have any record in the 'job' table for that employee? because you are inner joining the job and employee table on job id field. So if there is no record for that employee it will take you to the employee.php form. You can add the following test code …
echo "<a href='../file/".$info['file']."'>LINK</a>"; That's how link is written in ECHO statement.
Yes, simply put input type="password" because browser understands that it is a password field. Browser by default shows * for that password field. Thanks
I think cloud09 just asked a simple question whether it should write the HTML in echo or not, and you guys started pointing his errors :P Yes, there is no difference you can use the both ways. But if you are using heavy HTML then it's better to don't ECHO …
Object oriented programming is definitely better than the structured programming because of the main feature of "CODE RE-USABILITY". You should try PHP 5 for Object oriented programming. It is definitely different from structured programming but it's logical and easy to understand. This is an article about Object Oriented PHP: [url]http://www.devarticles.com/c/a/PHP/Object-Oriented-Programming-in-PHP/[/url] …
Do you have saved data in correct form? Does it show any special character in the tables as well?
$countofrecs=mysql_query("SELECT count(*) from auctions WHERE a_title LIKE '%".$searchterm."%' OR category_id = '$catid'"); $cnt=mysql_fetch_array($countofrecs) ; echo "Your search terms returned ".mysql_num_rows($cnt)." results"; I hope that'll help. Thanks
[url]http://www.amazon.com/Object-Oriented-PHP-Concepts-Techniques-Code/dp/1593270771[/url] [url]https://www.packtpub.com/oop-php-5/book[/url] [url]http://www.codewalkers.com/c/a/Programming-Basics/Beginning-Object-Oriented-Programming-in-PHP/[/url]
Nice solution. That'll definitely help us :) Mike, [url snipped]
You can also make javascript validation along with the Server Side Validation on the form in order to post/get the correct values. I hope the above solution did help. Thanks, Mike [url snipped]
The End.
Virtualbase