How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask TheDoctor Your Own Question

TheDoctor
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1563
Experience:  M.S. in Internet Information Systems
59032869
Type Your Homework Question Here...
TheDoctor is online now
A new question is answered every 9 seconds

**For TheDoctor** Additions and some modifications needed if

Resolved Question:

**For TheDoctor** Additions and some modifications needed if possible More info: www.caxlo.com/bosnia3.pdf

Submitted: 1 year ago.
Category: Homework
Expert:  TheDoctor replied 1 year ago.
Hello again! Thank you for requesting me. I will contact you once this is complete.
Expert:  TheDoctor replied 1 year ago.

Hello again!

You can download the completed copy here:

http://wikisend.com/download/479274/new.zip

Everything that you requested has been completed. You may now update all of those items within the settings page.

You can only register with a bosnia.ba email account. However, once registered, you can update your email account in settings to whatever you want.

When requesting a friend, you will appear on their friend's list as pending. They will have the option to "Confirm" or "Reject" you. This functionality is like Facebook. Until they confirm you, you will not have access to their profile. If you click on them before they have confirmed you, it will just let you know that "Friend Request Pending".

If you attempt to enter nothing into the search box, it will no longer work.

And finally, sending a message now gives the feedback "Message Sent Successfully"

 

You will find within the zip a file called newAlter.sql. As usual, run the alter statement in your database in order to support the new friend confirmation functionality.

Let me know if you have any questions. I'm here to help.

Please remember to rate my answer. Thank you so much!

Customer: replied 1 year ago.

There is only one thing

When clicking on a friend from the feed page when you click on the picture it opens up the friends page as privat, but if you go to friends page and click on that same friend it work fine any idea why.

Expert:  TheDoctor replied 1 year ago.
Download this file:


Replace your profile.php with this one.

Let me know if you need anything else.

Please remember to rate my answer. Thank you.
Expert:  TheDoctor replied 1 year ago.
Hello again,

You should now be able to view the profile just fine. It was not functioning correctly before because I had actually commented out some code in order to test thew condition structures for the new confirmation functionality. I just forgot to uncomment the code.

Let me know if you have any other questions.

Please remember to rate my answer. Thank you again.
TheDoctor, Professional w/Adv. Degree
Category: Homework
Satisfied Customers: 1563
Experience: M.S. in Internet Information Systems
TheDoctor and 2 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

There was one issue I found with the profile request and search form if you could fix it for me.


 


The issue is when you request or confirm a user as friend that works fine but when you search the user who is your friend it shows under the users pic to Confirm or Reject even tho he/she is you friend already.

Expert:  TheDoctor replied 1 year ago.
Download these files:


It is just the Database.class.php and the Constant.class.php

Replace them in your include folder.

Thank you
Customer: replied 1 year ago.

I think you send me the wrong link or the wrong file zipped this one is html and css pages

Expert:  TheDoctor replied 1 year ago.
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
If you've already paid for this answer, simply Login.
Customer: replied 1 year ago.

1 more issue I found is If a user types aposts and types ' it writes / instead. Ex: It' s nice today. It writes It/s nice today

Expert:  TheDoctor replied 1 year ago.
Hello again,

I just wrote "it's a nice day" in the group feed, the friend feed, and the messages. In each case, I was not able to replicate what you are describing.

Have you been editing any files at all? For instance, attempting to add data cleansing of some sort?
Customer: replied 1 year ago.
Hmm okay I migh have done something. I apologize and thank you sir
Customer: replied 1 year ago.

I just checked the last project you did and it still says the same when i type a comment again When i type: It's if come out as It\'s.



You can go to caxlo.com/bosnia3.png to see the screen shot.


 


I thought I mighta have changed but i just unizpped the last project you did for me and the same thing is happening. Its just wierd

Expert:  TheDoctor replied 1 year ago.
Those are called escapes. They are added in the database automatically as a result of real_escape_string. They are supposed to be there.

However, they should be automatically removed when selecting from the database. Odds are, you are not using the latest versions of PHP and/or MySQL.

Now, if you were to do something like "addslashes", you would be doubling up on the slashes and it would cause an error. That error would persist if you viewed the data in any version of the site because the database would have multiple backslashes it it (i.e., the database data is now corrupted).

Dump your database file and send it to me please.
Customer: replied 1 year ago.

http://caxlo.com/sql.sql

 

I think i lost and messed up my sql totally, I'm sorry for bothering you I messed it up I will figure it out, No need for you to waiste you time

Expert:  TheDoctor replied 1 year ago.
The SQL that you sent has no instance of "It's a nice day" in it. That was the goal of look at the data. I would have to see that instance in order to see if the data is messed up.

It sounds to me like at some point along, you used something akin to the addslashes function, which is not necessary when using real_escape_string (which is far superior).

If you use addslashes, you may be forced to use stripslashes later. However, addslashes, again, is completely unnecessary when using real_escape_string. Both are an attempt to escape a string. But the real_escape_string is the one that should be used, as it is built specifically for the database.
Customer: replied 1 year ago.

http://www.caxlo.com/bih.sql


 


Here is my sql i found it

Expert:  TheDoctor replied 1 year ago.
Yes, you have messed up data in there. It appears as though some function was run on the data because the code I gave you does not add backslashes at all. You have double backslashes.

I would need to see your code the way that you have it now (not what I sent you).
Customer: replied 1 year ago.

Could you resend me the last project you did with the sql database i have lost it

Expert:  TheDoctor replied 1 year ago.
Here is the project:

http://wikisend.com/download/269658/completedSite.zip

I am using PHP version 5.4.3 and MySQL version 5.5.24

Nothing in my code adds any backslashes, not even real_escape_string. Real_escape_string escapes quotes by doubling them up, not by adding slashes. If you log in as:

dmonaghan@testemail99.com, password

You will see that I was able to add the single quote in fine without any backslashes being entered anywhere.
Customer: replied 1 year ago.

Thank you so much, Just one last question even after i opened the project you just send me its still same thing happening could it be something else maybe my localhost? its so wierd

Expert:  TheDoctor replied 1 year ago.
What do you mean that the "same thing is happening"?

Using my code will not change the data in your database. You would need start a brand new test. If you look at the old record that you have, it will always have that slash on it because that is the way the data is in the database.
Customer: replied 1 year ago.

I uderstand but with the completesite.zip you just send me i importeted that sql into a new database and typing it the slash is still coming on. Thats why im confused because even the first project you send me i tryied and havent changed any code it happening could it be my computer or something

Expert:  TheDoctor replied 1 year ago.
Alright, we can try two different things:

1.) We can set up a remote session and I can take a look at your system directly.

2.) I can write a function that eliminates backslashes altogether. However, this is a bit of a hack.

In either case, I would need to kindly ask that you enter a new question, starting it with **For TheDoctor**.

Thank you
Customer: replied 1 year ago.

Sounds good I will do it tomorrow.


 


Thank you!

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Last | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4522
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4522
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3458
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3124
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2385
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1988
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1876
    Bachelors Degree and CPA with Accounting work experience
  • http://ww2.justanswer.com/uploads/avremote/photoa.jpg Seanna's Avatar

    Seanna

    Tutor

    Satisfied Customers:

    1781
    3,000+ satisfied customers, all topics, A+ work
 
 
 

Related Homework Questions

Chat Now With A Tutor
TheDoctor
TheDoctor
Tutor
1563 Satisfied Customers
M.S. in Internet Information Systems