8,966 Posted Topics

Member Avatar for solomon_13000
Member Avatar for mrhankey

[url]http://httpd.apache.org/docs/2.0/misc/security_tips.html[/url] [url]http://dev.mysql.com/doc/refman/5.6/en/security-against-attack.html[/url]

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for deraad

Not sure what your input represents, but you could replace all double comma's and remove all spaces.

Member Avatar for diafol
0
155
Member Avatar for 18engineer
Member Avatar for geekman92

Some typos: [CODE]//role.php file <?php $name_var = 62; echo '<form method="POST" action="update_role.php">'; echo "<select id=\"dropdown\" name=\"$name_var\">"; // WRONG QUOTING HERE //option tags in here... echo '</select>'; echo '<input type="submit" name="btn_update" id="button" value="Update" />'; echo '</form>'; ?> //update_role.php file <?php $name_var = 62; $getVar = $_POST[$name_var]; // FORGOT THE DOLLAR SIGN …

Member Avatar for geekman92
0
191
Member Avatar for luweegee

Why all those queries if just one does the job: [CODE] $sql = "SELECT `blog_category`.`id`, `blog_category`.`cat_name`, `posts`.`post_title` FROM `blog_category` INNER JOIN (`posts`) ON `blog_category`.`id`=`posts`.`post_category_id`"; $rows = mysql_query($sql); $cat_name = ''; while ($data = mysql_fetch_assoc($rows)) { if ($cat_name <> $data['cat_name']) { echo "{$data['cat_name']}<br/>"; $cat_name = $data['cat_name']; } echo "{$data['post_title']}<br/>"; } [/CODE]

Member Avatar for luweegee
0
373
Member Avatar for narekm

I don't think there is much else you can do, except for maybe caching your results somehow (if possible).

Member Avatar for narekm
0
199
Member Avatar for martin11ph

I think this should do it: [CODE] SELECT name, id FROM list GROUP BY name ORDER BY name, id [/CODE]

Member Avatar for martin11ph
0
154
Member Avatar for phoenix_2000
Member Avatar for phoenix_2000
0
244
Member Avatar for garyrichard

Why would you want to print in PHP ? For a special print style, you can use CSS.

Member Avatar for KamranArshad
0
247
Member Avatar for AngelSword

What server language are you using (for sending the e-mail) ? This cannot be done with just javascript (the validation can, but it is best to do it again on the server).

Member Avatar for pritaeas
0
159
Member Avatar for andy106
Member Avatar for pritaeas
0
1K
Member Avatar for bob on whidbey
Member Avatar for crapped
Member Avatar for shahiduop

This will solve part of it: [code] <table width="86" border="0" align="center"> <?php $count = 0; while($show_std = mysql_fetch_assoc($get_stds)) { if ($count % 4 = 0) echo '<tr>'; echo "<td class='std_success_td'><img class='stdpic_success' src='uploads/{$show_std['std_pic']}' /></td>"; if ($count % 4 = 3) echo '</tr>'; $count++; } ?> </table> [/code]

Member Avatar for andy106
0
951
Member Avatar for RobotFX

Personally, I would use [iCODE]is_numeric()[/iCODE] on the age as an extra check, as well as checking an upper and lower boundary (say 0-110). For sex I would explicitly check for your allowed values, or maybe default to one of them if the data is incorrect.

Member Avatar for Sorcher
0
252
Member Avatar for BorisBox
Member Avatar for calebcook

The way it is done on some sites: after buying a key is generated (and the zip file in a protected location) in the database and e-mailed to the buyer. He can then access a download.php using that key. After 30 minutes, the key expires and the download.php will not …

Member Avatar for calebcook
0
187
Member Avatar for itengineer7

I don't think you can set this in your crontab. You can however add a check to your script. Set some database record while it is running. If the script is executed, first check this record. If it has the running value, abort, otherwise continue.

Member Avatar for pritaeas
0
109
Member Avatar for RazorRamon
Member Avatar for komara

Your query is wrong, typo in FROM. Also read the sticky thread in this forum on how to find out what is wrong.

Member Avatar for pritaeas
0
234
Member Avatar for bbizzl

[QUOTE=bbizzl;1687203]As of right now the script emails everybody but just not in the correct email format.[/QUOTE] Please explain, what format is not correct ?

Member Avatar for pritaeas
0
153
Member Avatar for revski
Member Avatar for lenyjose

You can read an rss file with SimpleXML for example. Generating an rss feed is simply turning your records into a well-formed xml file.

Member Avatar for peter_budo
0
187
Member Avatar for PhatBEAT
Member Avatar for pritaeas
0
255
Member Avatar for gikonyo

That means your query failed. Try: [CODE] $result = mysql_query($sql) or die(mysql_error()); [/CODE]

Member Avatar for gikonyo
0
298
Member Avatar for siva28
Member Avatar for pritaeas
0
119
Member Avatar for devinodaniel
Member Avatar for garyrichard

These files can only be used in combination with Navicat or their Report Viewer. I suggest you contact Navicat for an online solution.

Member Avatar for pritaeas
0
393
Member Avatar for ankit.pandey3

Have you enabled the mssql extension in the php.ini ? In wamp it is disabled by default.

Member Avatar for ankit.pandey3
0
178
Member Avatar for lakshmi_suchi

The solution is a lot of hard work checking and fixing your HTML and CSS for all browser inconsistensies. There is no simple solution.

Member Avatar for Dandello
0
133
Member Avatar for stanley87

This process from Google describes a valid method to authenticate calls: [url]http://code.google.com/apis/maps/documentation/webservices/#SignatureProcess[/url]

Member Avatar for pritaeas
0
123
Member Avatar for hindu times

See the example given in [URL="http://www.daniweb.com/web-development/php/threads/374239"]this thread[/URL].

Member Avatar for hindu times
0
453
Member Avatar for jocky c

This will probably fix it: [CODE] fputs($fp, "{$_POST['Fullname']},{$_POST['Jobtitle']},{$_POST['email']},{$_POST['file']},\n"); [/CODE]

Member Avatar for jocky c
0
165
Member Avatar for daniel36
Member Avatar for pritaeas
0
90
Member Avatar for IanArcher

A preg will not suffice, as there can be more classes separated by a space. Have a look at preg_replace_callback. You pattern will look something like this: [CODE=text] / class="(.*?)"/ [/CODE]

Member Avatar for pritaeas
0
175
Member Avatar for 54uydf

You keep opening and closing the mysql connection. Try opening it before your loop and closing it when you are done.

Member Avatar for digital-ether
0
3K
Member Avatar for sacarias40

Personally, I'd use a database to store which domain should use which query vars. As soon as someone enters a new domain, you'd have to check which (if any) you should allow. For example in your youtube link there could be session/language/etc query vars, which you don't need. I don't …

Member Avatar for sacarias40
0
150
Member Avatar for satishk_golu
Member Avatar for mayreeh

Hard to say, I assume it's not working ? If the file is not deleted, check if $file contains a full path, or a relative one. The problem could be in deleteFile(), so show what it does.

Member Avatar for pritaeas
0
158
Member Avatar for Stefano Mtangoo

A CSS only theme can get you quite far I think. Just make sure your building blocks can be accessed by id's, and similar items by classes.

Member Avatar for Stefano Mtangoo
0
155
Member Avatar for rswathi
Member Avatar for lobebe

Can you give an example of what you want as output. Next, post the code that sets the facilities property.

Member Avatar for lobebe
0
106
Member Avatar for diafol

The way you describe it, it sounds like the timetable should be a part of the user. And yes, protected can be accessed only by ancestors and descendants.

Member Avatar for diafol
0
215
Member Avatar for manaila
Member Avatar for Pavel Burminsky
Member Avatar for Pavel Burminsky
0
73
Member Avatar for geneh23

"Fatal error: Cannot redeclare makeRandomPassword() (previously declared in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\Test\Scripts\register.php:76) in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\Test\Scripts\register.php on line 88" The function you declare on line 88 is already declared in your register.php. If you really need that function, give it another name. If it is the same as in register.php remove …

Member Avatar for nalini@121
0
231
Member Avatar for davy_yg

The value of a textarea should be between the tags, not in the value attribute: [CODE] <textarea> textarea value goes here </textarea> [/CODE]

Member Avatar for kevindougans
0
125
Member Avatar for bangla
Member Avatar for azdonald

[CODE] if (isset($_POST['q'])) { $var = $_POST['q']; } if(isset($_POST['txttablename'])){ $tbl_name = $_POST['txttablename']; } [/CODE] $var and $tbl_name are only given a value, if their POST counterpart is set. You should give them a default (empty) value. I usually do this: [CODE] $var = isset($_POST['q']) ? $_POST['q'] : ''; $tbl_name = …

Member Avatar for azdonald
0
287

The End.