Jump to content

question on mysq1 real escape string


Shadowing

Recommended Posts

on the first column do I need to escape that? "pm_id"

if so how do i do that with the right syntax

is it like this?

pm_id = '.mysql_real_escape_string.'

 

 

<?php $mail2 = "INSERT INTO pm SET pm_id = '', sendto = '".mysql_real_escape_string($to)."', sentfrom = '".mysql_real_escape_string($from)."' ?>

 

Also when you create a new row with a id  having auto increment. do i have to do id ="" so there isnt ever two rows matching the same id?

Link to comment
https://forums.phpfreaks.com/topic/253729-question-on-mysq1-real-escape-string/
Share on other sites

ok good then so i can leave it out and not have to worry about someone getting the same id

 

someone said i had to do that in a tutor i was doing like 3 weeks ago so i always wonder if it was true

 

thanks alot for the help thorpe

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.