By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,359 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

how if i want to include a picture after a message??

100+
P: 127
Below is my coding for job search, if i want to add a small picture (sorry.gif) before the message "Sorry, your search returned 0 results." What code should i add?? Thanks..
jobquicksearch_act.php
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $anymatches = mysql_num_rows($data); 
  3. if ($anymatches == 0){
  4.  
  5.  $message="<p align=center><font face='Arial' size='2'>Sorry, your search returned 0 results.<br>";
  6.  include("jobquicksearch.php");
  7.  
  8. exit();
  9. }
  10.  
  11. ?>
jobquicksearch.php
Expand|Select|Wrap|Line Numbers
  1. <? echo $message;?>
Feb 23 '07 #1
Share this Question
Share on Google+
4 Replies


ronverdonk
Expert 2.5K+
P: 4,258
This answer is sooo simple that I suspect you want something else. However, try this code

[php] $message="<img src='sorry.gif'>".
"<p align=center><font face='Arial' size='2'>Sorry, your search returned 0 results.<br>";[/php]

Ronald :cool:
Feb 23 '07 #2

100+
P: 127
This answer is sooo simple that I suspect you want something else. However, try this code

[php] $message="<img src='sorry.gif'>".
"<p align=center><font face='Arial' size='2'>Sorry, your search returned 0 results.<br>";[/php]

Ronald :cool:

Hi... sorry, untill now i still don't really know how to coding... Really thanks...
That what i want.. :)
Feb 23 '07 #3

ronverdonk
Expert 2.5K+
P: 4,258
Maybe it is now the time to do some beginners programming tutorials on PHP and MySQL.

Judging from your code in other threads I would even strongly suggest that you do that.

Some day you will run into serious problems and there will not always be a forum at hand.

Ronald :cool:
Feb 23 '07 #4

100+
P: 127
Maybe it is now the time to do some beginners programming tutorials on PHP and MySQL.

Judging from your code in other threads I would even strongly suggest that you do that.

Some day you will run into serious problems and there will not always be a forum at hand.

Ronald :cool:
I know, i will doing it after i paasing up my final year project, cause now i'm rushing time to pass up it... Actually some of my code is download from website, and edit it for my own use, i learn the code when i edit it, and i didn't take any tutorial on it cause no time, thus i'm always facing problem... Thanks, i will take some tutorial after passing up my final year project... :)
Feb 23 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.