is it possible to input nested data into MySQL database using a PHP for? (Structure: 1.first name, 2. last name, 3. phone numbers, (start nest) 3.1. Mobile Home, 3.2. Home phone, 3.3. Work Phone) so 3. Phone Numbers don't have any data except starts the nest, ultimately i'm going to outout the database to json format - PLEASE ADVISE/HELP (i'm new to PHP)
$result = $db->prepare('SELECT * FROM members WHERE email=?');
$result->execute(array($emailInput));
$count = count($result->fetchAll());
if ($count > 0){
echo "0";
}
else {
echo "1";
}
return;
The email textbox should validate as soon as it loses focus, but it doesn't and I can enter emails that are already in the database and still get through. what's wrong?
@dyelaw i have some JSON that i keep up to date by editing the file manually, every time someone email's me the data, i input it myself, i want to make a form where they can input it themselves and it'll update the json file, i've read that a MySQL Database can output json with some scripting (which i've tested), but i need to figure out how to get the data into the database first
@dyelaw ultimately this is the json i need outputted, how can i make it so a NON-Coder can update the json?
i have some json that i keep updated manually, but as the data is sent to me via e-mail, the more data the comes in the more time i'm spending writing json
is there a way to build a form that will take some data (text & uploads), and write/output JSON into a file or database? - i've tried resear...
Dave, i really need some help - i donate my time to the church to take care of the website, but i need some help because its taking up too much of my time to do so
I'm assuming this is a contacts form for the church's website. After the user submits his/her data, how will the information be shown on the website? (Or is it just for staff eyes only?)
This is the output i need
{
"album": "Text_Input",
"artwork": "DefaultURL/http://www.ggcc.tv/ArmyoftheLord/Army%20of%20the%20Lord.png/OR Overwrite with Uploaded Image",
"church": "City Name And State Wich can be selected from Dropdown Menu",
"cityartwork": "Default URL Will Be Se...
@DaveChen Album=AlbumName(which can be typed in), Artwork=a default url would be set, but if a image is uploaded to the servers, its url would be used, church: this is going to be a city name church can be selected from a drop-down menu, des: will be a description of the album(which can be typed in), release date (self explanatory), and then the array of tracks would be a name for that track and its associated file which would need to be uploaded to the server
completely amazing, just a couple questions, 1. can album artwork value be changed if a image is uploaded in it's place, 2. can the outputted json be collected to a single file? you see how i have godsgypsychristianchurch.net/music.json - also Dave i am going to need alot of help, i need to build a custom CMS and this is one of the most important parts, can we work something out, through paypal? or i get get you some iTunes or Amazon Cards or something in return
no, artwork's value is set to "http://www.ggcc.tv/ArmyoftheLord/Army%20of%20the%20Lord.png", which is good, but if i have another image on my computer (for the album), i'd like "http://www.ggcc.tv/ArmyoftheLord/Army%20of%20the%20Lord.png" to be rewritten with the newly uploaded image's url (this image should also be saved to the server
suppose I have a refresh token, how much times can I use this token to obtain an access token?
I have read quite a bit of sources on this, most of them say a refresh token never exipres, thats cool, however does that mean it can always be used to get the access token?
@DaveChen AWESOME! i see the upload option and when i don't use it the jsonout outputs "Default Set from PHP" perfect!, and when i did upload a image the file went into /artworks, but also when i did upload a image the json still outputted "Default Set from PHP" but like i said the file did, go to the server
1. a image should be uploaded, 2. that image should be saved to the server, 3. the url to the newly saved image should be outputted into the json, 4. if there is no image uploaded the json should output a "default url" in its place
Yeah, how to keep everything in one file, but i want to mention something (because i'm not sure if it will alter the way you need to code or not), later i need a script that can edit entry's or delete them, that and other things which need to be like in a admin area so i can give out usernames and passwords
eventually, thats what i need to make (like a custom CMS)
Yeah, its gonna control music albums, a bible study directory (PDF Files/eBooks), Audio Sermons, and alot more, which is all free for everyone to be blessed by
Dave, this script will help me a lot, because theres a bunch of CD's i need to input, but like i said i need a CMS, i'd like to be able to contact you on a regular basis, and i'd be happy to offer you something in return
yeah, music.json is fine
i can write up a complete list of things i need the CMS to do and email it to you
and you let me know what its worth to you for your help in return
yeah it is, but it took me a couple of years to figure it out, and its very hard to maintain, there's like 20 church's that send me all there data and CD's and i write it in by hand, and i donate my time, and theres no one else who can help me, since i'm the only one who has some type of coding skill's
Well then, God bless you brother, and yes the songs are amazing, You'll love them - but some are in our language "Gypsy Language" but there are a lot of them that are in english as well
there also a shoutcast radio station that you can stream, and there's also a iOS and Android app that i had made
Can anyone explain me what computer do when we create text file and save the data into it? How it store the data into file? How it will read data from harddisk?
@vascowhite Not necessary that a zend certified eng should know everything, many users learn things on their own, about the web, doesn't know some concepts..
@Mr.Alien Yes, I'm self taught, but that was the kind of thing I learned first, over 30 years ago. Maybe it was easier then as OS's and computers in general were simpler.
@vascowhite Depends in what field is he interested in, like graphic guys don't care how pc works, so he must be focusin web, but yes, a small search can answer his question
For purposes of my javascript sort, I must keep the Thead at a fixed width. There is 5 columns, and I want the first column to be twice as wide as the others. I tried inserting <divs> into each cell on the column row and styling the widths that way, but it doesn't have any affect (unlike the tbod...