[php] Edit single column in database returns false
Hello Pro's! Im making a webpage, where i post a license key to it, and then the webpage has to edit the column "unlock" in the database "register_advlock" but. when debugging its returning false...
View ArticleForm script
I just made this form in php (nowhere near finished) that checks for user input in the form, if there is no input it gives an error, if there is input and the user submits a form no previous entered...
View ArticleMySQLI query
Hey, So recently I decided to try learn MySQLi but I can't find any in depth guides or tutorials so I'm pretty much trying things out for myself. I'm having trouble with a simple query and I'm not...
View Articlenew to programming and have a problem.
Hey guys new to programming here, learning because I want to (personal interest) been programming for 2-3 days now and started learning PHP today, below is the code i am using, I have successfully got...
View Articlephp function help?
Suppose I have this code $num = $_SESSION['count']; $_SESSION['a'][$num] = $a_letter; $_SESSION['b'][$num] = $b_letter; $_SESSION['c'][$num] = $c_letter; $_SESSION['d'][$num] = $d_letter;...
View Articlefile upload error
hi.. the code i am using for uploading is working fine few days back.. now giving some errors.. please solve it <form action="up1.php" method="post" enctype="multipart/form-data"> <input...
View ArticlePHP batch security
Am I missing anything for my variable security statement? foreach( $_GET as $key => $value){ $_GET["$key"]=mysql_real_escape_string($value) ; } foreach( $_POST as $key => $value){...
View ArticleLinking drupal nodes to the php registration ID
Hi, I have created a drupal 7 site. Now I have created a registration form with ID field. My question is how to link the Node id to the ID(FORM) eg drupal node is node/6--> alias example form id...
View Articlepassing variables via redirect
Hi Professionals I have the following piece of code on my Upload page <td width="33%" align="left"> <?php if ($result==1) header("Location: import1.php?$imagename"); ?></td>...
View ArticleHow to post multiple keys to php script?
Hello! im wondering how to post multiple keys to a webpage.. but somehow it doesnt work really.. if (isset($_POST['key'])) { $userKey = $_POST["key"]; if ($userKey == $key) { if...
View ArticleValidating a Date
OK, so i want my form adds a persons details to a DB, all good so far but i want to grab a birth-date with the form then input that to my DB. mySQL only accepts yyyy-mm-dd format so i need to convert...
View Articleresizing images
Hi I have an app where users upload images. I would like to control the maximum width of images. Is there a way that I can change the size of the image with PHP before it is uploaded Thanks in...
View ArticleSession_id
Notice: Undefined index: id in C:\xampp\htdocs\Guttz\Edit.php on line 2 <?php $id = $_GET['id']; $host = "localhost"; $user = "root"; $pass = ""; $db =...
View ArticlePhp/mysql register form with paypal
I have simple mysql/php register script. Now i need when register click submit then save all data database and then resdict to paypal pay now page. And when payment success then save database...
View ArticleQuestion about using the ternary operator
Hey! I was having trouble using the ternary operator to check if an array exists in a table. For example if $name['name'] exists echo the value otherwise echo the "None". Any help would be...
View Articlemysql result into an array
im trying to get a MySQL result to be stored in a variable(array) so I can use the array later. ive never had to do this before and the search's ive done don't seem to do what I need. the end result...
View ArticleUsing a javascript form on external website
Hi forum, I have a task at work, were I have to transform a long list of coordinates from one coordinate system to an other. For this I use a tool at the following website:...
View ArticleRemoving Multiple/Possible Characters From End of Variable
I hate asking for help (some searches usually find the answer), but I can't figure this one out.... I need to strip a handful of possible characters off the end of a variable and have been playing...
View Articleview several values in a drop down list
i have a table in mysql/phpmyadmin Food, Size, Calories i concatenated 2 values and its working successfully in the drop down list according to this code: <?PHP $query = "SELECT Food,Calories...
View ArticleBlock Following Own Account
Hi,I have been trying to set up a social networking button and I have almost completed. However I have approached it from a wrong angle and have one last piece to finish.I can click the "Follow" button...
View Article