Jump to content

KangaBytes

New Members
  • Posts

    4
  • Joined

  • Last visited

KangaBytes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The one problem when I try and add a user, it requires a prefix. I can not get around this prefix, and, when I request a list of users, I only get those with that prefix.
  2. I have tried everything. I can not find the means to, give me a user, of which has global access to all databases, across all webhostings on this server. I have tried, and, I do not have mysqldump as an option. It is not my server, it is one I have hired. I do have dedicated access to this whole server. What should I put into the mysql_connect field? How does Remote user fit into all of this? I have tried numerous google searches on these matters, and fail to get any response.
  3. Ok, I have two websites, both are on the same server, and, I want to transfer all data in the table on one, to a table of the same name on the other. I want to transfer data in the table of one of those websites to the other. What is the best way to do that? I have tried INSERT INTO db2.$g SELECT * FROM db1.$g I get that error, SELECT permission is denied. Some quick facts.... ** I have WHM and cPanel ** Separate webhostings for each of these two websites ** Both are on the same server ** I use PHP 4.4, although I can get PHP 8 if that would be better Now, I have done the following.... ** I have set up another file, {twin-view}, to show information from the table of the same name, in each of the two websites. Two HTML tables sit side by side on the resulting web page. This file works perfectly. ** I have used the same pair of mysql_connect statements in my transfer program as I did with the twin-viewer program. ** I have different user names for each of the two websites. Would it be possible/handy for me to somehow add a common user to both websites, and, if so, how would I do that? ** I have set up all of the tables in, the second website. I just want to copy the data in the tables across. The second website remains empty of data. ** The transfer and twin-view files are on the website 2, of which I aim to copy to. Would it work better if I had this on the source-site? The only way of which I can see for it to work right now is, to do a mysql_query, then use a while loop to insert that data into database 2, just like I would be populating a HTML table for a web page. I am happy to try
  4. I need to, find out how I can, have a double backslash \\ before various characters like quotation marks. I need this, as I use the echo keyword, to create JSON, for a website of mine. Now, I have spent hours experimenting, and so on, and the following is what I have done..... When I use addslashes($a), I get one backslash each time, when I nest one inside the other like addslashes(addslashes($a)), I get three each time. Both times, the JSON parse operator rejected the input. The only option that the JSON parse operator would accept is, when I had two backslashes. That worked out perfectly fine. At the same time, if I may ask this in this forum, I will be happy to accept any javascript solution of which you want to put forward to me here too. I just have JSON.parse(....responseText) on that end.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.