Autos / Toyota Sienna Available In Awka by webapi: 11:49pm On Jun 10, 2023 |
very clean toks toyota sienna 2005 everything is working perfectly 100% buy and drive to london 4.7m good for transporter or family use school car call or chat 08179353237
|
Art, Graphics & Video / Logo Designer Needed by webapi: 9:46pm On Mar 21, 2022 |
I need a logo designer for a quick work. Comment ur number let me call you or you pm me 3 Likes |
Webmasters / Re: Apple Developer Account Needed, To Buy by webapi: 8:29pm On Dec 17, 2021 |
MountainView: Hello, please I'm in need of an Apple developer Account I can Buy to Host my App on the iOS platform Dm me |
Webmasters / Re: My Website Shows "Blank 1" White Screen - Am I Attacked? by webapi: 9:53am On Dec 11, 2021 |
crackclap: No one to help mee? ![cry](https://www.nairaland.com/faces/cry.gif) It is a php bug. Deactivate all plugins and themes to start with 29 Likes 2 Shares |
Programming / Re: What's The Best Bulk SMS API In Nigeria by webapi: 8:34am On Dec 10, 2021 |
|
Programming / Re: What's The Best Bulk SMS API In Nigeria by webapi: 9:38pm On Dec 09, 2021 |
|
|
Programming / Re: Web3 Developer Needed by webapi: 2:13pm On Nov 13, 2021 |
rolams:
Go and check your mail Responded on whatsapp |
Programming / Re: Web3 Developer Needed by webapi: 9:11am On Nov 13, 2021 |
rolams:
You account doesn't exist according to mailer daemon. kjvaljee@gmail.com sorry for the typo. |
Programming / Re: Web3 Developer Needed by webapi: 8:49am On Nov 13, 2021 |
rolams: A web3 programmer needed.
You can mail on kvjaljee@gmail.com to get it done |
Programming / Re: Someone Should Help Me With This Mysql And Vue Problem by webapi: 7:07pm On Sep 30, 2021 |
LarsunDesign:
Thank you sir for your reply.. This is what I was thinking, but there's no way I can store multiple items like arrays in SQL.. I tried using JSON data type, but it doesn't work for my SQL version, so I don't know which other thing to do Use the alternative method i gave. Create a different table to store both user id and post id. So when a user tries to like a post, you first check the new table you created. If the user id and post id exist on same table then don't bother calling the post like table, just send message back to frontend. Hope this helps |
Programming / Re: Someone Should Help Me With This Mysql And Vue Problem by webapi: 4:23pm On Sep 30, 2021 |
LarsunDesign: Hello guys, so I'm working on a project as a self taught developer... I am making a social media application using Node js, MySQL and Vue, but I I'm stuck at one particular place.
I've built my restful API using Node js and My SQL so I could fetch the data using VUE.. now my problem is I want to create a situation where a user can like a particular post in the front end and that will send a message back to the backend that the user has already liked the post . But the problem is I don't know how to indicate in my frontend that a user has already liked a particular post..
My table in my database is like this... User Table
Id username password 1 John Doe encrypted (1244)
Post Table
Id note author_id(foreign_key) 1 post1 notes 1
Post Likes Table
post_id user_id 1 1
Now, this was how I sent the entire post from my database to my frontend...
SELECT post.*,user.username,postlikes.user_id FROM post INNER JOIN user WHERE user.id = post author.id INNER JOIN postlikes.post_id = post.id
But I noticed that when I try sending the data, it's looks for all the post that has the id from postlikes.post_id and send it multiple times times for example.. if a postlikes row has post_id column that's equal to post.id,
it will send them in different rows and I cannot be able to check the user_id in my frontend to see if a user is already included in a particular row...
Please has anyone done something like this and how Did you solve the problem.. thanks I will only advice on how to go about it but wont give you the code. Now on each post you can have an empty where you push the ids of every user that likes a post. So when next the user likes the post, you check the array to know if that user id already exists. If it exists, send back message to the frontend. Alternately you can create a separate table where you save both post id and user id. So when a user likes the post, you check the table to see if both user id and post id exists |
Programming / Re: Argument Settlement! by webapi: 7:00pm On Sep 11, 2021 |
Josefsom:
So what are the similarities?
Similarities between? |
Programming / Re: Argument Settlement! by webapi: 8:13pm On Sep 06, 2021 |
Josefsom:
Let us all clear this stuff once and for all. It is often said that HTML and CSS are not programming languages but make up and styling languages. My question is since they are not programing languages, 'why are they associated with programming languages'?
Are they also computer languages?
No incentive comments. HTML is used for structural purposes on a web page, not functional ones. Programming languages have functional purposes. HTML, as a markup language doesn’t really “do” anything in the sense that a programming language does. HTML contains no programming logic. It doesn’t have common conditional statements such as If/Else. It can’t evaluate expressions or do any math. It doesn’t handle events or carry out tasks. You can’t declare variables and you can’t write functions. It doesn’t modify or manipulate data in any way. HTML can’t take input and produce output. Think of it this way: you can’t compute the sum of 2 + 2 in HTML; that’s not what it’s for. This is because HTML is not a programming language. Hope this settles it more 1 Like |
Programming / Re: Who Can Assist Me With A React Mongoosedb And Node Problem? by webapi: 3:38pm On Aug 29, 2021 |
Princedapace: I will appreciate this if a developer can help out What is the issue? |
Programming / Re: Programmers In The House Pls Come In And Solve My Hassle by webapi: 4:51pm On Aug 25, 2021 |
dodgelord:
ini_set( 'display_errors', 1 ); error_reporting( E_ALL ); $from = "dodgelord@gmail.com"; $to = "peterleeads@gmail.com"; $subject = "Checking PHP mail"; $message = "PHP mail works just fine"; $headers = "From:" . $from; if(mail($to,$subject,$message, $headers)) { //echo "The email message was sent."; } else { //echo "The email message was not sent."; }
i dont know i cant send email to my Gmail account. it is not working
any solution for me Change the from to an email of your domain name. For example info@yourdomainname.com. Hope this helps 1 Like |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 10:22am On Aug 25, 2021 |
dodgelord:
when the visitor leaves the site it will delete from the db If you can do it that way that's fine 1 Like |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 12:26am On Aug 25, 2021 |
dodgelord: where should i store it![](/faces/huh.png) Don't store it anywhere if what you are looking for is visitors counts. Just display the counter on your frontend. Hope this helps |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 1:42pm On Aug 24, 2021 |
dodgelord:
Nice.....
Which one is nairaland using to get guest online? Well i can't tell what nairaland is using but i get mine using socket io. If you are familiar with that, you should be able to get realtime visitors count. Also do not store these info in your database. You don't want to overload your database with a temporary counter. Hope this helps |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 11:48am On Aug 24, 2021 |
dodgelord:
Here's wat am trying to pass to u.
I used 3 phones to access my site to see if it will give a different IP.
But, still getting the ip number no changes Ofcourse it will give you same ip because the ip address php is getting is from your ISP and the location. Php cannot have access to your device details. Only if you are building a mobile app you can have such access. That is why websites uses ip address to block visitors based on location. You cannot block a visitor based on his/her device. So yes your php code is doing the right thing. Hope this helps |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 10:39am On Aug 24, 2021 |
1 Like 1 Share |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 9:44am On Aug 24, 2021 |
dodgelord:
i try to using my mom phone to access my site to see if i will get a diff ip,,,,, but they re the same. Which network are you using? 1 Like |
Programming / Re: This Php Server Remote Addr Is Giving Me Different Device Ip Address by webapi: 11:16pm On Aug 23, 2021 |
Are you using wifi to connect to the website? |
Programming / Re: Please What Is Payoneer Exchange Rate by webapi: 12:56pm On Aug 21, 2021 |
DivergentThinka: Thanks. I went to their website, the only option I saw there was receiving funds as airtime . Kindly give me pointers . Thanks You can receive funds straight to your bank in USD. You just need your client to create an account and you give him your info. Make sure you have a domiciliary account. You can also get your payment as cash pickup if you dont have a domiciliary account 1 Like |
Programming / Re: Please What Is Payoneer Exchange Rate by webapi: 4:02pm On Aug 19, 2021 |
DivergentThinka: Hi, I am a programmer, I want to get paid by a client abroad. I am considering using Payoneer, please does any one have idea of the exchange rate when withdrawing Payoneer to local bank account ?
Any other alternative to receive the funds ? Help a tech bro You can use worldremit 2 Likes |
Webmasters / Re: Which CMS Was Used Here Please? by webapi: 10:53pm On Jul 29, 2021 |
donsheddy1: Cars45 is a custom built web app While majorworld is a WordPress site. Both are wordress built |
Webmasters / Re: Which CMS Was Used Here Please? by webapi: 10:52pm On Jul 29, 2021 |
|
|
Webmasters / Re: Mobile Website Or Mobile App Which Is More Prone To Hacking by webapi: 8:07pm On Jul 19, 2021 |
superjab247:
Why do you think an app is more secured than a website When i say app, i mean real native app/cross platform and not converted app. Now when you create an app, it communicates with the backend through an api. This apis can be secured within the app and it would take alot of cracking to get access to them. Then you are faced with the backend where these apis are made from. These apis may not have html tags on them at all so you cant even scrap anything from them. But for website? You can scrap, you can easily confirm what the website is running on, e.g wordpress. Then all you need is few troubleshooting to gain access. You can even access the admin of many CMS websites. There are alot you can play with on a website compared to an app |
Webmasters / Re: Mobile Website Or Mobile App Which Is More Prone To Hacking by webapi: 6:54pm On Jul 19, 2021 |
superjab247: I am about to build an application either a website or an app,but I don't know which one is more secure from hacking.
Experts in the house between a mobile website and a app which is more easier to hack. Website |
Programming / Re: As A Programmer How Do You Learn/understand A New Language by webapi: 12:19am On Jul 18, 2021 |
SALLYBERRY01: I will be detailed, as a programmer how do you learn a new language, what method do use, for instance while watching a video to learn a programming language, do you always cram the process?, if your response IS NO, you don't cram you try to understand. I have another question after trying to understand is it normal to forget the entire process? I will be anticipating response from programmers thank you. As a good programmer you should first understand that every language has a basic standard but different syntax. What i mean is, if you write PHP, you will know things like print/console, variable, arrays, loops, functions etc. When you go to other languages, you will find these same thing. So first thing is, learn how to print a statement in another language like python, then how to declare a variable, to to map arrays. These syntaxes would be different but you would have understood where you are heading to before jumping into frameworks on such languages. 1 Like |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 7:36am On Jul 10, 2021 |
jikins:
Not sure he is fetching anything to be honest. He is clearly on the path of learning node and express. Most likely he is using a static database object, that has a key of users which has an array of only a handful of users that he coded in.
He his obviously still learning and this is fine for now. Hopefully that is what he's doing |