389 Posted Topics

Member Avatar for annyangel

[http://www.daniweb.com/web-development/php/threads/469605/this](http://www.daniweb.com/web-development/php/threads/469605/this)

Member Avatar for pelle12
0
146
Member Avatar for tqmd1
Member Avatar for pzuurveen
0
120
Member Avatar for EmilyJohnson

also check out [mysql_real_escape_string ](http://php.net/manual/en/function.mysql-real-escape-string.php) (will not solf your problem but prevent hacking)

Member Avatar for EmilyJohnson
0
301
Member Avatar for dean.ong.14
Member Avatar for pzuurveen
0
209
Member Avatar for callmerex

I checked out hpage. You can't upload php-files. But they do have a default contact-form that sends email.

Member Avatar for pzuurveen
0
112
Member Avatar for Indians

I'm not sure what your asking for. to get the id of the last insert into the db: [mysqli.insert-id](http://us3.php.net/manual/en/mysqli.insert-id.php) show the code you have problems with

Member Avatar for Indians
0
1K
Member Avatar for davidjennings

The only thing I can think of: make sure your url is: http://localhost/youfile.php not c:\wampp\htdocks\yourfile.php (what you will get if just clicking on it)

Member Avatar for davidjennings
0
354
Member Avatar for nancybrown1959

You have a error in your mysql_connect stament. make sure you have the right host, user, and password

Member Avatar for Lsmjudoka
0
434
Member Avatar for suraj32
Member Avatar for suraj32
0
189
Member Avatar for Gloak

[http://php.net/manual/en/imagick.getimageorientation.php](http://www.http://php.net/manual/en/imagick.getimageorientation.php) see the example

Member Avatar for pzuurveen
0
544
Member Avatar for nadiam

are you sure` if(isset($_POST['jansave'])) ` is true? if not the script exit whitout output is 'jansave' the name of your submit-button? start with `var_dump($POST)` to check

Member Avatar for nadiam
0
371
Member Avatar for silent lover

Your file isn't valid json to create it you have to put all output through json_encode Also recoment using `header("Content-type: text/json");` to create a true json-file

Member Avatar for pzuurveen
0
271
Member Avatar for jalpesh_007

You also need a mail server. That is not normaly part of a wampp instalation. Should be fine on your hosting server. to install on localhost: [http://flowingmotion.jojordan.org/2012/04/26/how-to-set-up-email-with-wamp/](http://flowingmotion.jojordan.org/2012/04/26/how-to-set-up-email-with-wamp/)

Member Avatar for Jamblaster
0
324
Member Avatar for amulet_john
Member Avatar for urbanthistleuk

also maybe: $sql="UPDATE db SET 2nd_email_sent ='1' WHERE 2nd_email_sent ='0' AND stage_two = '1'";

Member Avatar for urbanthistleuk
0
264
Member Avatar for jacob21

sounds like a job for the webserver to me. may this helps: [http://linuxpoison.blogspot.nl/2012/02/setup-and-configure-bandwidth-limiting.html](http://linuxpoison.blogspot.nl/2012/02/setup-and-configure-bandwidth-limiting.html)

Member Avatar for diafol
0
144
Member Avatar for msz900

You are trying to use sessions with a html-file. create your login form (now in login.html) in the login.php And don't include it on other pages

Member Avatar for jkon
0
304
Member Avatar for Stanley_1

[simplexml](http://www.php.net/manual/en/simplexml.examples-basic.php) or [domdocument](http://www.php.net/manual/en/class.domdocument.php)

Member Avatar for pzuurveen
0
151
Member Avatar for renierdbruyn

This just caught my eye line 105 ` if ($male == 1 && $gender = "male") ` shoulden that be : ` if ($male == 1 && $gender == "male") ` also on line 107

Member Avatar for broj1
0
259
Member Avatar for annyangel
Member Avatar for devianleong

2147483647 is the largest possible integer. cast $OrderID as a string ([typecasting](http://www.php.net/manual/en/language.types.type-juggling.php#language.types.typecasting))

Member Avatar for diafol
0
184
Member Avatar for ruhestorer
Member Avatar for sruthisru

yes that is posible You can use the mysql function [curdate] (http://www.w3schools.com/sql/func_curdate.asp) or use the php object ` $date = new DateTime("now");` What do you have so far?

Member Avatar for diafol
0
253
Member Avatar for Victor_4

take look at this tut [http://www.tizag.com/phpT/phpsessions.php](http://www.tizag.com/phpT/phpsessions.php)

Member Avatar for pzuurveen
0
4K
Member Avatar for MWEB
Member Avatar for MWEB
0
169
Member Avatar for lewashby

$db->query returns a [sqlite3result](http://www.php.net/manual/en/class.sqlite3result.php) not a string. Use [$db->fetcharray](http://www.php.net/manual/en/sqlite3result.fetcharray.php) to get the values

Member Avatar for lewashby
0
214
Member Avatar for sabarinadh.ch

if you did write this code, it should be not that hard - place the file checking part into a foreach($_FILES as $file) loop - save the file name in an array - change the query and table to accept multipe icones

Member Avatar for diafol
0
793
Member Avatar for dannybarh
Member Avatar for pzuurveen
0
101
Member Avatar for my3h

are you planning to store id, features and values, as an array (exploded to string or not)? This is a bad idea. better is to have 2 tables: product: id, name, ... product_features: id, -> primery key (autoincrement) product_id, -> forenkey -> the id from the product table feature, -> …

Member Avatar for my3h
0
138
Member Avatar for dyea.marcello

if both $author and $title are NULL, $result2 will be undefined. Use isset() before using it.

Member Avatar for pzuurveen
0
165
Member Avatar for dannybarh

typo for [realpath()](http://php.net/manual/en/function.realpath.php) should test on the dir name only $doc="userimages_doc/1364905979.3535.doc"; $dir=pathinfo($doc); $document=realpath($dir['dirname']).DIRECTORY_SEPARATOR.$dir['basename'];

Member Avatar for pzuurveen
0
3K
Member Avatar for Priti_P

> simple mail invitation in php. There is no way to delete mail that is already send. That has to be done by the receiver.

Member Avatar for Priti_P
0
120
Member Avatar for shrikanthnk

That is normal browser behavior Redirect to a deferent page when your done: if(mysql_affected_rows() > 0) { header("location : thankyou.html"); exit; }

Member Avatar for shrikanthnk
0
171
Member Avatar for best4earn

add `define(‘WP_DEBUG’, true);` to your wp-config.php to see errors

Member Avatar for best4earn
0
176
Member Avatar for chrisschristou

one to many %s $query_lignecommande = sprintf (" INSERT INTO lignecommande(commande,article,quantite,prix,subtotal,total) VALUES (%s, %s, %s, %s, %s, %s)", GetSQLValueString($row_commande['id'],"int"), GetSQLValueString($row_panier['article'], "int"), GetSQLValueString($row_panier['quantite'],"int"), GetSQLValueString($row_panier['prix'],"double"), GetSQLValueString($row_panier['subtotal'],"double"), GetSQLValueString($row_panier['total'],"double"));

Member Avatar for chrisschristou
0
372
Member Avatar for Brandon_4
Member Avatar for veedeoo
0
321
Member Avatar for anestistsoukalis
Member Avatar for jerry717

I agree with jorgeM an example: <html> <head> <script> function validate() { if (document.forms["frm"]["name"].value) { alert("Welcome " + document.forms["frm"]["name"].value + "!") return true; // form will submit } else { alert("no user"); return false; // form will not submit } } </script> </head> <body> What is your name?<br> <form name="frm" …

Member Avatar for diafol
0
282
Member Avatar for NitsPatel
Member Avatar for AARTI SHRIVAS
Member Avatar for boney

change your links into radiobutons <style> input[type=radio] { display: none; } </style> <form> <ul> <li><label><input type="radio" name="cat" value="1" onchange="this.form.submit()" <?php if(isset($_GET['cat'])&& $_GET['cat']==1) echo "checked ='checked'";?> > ca1</label></li> <li><label><input type="radio" name="cat" value="2" onchange="this.form.submit()" <?php if(isset($_GET['cat'])&& $_GET['cat']==2) echo "checked ='checked'";?> > ca2</label></li> <li><label><input type="radio" name="cat" value="3" onchange="this.form.submit()" <?php if(isset($_GET['cat'])&& $_GET['cat']==3) echo "checked …

Member Avatar for pzuurveen
0
2K
Member Avatar for t_thakar

foreach ($array1 as $array2) { $number[]=$array2['number']; } array_multisort($number, $array1);

Member Avatar for t_thakar
0
421
Member Avatar for vishaalMandge
Member Avatar for andreiviziru

Have you cheched if the new user is succesfull inserted into the database (before the activation step)?

Member Avatar for andreiviziru
0
1K
Member Avatar for ehpratah

a example: [http://www.tizag.com/mysqlTutorial/mysqlsum.php](http://www.tizag.com/mysqlTutorial/mysqlsum.php)

Member Avatar for ehpratah
0
189
Member Avatar for davy_yg

[http://www.opensourcecms.com/](http://www.opensourcecms.com/)

Member Avatar for pzuurveen
0
85
Member Avatar for Myronz

I realy like [jquery mobile](http://jquerymobile.com/demos/1.2.1/) for the ui And do the database thing yourself

Member Avatar for jkon
0
286
Member Avatar for bradly.spicer

Any reason why you don't use the wp-build-in database class: [$wpdb](http://codex.wordpress.org/Class_Reference/wpdb)?

Member Avatar for pzuurveen
0
190
Member Avatar for spluskhan

You never set the values of ` $id, $ISPID, $Aug2013 and $Sep2013` Do a ` var_dump($_POST)`, they are in there. check out [mysql_real_escape_string](http://php.net/manual/en/function.mysql-real-escape-string.php) also notice that mysql is deprecated and replaced by [mysqli](http://nl1.php.net/manual/en/book.mysqli.php)

Member Avatar for diafol
0
376
Member Avatar for cip6791

no jquery, just normal javascript see: [http://www.w3schools.com/js/js_timing.asp](http://www.w3schools.com/js/js_timing.asp)

Member Avatar for veedeoo
0
1K

The End.