I have some PHP files from a content management system. I uploaded the
compressed files to the server, but how do I un-compress them now? I am
using Filezilla. Can it be done, or do I have to uncompress the file on my
computer and then upload?
thanks
--
PHP General Mailing List (http://www.ph
Hello,
Thanks for all of the responses ... I am going to use
mysql_real_escape_string.
Michael.
Jordi Canals wrote:
Hi, a couple of comments:
--snip--
htmlentities(htmlspecialchars($_POST['tentry_body'])) . "'";
--snip--
Why are you using both htmlentities and htmlspecialchars? Think that
htm
Hi, a couple of comments:
> --snip--
> htmlentities(htmlspecialchars($_POST['tentry_body'])) . "'";
> --snip--
Why are you using both htmlentities and htmlspecialchars? Think that
html only converts some entities while htmlentities converts all ...
so, for your purposes, apliying only one could
They do not do the same thing.
mysql_escape_string() is what you're after, if you're inserting data from user input into an SQL
statement, regardless!
Jed
--
_
(_)___Jed Smith, Code Monkey
| / __| [EMAIL PROTECTED] | [EMAIL PROTECTED]
| \__ \ +1 541 606-4145
_/ |___/
I really need help to solve this problem. Help me to solve, please do
not say to ask someone else.
My problem is i have .txt file size of 3-5 kb with long rows. I have a
mysql table and a column
type of longtext, name "html". What I have to do is: I have to open
.txt and read inside and
insert t
On Sun, 2004-12-19 at 18:31, Michael Gale wrote:
> Hello,
>
> I am working on a ticket tracking system and using htmlentities and
> htmlspecialchars on text that gets inserted into the database.
>
> code I have:
>
> --snip--
> if ((isset($_POST['tentry_body'])) AND strlen($_POST['tentry_b
Hello,
I am working on a ticket tracking system and using htmlentities and
htmlspecialchars on text that gets inserted into the database.
code I have:
--snip--
if ((isset($_POST['tentry_body'])) AND strlen($_POST['tentry_body']) > 5) {
$query .= " tentry_body = '" .
htmlentities(htmlspecialchar
On Monday 20 December 2004 03:54, Chris Shiflett wrote:
> --- Brad Ciszewski <[EMAIL PROTECTED]> wrote:
> > Please help me figure out what I did wrong.
> >
> > *connects to database*
> >
> > $email = $_POST["email"];
> >
> > $checkEmail = mysql_query("SELECT *
> > FROM memberInformation
--- Brad Ciszewski <[EMAIL PROTECTED]> wrote:
> Please help me figure out what I did wrong.
>
> *connects to database*
>
> $email = $_POST["email"];
>
> $checkEmail = mysql_query("SELECT *
> FROM memberInformation
> WHERE email = '$email'");
Please read this:
http://php
i appologize i forgot to add the rest:
if($checkEmail != "0"){
echo("The email address has already been
registerd with an account.");
include("../includes/footer.php");
exit;
}
Thanx!
Brad Ciszewski
www.BradTechnologies.com Web Services
"Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message
news
Hi everyone, I am having some issues with this script. I am making a form
which registers a user. However, i want to check that the email address isnt
already registered in the database. Below is the syntax which i used. Please
help me figure out what I did wrong.
*connects to database*
$email =
* Sebastian <[EMAIL PROTECTED]>:
> just a question, what is the best way to sanitize your scripts when you're
> using $_GET or $_REQUEST in a query?
>
> eg, i usually just do:
>
> if(is_numeric($_REQUEST['id']))
> {
> mysql_query("SELECT id FROM table WHERE
> id=".intval($_REQUEST['id'])."");
>
Barley wrote:
If I run the script from a shell prompt as root, it outputs "Yes". If I run
as any other user, it outputs "No." It also gives this error:
Warning: mysqli_connect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (13)
Check permissions on /var/lib/mysql.
Thanks Jed,
Im just trying your method.
If i have any problems ill reply to this post
Jamie
"Jed Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is done in a few examples using base64_encode() and base64_decode().
> A particular OpenGL example I can recall encoded a
I want to a binary php,used in SCO 5.0.5
,Who can help me.
15 matches
Mail list logo