Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

In Progress
Posted almost 8 years ago

$10-30 USD

Paid on delivery
I am trying to get the results of this to come out in table format also to get the email. The email is just a combo of the firstname + Lastname + @gmail. I can't figure it out. This code works but it only prints out the data with a ,. $output =''; //collect if (isset($_POST ['search'])) { $searchq = $_POST ['search']; $searchq = preg_replace("#[^0-9a-z]#i","",$searchq); $query = mysql_query("SELECT * FROM Emp_Dir WHERE FIRST_NAME LIKE '%$searchq%' OR LAST_NAME LIKE '%$searchq%' OR PHONE_NUMBER LIKE '%$searchq%'") or die("could not search!"); $count = mysql_num_rows ($query); if($count == 0){ $output = 'There was no Search results!'; }else{ while($row = mysql_fetch_array ($query)) { $FirstName = $row['FIRST_NAME']; $LastName = $row['LAST_NAME']; $PhoneNumber = $row['PHONE_NUMBER']; $Email = $row["FIRST_NAME"+"LAST_NAME"]; $output .= '<div>'.$FirstName.','.$LastName.','.$PhoneNumber.'</div>'; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <title>Search</title> </head> <body> <?php printf ("$output");?> <table> </table> </body> </html>
Project ID: 11068096

About the project

1 proposal
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $25 USD for this job
User Avatar
I have rich experience of 4 years in core php and mysql. Will be able to complete this task in a day. Kind Regards, Saad Abbasi
$25 USD in 1 day
5.0 (1 review)
0.6
0.6

About the client

Flag of UNITED STATES
Nampa, United States
5.0
43
Payment method verified
Member since Jul 21, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.