-
Replied To a Post in how to create an application with different users
Looking at your code I have got these questions: 1. What is the purpose of verification2.php script? 2. What is the user identifier you want to use for user redirection? … -
Replied To a Post in How can i remove the error from the top of the page?
First I have to admit there are errors in my code. e.g. I forgot to copy the prepare statement which is most important here. So the right code is (see … -
Stopped Watching Retrieve JSON from PHP
I the objective of the code that I attached this note is to Collect data in a form. Post to a PHP file where the collected information is turned into … -
Replied To a Post in Retrieve JSON from PHP
You have an error in the `displayRet()` function in the line that displays temperature (missing the `>` in the `br` tag): "<br /Temperature: " + inc["temperature"] + It should be … -
Replied To a Post in Retrieve JSON from PHP
This is my version of ajax function. See comments in the code. $("document").ready(function () { $(function () { //setup ajax error handling $.ajaxSetup({ error: function (x, status, error) { if … -
Replied To a Post in How can i remove the error from the top of the page?
To execute the code only after form submission the whole thing has to be wrapped in an `if` block: <?php if(isset($_POST['submit'])) { $title = $_POST['title']; $author = $_POST['author']; $content = … -
Replied To a Post in How can i remove the error from the top of the page?
> And for security reasons use prepared statements. Prepared statements are a feature of a database (like mysql). Variables that are passed to a query get prepared first so a … -
Replied To a Post in Retrieve JSON from PHP
Depending on what you want you might use the third parameter of the [load method](http://api.jquery.com/load/) - a function that fires on complete. Edit: I have just noticed that there is … -
Replied To a Post in How can i remove the error from the top of the page?
This is the PHP part. It is slightly rearanged so the connection and execution gets done only if there are all fields: <?php $title = $_POST['title']; $author = $_POST['author']; $content … -
Replied To a Post in How can i remove the error from the top of the page?
Can you post the rest of the code. The error is comming from some lines after your snippet. -
Began Watching how to create an application with different users
i am trying to develop a humain ressource management application with php, html 5 and jQuery the access to this application must be with a login and password, below the … -
Replied To a Post in how to create an application with different users
First: do not use GET for the form method, use POST. When using GET, passwords will be visible in the URL bar of the browser and will get written in … -
Replied To a Post in How can i remove the error from the top of the page?
OK, then let's do some simple debugging. Insert this line of code just after line 4 in your first snippet: die($sql); This will stop the script and display the query … -
Replied To a Post in Retrieve JSON from PHP
Yes, this is just an example when email would be required. What are the errors you want to check for, is something you have to decide. Edit: I just realized … -
Began Watching How can i remove the error from the top of the page?
Hi, as you know i'm creating my own CMS. This is a part of my code: if (!empty($_POST["Title"]) && !empty($_POST["Author"]) && !empty($_POST["Content"])) { $sql = "INSERT INTO Posts (Title, Author, … -
Replied To a Post in How can i remove the error from the top of the page?
Depending on how your overall approach is to processing form data, but in general it is as easy as: if(empty(trim($_POST["Title"])) || empty(trim($_POST["Author"])) || empty(trim($_POST["Content"]))) { echo "You forgot to enter … -
Replied To a Post in Issue with CURL
You have to exec the post. See also example [here](http://php.net/manual/en/curl.examples-basic.php). curl_exec($ch); curl_close($ch); Also check for errors using [curl_error](http://php.net/manual/en/function.curl-error.php). -
Replied To a Post in Retrieve JSON from PHP
You have to define all the criteria for errors. You have already defined one criteria being file open error. I do not know what other errors you would like to … -
Replied To a Post in Issue with CURL
Sory, did not understand the question. Maybe [this article](http://www.lornajane.net/posts/2011/posting-json-data-with-php-curl) can help? -
Began Watching Issue with CURL
I'm trying to make a curl through php below is the command line : curl -i -H "Accept: application/json" -d "{"username": "divmesselibrary", "password": "677Sure1@"}" https://openlibrary.org/account/login Please I need your help -
Replied To a Post in Issue with CURL
Must be an issue with quotes. Try something like this: curl -i -H "Accept: application/json" -d '{"username": "divmesselibrary", "password": "677Sure1@"}' or: curl -i -H "Accept: application/json" -d "{\"username\": \"divmesselibrary\", \"password\": … -
Replied To a Post in Retrieve JSON from PHP
The jquery [load](http://api.jquery.com/load/) function does exactly that. It is the following function in the local.js: $('#jsonReadButton').click(function () { alert('Click'); $('#jsonReadArea').load('storage/jsonStorage.txt'); }); I added the alert function to check if the … -
Began Watching Retrieve JSON from PHP
I the objective of the code that I attached this note is to Collect data in a form. Post to a PHP file where the collected information is turned into … -
Replied To a Post in Retrieve JSON from PHP
I copied the files form the attached zip and everything works fine. Json gets displayed in the `jsonReadArea` div. Have you checked all permissions are OK? -
Began Watching generate image
hello everyone, i want chage stone and metal of selected ring in php and that changes are requred to save . plz help me -
Replied To a Post in generate image
Post the code you have so far and describe where exactly the problem is. Also, please read [this](https://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question). -
Began Watching PHP MySQL Connection
Hi all, I am trying to populate text on my website from data stored in a MySQL database. I have this script before the <head> of my HTML to establish … -
Replied To a Post in PHP MySQL Connection
The $result does not contain the rows from the database yet. It is just a special PHP type variable that enables fetching of rows. So you have to fetch rows, … -
Replied To a Post in Php Excell img
Sory to come back so late, was quite busy. The approach actually works for me. This is a script, adapted from the [example 3](http://phpexcel.codeplex.com/wikipage?title=Examples) of the PHPExcel examples: <?php /** … -
Stopped Watching $_GET problem
Hello i 'd like to post something because i believe its right but for some reason it doesnt work... I d like to make a link that gets the ID … -
Gave Reputation to SimonIoa in $_GET problem
the solution is this echo '<a class="show-all-photo" href="#show-all-photo'.$messageid.'" style="cursor:pointer" id="show_all_photo">link</a>'; What i tried to do was to try and $_GET the message_id throught the url. I couldn't figure out how … -
Began Watching Php Excell img
Hy i'm using php excell to export some data from my db, one of the collum have full path of a image, instead of show me the path it is … -
Replied To a Post in Php Excell img
You might want to try the HYPERLINK() formula. Haven't tested this, just looked up some info on the net. See also [this link](http://www.devshed.com/c/a/PHP/PHP-Excel-Customizations-Working-with-Formulas-and-Functions/). -
Began Watching error converting array to string
Hi every body, i am new in this forum that i find very interessting i have an error notice with one of my function, "Notice: Array to string conversion in … -
Replied To a Post in error converting array to string
The error message is saying that the value of `$row['callback_function']` is an array and can not be cast to string. In order ot find out what the value is when … -
Began Watching $_GET problem
Hello i 'd like to post something because i believe its right but for some reason it doesnt work... I d like to make a link that gets the ID … -
Replied To a Post in $_GET problem
Is the code <a class="showallphoto" href="'.$base_url.'login.php?showallphoto=' . $messageid . '" style="cursor:pointer"> echoed by a PHP script? If yes, show the whole line. Also test if the link gets constructed OK … -
Stopped Watching errors in inbox.php
Hi im getting this error on inobox.php any ideas please Warning: implode(): Invalid arguments passed in /home/jktempla/public_html/SCRIPTS/DATINGSCRIPT/inbox.php on line 199 <?php // Fetch user random for display on bottom <THIS … -
Stopped Watching table editor sql bug
hy im using this script but unf cant find the bug related to update the values, its keep telling succesuful update but dsnt update in db...[Click Here](http://www.script-tutorials.com/datatables-data-from-ajax-edit-in-place/) -
Began Watching Transitioning to OOP in PHP
Hi all, I've been working with PHP, using procedural methods, for several years now, and have begun to explore the object-oriented side of it. While it didn't take me long … -
Replied To a Post in Transitioning to OOP in PHP
This code: public function get_validator(){ return $this->response_code; return $this->response_msg; } should be probably broken into two methods: public function get_response_code() { return $this->response_code; } public function get_response_msg() { return $this->response_msg; … -
Replied To a Post in table editor sql bug
Sory, but I do not understand the problem. Could you describe it form start. What you have and what you want to achieve. And post relevant code as well as … -
Stopped Watching send data to users folder
i am trying to create a site, when user create his account then make automatic his directory with his name. when he wants to upload his photos, these photos go … -
Replied To a Post in table editor sql bug
If the path is in the `$aInfo['photo']` row then the code would be: echo '<img src="' . $aInfo['photo'] ">' But you have to make sure the path is correct. Maybe … -
Gave Reputation to Szabi Zsoldos in mysql_query() expects parameter 1 to be string, resource given
It would be much easier to use the PDO class for MySQL queries. Also, try to make a rule for your case typing on your Variables. Try this, first create … -
Replied To a Post in mysql_query() expects parameter 1 to be string, resource given
Joshuajames pointed out another error in your query which is you cant use array elements in the string the way you did. The correct way of using compound variables in … -
Replied To a Post in table editor sql bug
You have to add echo statement to every case instance in the function, something like: function updateMemberAjx() { $sVal = $GLOBALS['MySQL']->escape($_POST['value']); $iId = (int)$_POST['id']; if ($iId && $sVal !== FALSE) … -
Began Watching table editor sql bug
hy im using this script but unf cant find the bug related to update the values, its keep telling succesuful update but dsnt update in db...[Click Here](http://www.script-tutorials.com/datatables-data-from-ajax-edit-in-place/) -
Replied To a Post in table editor sql bug
You have to debug ajax calls which is easier with tools like Firebug. But anyway, I think you should check the UPDATE query from the `updateMemberAjx()` function. You can try … -
Began Watching mysql_query() expects parameter 1 to be string, resource given
Hey Im making an online store and cant figure out the section on inserting data into a table (in this case its inserting customer details into a customer table). Its …
The End.