Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
184 views

I have strings like Origi\"nal and Origi"nal . I want to convert them to raw string and then to a Json String and write to a table in Redshift. Example output of "select col from ...
Ayushi Bansal's user avatar
5 votes
2 answers
4k views

Editing someone else's code found this query: SELECT c.name AS category_name, p.id, p.name, p.description, p.price, p.category_id, p.created FROM products ...
quantme's user avatar
  • 3,655
2 votes
1 answer
2k views

I am keeping record of every request made to my website. I am very aware of the security measurements that need to be taken before executing any MySQL query that contains data coming from query ...
Eduardo Ponce de Leon's user avatar
0 votes
1 answer
503 views

I have code that generalizes building the SQL string to insert a record into a table by (1) setting the 'name' of the form element to be the same as the table column to which it corresponds, and (2) ...
rfm's user avatar
  • 3
0 votes
1 answer
625 views

I am trying to copy image blobs from one table to another, and it is not working, since the mysql_real_escape_string () is no longer available. The special characters in the blob are blocking the ...
Andrew's user avatar
  • 63
0 votes
1 answer
1k views

I have $_POST with 20 keys. I want to apply mysqli_real_escape_string() for the entire $_POST array. So, should I apply mysqli_real_escape_string() to all 20 keys separately? Or is there any loop or ...
Bhavesh Patel's user avatar
0 votes
2 answers
4k views

We have tried this way. But it is not working. please any one tell alternative method in wordpress $wpdb->query("UPDATE ".$wpdb->prefix."recommend_bets SET `title`='".mysqli_real_escape_string($...
Arun Kumar's user avatar
  • 1,633
0 votes
2 answers
1k views

I am struggling with something strange. I am running a mysqli::real_escape_string on a function to prepare an SQL statement. I am taking data from one database and developing a query to insert it ...
Curtis Fuller's user avatar
0 votes
0 answers
119 views

From real_escape_string code is showing as text not running on browser, even dreamweaver showing no error please help if any alternative then please tell me. trying to create a subscribe php form with ...
Pranit Shinde's user avatar
3 votes
1 answer
2k views

I am writing a plugin for Wordpress, where I have my own custom table to store the relevant data being pulled from a remote API. One of the elements I need to store is a URL, which is a TEXT field ...
user avatar
1 vote
0 answers
21 views

Let's say i have this code: $value = mysqli_real_escape_string($con, $_POST['value']); $value = strip_tags($value, '<br>'); for example with this value: $_POST['value'] = "<div>how<br/&...
Itay Ganor's user avatar
  • 4,205
0 votes
2 answers
199 views

So currently I have my code in procedural format so inorder to prevent myself from adding the "link" in the mysqli_real_escape_string function I've made a method that looks like this: // Used to ...
OverBakedToast's user avatar
0 votes
1 answer
166 views

I want to escape all my strings I want to insert in my database. But my problem is, because I have more than 10.000 strings to check, the database queries would be too much... So I use this escape ...
Fraze Jr.'s user avatar
  • 143
1 vote
1 answer
2k views

Using Cakephp version: 2.5.1 I have some trouble finding a solution for dealing special characters in Cakephp find queries. If you could please point me in right direction, I would really ...
sandeep's user avatar
  • 109
10 votes
2 answers
61k views

I would like to insert the content of an excel file into my database. I simply use a raw query to achieve this. The controller function public function uploadExcel() { $filename = Input::file('...
Schwesi's user avatar
  • 4,914
-4 votes
4 answers
8k views

.../general.php on line 10 Hello, this is my error, but only occurs when I upload my web to a host, in the localhost run well. the (return mysqli_real_esc..)line is the "line 10". $conncet = ...
Jeff's user avatar
  • 1
2 votes
2 answers
519 views

why can't I used the mysqli_escape_string function without having a database connection?
Simon Suh's user avatar
  • 11k
1 vote
0 answers
494 views

I am very new to PHP and I am trying to add in precautions to my web form to avoid misuse, these inputs from the user are being stored to a database. I keep getting errors when trying to pass through ...
HybridHaylee's user avatar
0 votes
1 answer
603 views

Just as the title states. Is it a standard procedure/practice to escape number inputs? I know text fields should be escaped, but i'm wondering if I need to escape numbers.
DMort's user avatar
  • 347
0 votes
2 answers
551 views

What's the best way to use mysql_real_escape_string, is it at the beginning like this: $email = mysql_real_escape_string($_POST['email']); $qemail = mysql_query ("SELECT email FROM ppl WHERE email='$...
Saul Tigh's user avatar
  • 177
0 votes
1 answer
841 views

Hopefully a very easy question, but I haven't been able to find the answer. I'm learning to use prepared statements rather than mysqli_escape. I have the code: $stmt = $dbc->prepare("SELECT ...
devsie's user avatar
  • 131
0 votes
2 answers
103 views

I have a php program that uses cookies to store data across pages and redirects. I want to use mysql_real_escape_string() before sending them to my server, so far my code looks like this $...
trecoolable's user avatar
2 votes
2 answers
5k views

I am runing PHP Version 5.4.44 on my website and try to us mysql_real_escape_string but it does not give me any thing .mysql_real_escape_string works just fine in localhost on my computer.Example ...
Usman Mustafa's user avatar
0 votes
0 answers
63 views

I need to insert (for example: "ABC") to my wamp db. I'm using str_replace method for this. Code is as shown below: $currAddr=str_replace(array("'","\"", "&quot;"),"&#39;",htmlspecialchars($...
Kirataka's user avatar
  • 482
0 votes
1 answer
75 views

I have a static database connection established in a file which I include as include_once 'database.inc.php'; named $mysqli. When I pass a parameter $tbname from a form using $tbname = $_GET['tbname'...
socrates's user avatar
  • 347

1
2 3 4 5
8