Find Jobs
Hire Freelancers

MySQL/PHP Help

$2-7 USD

I përfunduar
Postuar almost 12 years ago

$2-7 USD

Paguhet në dorëzim
I have a form I'm working on, where you can vote yes or no for different fandoms. It uses a database. I copied and pasted the data dump for the database (the info is for testing purposes). Inside the zip I've attached you can find the php file with the form and a screencap of the page of the form. Basically, what I want, is for all "fandom"'s that have the same "member" name to show up on the form, which as it stands they will, however I want to ALSO be able to click one of the radio buttons (yes = 1 or no = 0) and then in the UPDATE query, I want it to change EACH data row where either the ID is the same OR where the fandom = fandom and the member = name are the same (I'd think doing it by ID would be easiest but I am not sure). As it stands, I can't get it to update ANY of the rows with the correct "score" (the 1 or 0 based on if yes or no is clicked), let alone for ALL fandoms (meaning, all fandoms on the form, not just like the FIRST fandom) DATA DUMP ======================== CREATE TABLE IF NOT EXISTS `spotlight2` ( `id` int(50) NOT NULL AUTO_INCREMENT, `fandom` varchar(500) NOT NULL, `member` varchar(500) NOT NULL, `score` varchar(5) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Dumping data for table `spotlight2` -- INSERT INTO `spotlight2` (`id`, `fandom`, `member`, `score`) VALUES (1, 'Smallville', 'needtakehave', ''), (3, 'Lois & Clark', 'needtakehave', '');
ID e Projektit: 2768038

Rreth projektit

2 propozime
Projekt në distancë
Aktive 12 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
See private message.
$4 USD në 1 ditë
5,0 (82 përshtypje)
5,6
5,6
2 profesionistët e pavarur ofrojnë mesatarisht $4 USD oferta për këtë punë
Avatari i Përdoruesit
See private message.
$4 USD në 1 ditë
4,0 (2 përshtypje)
1,4
1,4

Rreth klientit

Flamuri i UNITED STATES
Warminster, United States
5,0
50
Anëtar që nga tet 24, 2009

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.