38,020 Topics

Member Avatar for
Member Avatar for Stefano Mtangoo

Hi, I'm becoming more paranoid of security issues (Not Insane anyway :)) and would like to ask you guys what do you do to prevent SQL injection apart from using parametrized query and data validation. Thanks

Member Avatar for Stefano Mtangoo
0
122
Member Avatar for Hani1991

Hello How do you doin I wantto know what this difference between $HTTP_POST_VARS['somevariable'] and $_POST['somevariable'] I read the first one is safer than the second one because the second one prevents hackers from hacking through the computer.. what computer is that?? And how is it safer??

Member Avatar for Hani1991
0
219
Member Avatar for sunnybens
Member Avatar for ibakir
0
230
Member Avatar for ibakir

i have received message from Daniweb to my email talking about a list of threads that you've recently viewed on DaniWeb i like it very much, so i'm asking how can i do it from zero . using Adobe Dreamweaver cs5 and zendFrameWork Beside if i can write a function …

0
111
Member Avatar for ebanbury

Hello, I have set up a script to add paging to a search results page. Which on the first page works fine. The recordset calculates how many pages there should be depending on the number of results returned from my search and how many records I have set it to …

Member Avatar for ebanbury
0
129
Member Avatar for kira_

I always get this error: "Error updating joke: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1" There's something about this part of my code that causes that error and …

Member Avatar for faroukmuhammad
0
193
Member Avatar for meghanetpulse7

Hi there, I want to create a website where user can create his own flowchart. Like on left side, there should be 12 blocks. Then, user can drag, drop blocks to right side and create his own diagram. Now, every block should have specific price for it. Lets say, there …

Member Avatar for Pro2000
0
72
Member Avatar for geekme

I'm using ubutnu 10.10 and using eclipse php editor.But i don't know how to run the PHP file in the browser.As for simple text editor we just go to browser and write the url as "localhost/file.php".Please help.

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for Stefano Mtangoo

This have been a problem to me for long now and I want to settle it once and for all. PHP and MySQL DateTime and date fields have been headache to me. Suppose I have fields ------Name--------------BirthDate--------LastTimeYouAte-- ------VARCHAR(255)------DATE-------------DATETIME-------- Now, When I do insert, How do I format PHP Date and …

Member Avatar for Stefano Mtangoo
0
265
Member Avatar for Jhon E

Hello everyone I am encountering a problem while using pagination with GET[] Function. Code does work well in the index page where the website displays all the categories, however i am encountering the problem when i want to use pagination with a specific category. EX:- Cars This is the URL …

Member Avatar for ddymacek
0
123
Member Avatar for Sarao

Hi, I used the code [code] <?php $con = mysql_connect("localhost","clickim_forum","thankyou1"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("clickim_forum", $con); $result = mysql_query("SELECT userid FROM user ORDER BY userid DESC LIMIT 0,1"); echo "<table border='0'>"; echo "<tr>"; while(row = mysql_fetch_array($result)) { echo "<td style='color:#FF0000 '>" . $row['userid'] . …

Member Avatar for faroukmuhammad
0
156
Member Avatar for cjohnweb

So, I have this wordpress driven site, and I have a plugin written that runs when a post is viewed. The content of the post is loaded into $content. I also have a database of keywords and links to other posts on my site. I want to search the $content …

Member Avatar for cjohnweb
0
168
Member Avatar for mbarandao

Hello: I'm trying to select specific data from code 2 below, using the variable $clientID queried from code 1 (also below). The question is if code 1 iterates a series of rows containing variables $clientID (say about 10 unique $clientID's); how can I write code 2 to go through each …

Member Avatar for mbarandao
0
408
Member Avatar for mbarandao

I have the following code which performs a sql select with a where condition involving an array. I want subsequent queries (within the same code) to be performed using each unique value of the array Here are the specifics: This initial query begins the process by creating an array from …

Member Avatar for mbarandao
0
288
Member Avatar for Jiaxin

Hi, i got this error. Please help. Fatal error: Call to undefined function mysqli_list_fields() This is my code, <?php include 'dbFunctions'; $fields = mysqli_list_fields("fyp", "criteria", $link); $columns = mysqli_num_fields($fields); ?> <form method="post" action="doSelectCriteria.php">; <select name = criteria>; <?php for ($i = 0; $i < $columns; $i++) { echo "<option value='".mysqli_field_name($fields, …

Member Avatar for Stefano Mtangoo
0
637
Member Avatar for AngelicOne

How could I validate a checkbox and radiobutton input using PHP? I wish to display a message if there's no selected value from checkbox or radiobutton. I tried this for my checkbox. [CODE]$check = $_POST["checkbox"]; if(empty($check)) { echo "You need to select at least one from the checkboxes"; } [/CODE] …

Member Avatar for AngelicOne
0
140
Member Avatar for AngelicOne

I know it's a good way to catch an exception but why not just make it into a simple if..else statement and run a block of codes then used die to stop the code following it from executing or echo to enable the scripts following it from executing. What's the …

Member Avatar for pritaeas
1
193
Member Avatar for palsoft

Hi, I have PHP script which is calculating some Google Maps API functions in Javascript and then sending output back to PHP. My biggest problem is, that i need it to run at intervals, but AFAIK cron can't handle javascript I've tried a little workaround - setting cron which sends …

Member Avatar for palsoft
0
2K
Member Avatar for pakunoda

hello to *.. I am new in php can you please help me here! cant insert my data into my database. [CODE]<?php error_reporting (E_ALL ^ E_NOTICE); $add = $_POST['add']; //Add button $date = $_POST['date']; $project = $_POST['project']; $task = $_POST['task']; $originated = $_POST['originated']; $incharge = $_POST['incharge']; $deadline = $_POST['deadline']; $status …

Member Avatar for pritaeas
0
189
Member Avatar for vaanipala

Hi, I'm getting: Parse error: parse error in C:\wamp\www\Ajax\getcd.php on line 28. (I have highlighted line 28 in red.) for the following simple program that retrieves data from cd_catalog.xml file and displays in txthint div when user selects artist's name from select box. does anyone know on what i'm doing …

Member Avatar for karthik_ppts
0
234
Member Avatar for jogesh_p

hello friends i am new in php, i tried a code to remove special characters into the string, i tried the following codes,, [code=php] $user = "some string here"; preg_match_all('/[^A-Z][^a-z_-][^0-9]/', $user, $result) [/code] but the problem is that if i give the string like : name@#$@$# it also accepted buy …

Member Avatar for jogesh_p
0
649
Member Avatar for 4789787

There is one file: Login.php and another, checkcookies.php, the login.php is meant to have a remember me button but I dont want that anymore, I just need a cookie to be added when they login for as long as possible, but its confusing me on how to do this. Here …

0
73
Member Avatar for pakunoda

Good day to *. I having this kind of error when i tried to view all my data in the Database. [CODE]Warning: mysql_query() expects parameter 1 to be string, resource given in C:\wamp\www\pm website\php\bulletin_board\bulletin_board.php on line 51 Error Sir[/CODE] and here's my code. [CODE]<?php $con = mysql_connect("localhost","root",""); if(!$con) { die …

Member Avatar for karthik_ppts
0
203
Member Avatar for riseguim

Hi, I am rebuilding a new website for a company and they already have a .htaccess file with the following code in it: [CODE]RewriteEngine on RewriteCond %{REQUEST_URI} !(/liens_photos/20091111|images/olympique07/) [NC] RewriteRule (.*)\.html? /$1\.php [L][/CODE] Unfortunately I am very new with this and I want to know what this code does exactly... …

Member Avatar for almostbob
0
143
Member Avatar for knitex

im just wondering if there is a way to solve my problem. Right now in my database I have a table called headstonesa that I have searchable. But there is a colum called codes that has 9 letters to it which stands for the cemetery. When you search the table …

Member Avatar for faroukmuhammad
0
92
Member Avatar for mbhanley

Having A Problem in getting results to display correctly I seem to be getting two sets of results displayed for categories "cat_title" when I only need it displayed once. What is the best way around this does anyone know whether I should define using an mysql query or PHP. [CODE] …

Member Avatar for mbhanley
0
299
Member Avatar for debasishgang7

As i dont know php i am unable to understand how this code is working? Can any body please help me to convert the following php code into python code. [CODE] function icmpChecksum($data) { if (strlen($data)%2) $data .= "\x00"; $bit = unpack('n*', $data); $sum = array_sum($bit); while ($sum >> 16) …

Member Avatar for debasishgang7
0
94
Member Avatar for cali_dotcom

Hi, I have a forum based on VBULLETIN, now i know this is not a vBulletin forum, but what i need is a php solution. i have to change postbit's rateposts( thumbs up/thumbs down) mechanism from a GET to a POST because users were just copying the urland illegally raising …

Member Avatar for faroukmuhammad
0
94
Member Avatar for phorce

Okay, I have a posting system, so when a user posts something it displays.. Now I want the background of these to be like this: - White - Grey - White - Grey Now, I've done it before, but only using tables.. So I'd have like: <?php $bg = ($bg=='#eeeeee' …

Member Avatar for karthik_ppts
0
119
Member Avatar for patrickm129

Hi, I made a login form on my site but I am new to javascript and do not know how this could be done (See title). I am trying to make an alert start if one of the login forms are left empty. Any advice is greatly appreciated, thanks in …

Member Avatar for Pro2000
0
361

The End.