-
Posts
840 -
Joined
-
Last visited
-
Days Won
1
Everything posted by gristoi
-
ok, it is telling you what you need to know. mysql is no longer used in later php versions, you need to start using PDO
-
how to refresh content every minute (accoring to the clock)
gristoi replied to alapimba's topic in Javascript Help
use ajax -
globals are evil. You imaging you have a global variable call $foo; anywher ein your code this could be overriden without you knowing., singletons ove rthe global scope but stop the value being acciendtly overriden
-
by learning html and css
-
you want to be using the phones gps not sim. main two contenders are java / android sdk or objective c / swift for iphone
-
amazing thing google. first hit: http://plugins.jquery.com/fullscreen/
-
Simple script to show written text on different page
gristoi replied to Radim's topic in PHP Coding Help
this forum is to help people who wishto learn PHPor are having issues with their current code. You have three options: 1. learn to code what you want 2. google to find what you want 3. pay someone to do what you want But dont expect people here to do the work for you -
you need to understand that submitting a form on a stateless page will refresh the page. You want to asynchrousnly submit the data ( submit without reloading the page ) . SO look at using ajax
-
Are you serious? If you intend to code like this then you might as well quit now. Read up on SQL injection, and this snippet is the mother of them all. Im not going to help you any further on this as it could have dire consequences for anyone using this script.
-
$(document).ready(function(){ $(function(){ $(".btn-details").on('click', function(){ var idproduto = $(this).data('idproduto'); $.ajax({ type: "POST", url: "descProduto.php", async: false, dataType: "html", data: {'idproduto': idproduto}, success: function(result){ console.log("success"); console.log(idproduto); }, error: function(){ console.log("error"); } }); return false; }); }); });
-
ALSO MYSQL_* IS DEPRECATED, USE PDO
-
and you expect help without showing any code, we are not phycic
-
it is includes job to 'include' the page. If you want caching then look at something like apc
- 1 reply
-
- php require
- php include
-
(and 1 more)
Tagged with:
-
you are overriding the error_message variable every time you iterate your loop
-
Sorry, is there a problem? ok i will drop everything i am doing and look through the script you found on the internet. Oh no wait, just realised I don't work for you!!!! This forum is for helping people the LEARN php and solve any issues they have with code that they are working on. Not sorting through random crap they found on the internet. You want someone to blindly fix something for you then post on freelance section and expect to dig into your wallet
-
phpmyadmin is open source and available for download, just grab and unzip it. http://www.phpmyadmin.net/home_page/downloads.php Be warned, it's a mess in there
-
PHP form moved to new server, all kinds of weird issues
gristoi replied to rjo98's topic in PHP Coding Help
your two main issues will be down to: 1: server configuration. for example, the script you have pasted above show short opening tags '<?' should be '<?php'. 2. you are correct, you cant port a php4 codebase onto a php5 server. you will have issues with deprecation amonst other things -
try fullcalendar.js has a well documented api
-
you cannot have any output prior to a header
-
WebSocket - status 0, can't establish a connection
gristoi replied to AddanD's topic in PHP Coding Help
if you purchased the script you should speak to the person you bought it from. No one here is going to be able to help you without knowing what the script is doing -
can you define 'not working'
-
Requesting suggestion about my programming future
gristoi replied to Digitizer's topic in Miscellaneous
@jazzman1, you are talking a load of bollocks. I went back to uni at 26 years old to study programming after deciding I wanted a career change, and have been a professional developer in the industry now for over a decade. It does not matter what age you are, and from your comment I would guess you are only young. life doesn't end at 30 mate. I put myself through uni holding down a full time job and with two young children to bring up. -
read the api docs
-
Using variable in mysql_query WHERE statement not working
gristoi replied to sleepyw's topic in PHP Coding Help
ok, to start your query is missing a single quote: try $Domain = $_GET['Domain']; $result = mysql_query("SELECT `Code`, `Title`, `Domain`, `Status` FROM `tablename` WHERE `Domain`='{$Domain}' ORDER BY `Code`"); also make sure $Domain is sanitized and actually exists. You should never pass raw input into a query -
I would say you shouldnt bother submitting it directly in php. use ajax in the $(".submit").click(function(){ $.ajax({ type:'POST', data: $('#joinform').serialize(), url: 'url to your backend php script / controller'' }); }) then in the backend just pull out the form vars $username = $_POST['username']; $pass = $_POST['pass']; //do your data santizing ..... //build a string and sent using curl / guzzle / http client $url = 'http://gatewayaddress?username='.$username.'&password='.$pass ........ etc