NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Search MySQL Row

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-20-2006, 01:55 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life

Search MySQL Row


How would i search a mysql row? Can someone help? lol.
snike is offline  
Old 06-20-2006, 02:08 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Can you explain it a little more?..
Dan is offline  
Old 06-20-2006, 02:26 PM   #3 (permalink)
Senior Member
 
lpxxfaintxx's Avatar
Join Date: May 2006
Location: Irvine, CA
Posts: 1,082
lpxxfaintxx is just really nicelpxxfaintxx is just really nicelpxxfaintxx is just really nicelpxxfaintxx is just really nice
 



Do you mean get information from a row? Or do you wish to build a search engine on your site?
lpxxfaintxx is offline  
Old 06-20-2006, 02:28 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
I want PHP to find data in a mysql row and I want php delete that data. For example.

My sql has this:
column name: numbers
first row has this data: 1 , 3 ,5, 6, 7

and PHP should find 5 and delete it.

so the row would now has this: 1 , 3 , 6, 7
snike is offline  
Old 06-20-2006, 02:37 PM   #5 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
PHP Code:
$query "SELECT * FROM TABLE WHERE id = 7"// 7 :)
$result mysql_query($query);

$row mysql_fetch_array($result);
foreach (
$row as $key => $value) {
  if (
strstr($value5)) { // You want to find 5 in the item
    
$value str_replace(5''$value);
????: NamePros.com http://www.namepros.com/programming/209163-search-mysql-row.html
    
$id $row['id'];
    
mysql_query("UPDATE table SET $key = '$value' WHERE id = $id");
  }

Not sure if it will work.. but, eh.
Dan is offline  
Old 06-20-2006, 09:57 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
thanks dan and sorry about asking so many questions...
snike is offline  
Old 06-25-2006, 04:22 PM THREAD STARTER               #7 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
Warning: Invalid argument supplied for foreach() in /home/dstorm/public_html/buroku/store/row.php on line 6

I got this error
snike is offline  
Old 06-26-2006, 07:39 PM THREAD STARTER               #8 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
plz...help
snike is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:16 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger