Search found 974 matches
- Sat May 26, 2018 10:12 pm
- Forum: PHP coding => General
- Topic: Grouping By returns first record
- Replies: 5
- Views: 1578
Re: Grouping By returns first record
The asterisk in SELECT * is a wildcard to designate that you wish to select all fields from the table. Because you are using an aggregate function (count / sum / etc) you must have a GROUP BY clause which should include each field that is being selected (in your select clause) but is not an aggregat...
- Tue Oct 27, 2015 7:30 am
- Forum: PHP coding => General
- Topic: oracle and php
- Replies: 1
- Views: 1282
Re: oracle and php
No problem, I'm glad I could help
- Tue Oct 27, 2015 7:30 am
- Forum: PHP coding => General
- Topic: How to load a file 3 directorys back from me..
- Replies: 3
- Views: 1466
Re: How to load a file 3 directorys back from me..
No worries, I'm glad I could help
- Tue Oct 27, 2015 7:28 am
- Forum: PHP coding => General
- Topic: How to detect where a function call came from..
- Replies: 3
- Views: 1481
Re: How to detect where a function call came from..
If you're able to view the source, why can't you just search for calls to the function?
- Mon Oct 26, 2015 6:46 am
- Forum: PHP coding => General
- Topic: Redirect to an application page Not on the same server after login
- Replies: 2
- Views: 1437
Re: Redirect to an application page Not on the same server after login
I always encourage people to consider PDO for a number of reasons, security, speed, and portability are the big ones, but ease of implementation whether you're going procedural or object oriented is a big factor too. Here's a 10 minute or so video by Jesse Boyer of jream.com that shows how easy it c...
- Fri Oct 23, 2015 3:17 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
Awesome, good job. Sorry I haven't been near a computer since my last post. One thing that may help if you're able is to view source on the generated page. In modern browsers a lot of times it will show syntax highlighting and will even flag miss matched tags, etc. I can do that! FWIW, I use Notepa...
- Fri Oct 23, 2015 3:08 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
No problem, I really am always happy to help and am glad we have gotten to the productive stage I almost gave up on
- Fri Oct 23, 2015 2:58 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
Well, after a lot of "fiddling" around with it, I was able to get the html and the php code working together and displaying the content of the $queue variable where I needed it. Awesome, good job. Sorry I haven't been near a computer since my last post. One thing that may help if you're able is to ...
- Fri Oct 23, 2015 1:29 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
There are other "variables" (for lack of a better word) being passed to the php file besides 'queue'. for example, there's one called 'Language'. Language could equal German, Punjabi, Hindi, etc, etc... I'd ultimately like to be able to display somewhere within the html body what the language being...
- Fri Oct 23, 2015 1:18 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
It didn't work with the html tags below the php because the html tags you were echoing were not enclosed within the html document so they weren't being rendered with the page. You're kind of running into the same thing with your most recent submission, because you're closing the html element and the...
- Fri Oct 23, 2015 1:01 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
Try this, it may clear things up. <?php if (empty($_POST['Queue']) === false){ echo '<pre>'; print_r($_POST); $queue = $_POST['Queue']; if ($queue == 'test Environment'){ /*header("Location: http://www.8x8.com");*/ echo "This works"; exit; } echo '"' . $q...
- Fri Oct 23, 2015 11:06 am
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
the window doesn't go anywhere, it just opens and closes. That means that $_POST['Queue'] is being passed, but does not contain the literal string 'test Environment' That said, I have found a solution and here it is .... Your "solution" and I am only calling it that to avoid confusing you, persists...
- Fri Oct 23, 2015 8:30 am
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
I promise I'm trying to help and my critical comments on the code were to explain that it doesn't actually do what you think it does, and it isn't really even doing what it IS doing properly. I'm not condemning you or your effort, just trying to free you from the misconception that the code "works a...
- Thu Oct 22, 2015 9:31 pm
- Forum: PHP coding => General
- Topic: API returned array item in an object. How to select?
- Replies: 7
- Views: 2441
Re: API returned array item in an object. How to select?
For a quick crash course on PHP OOP check out Jesse Boyer's PHP OOP videos starting with : https://www.youtube.com/watch?v=hyXKjAs ... 1CD69ED950 Don't give up you can definitely do it.
- Thu Oct 22, 2015 9:28 pm
- Forum: PHP Scripts
- Topic: href and run ajax
- Replies: 0
- Views: 1595
Re: href and run ajax
See big red box at http://php.net/mysql_connect
Additionally, you'd probably have an easier time doing your ajax with jquery. Check out this page to get started:
http://www.w3schools.com/jquery/ajax_get.asp
Additionally, you'd probably have an easier time doing your ajax with jquery. Check out this page to get started:
http://www.w3schools.com/jquery/ajax_get.asp
- Thu Oct 22, 2015 9:21 pm
- Forum: PHP coding => General
- Topic: Redirect to an application page Not on the same server after login
- Replies: 2
- Views: 1437
Re: Redirect to an application page Not on the same server after login
There are a few problems you should fix first. 1) Don't use mysql_ extension. It's outdated, slow, insecure, and not portable if you outgrow your mysql database and switch up to anything else the bright red box on http://php.net/mysql_connect for suggestions 2) You are handling login and passwords w...
- Thu Oct 22, 2015 9:08 pm
- Forum: PHP coding => General
- Topic: photo under thumbnail
- Replies: 0
- Views: 1109
Re: photo under thumbnail
For any type of real time feedback like that you're going to need to use front end methods like javascript or jquery (still javascript) to update the dom. check out w3schools' jquery primer at http://www.w3schools.com/jquery/default.asp to get yourself started with active dom manipulation with jquer...
- Thu Oct 22, 2015 9:00 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
For your benefit I've commented the code you attached and I'm happy to explain comments or answer any questions you have, but the code you've posted still doesn't actually create a pop up. If I had to guess, the page at 8x8.com actually creates the popup using javascript or jquery when it's accessed...
- Wed Oct 21, 2015 6:16 pm
- Forum: PHP coding => General
- Topic: if is_front_page in wordpress
- Replies: 2
- Views: 1280
Re: if is_front_page in wordpress
ok, in looking at the documentation on https://codex.wordpress.org/Function_Reference/is_front_page and https://codex.wordpress.org/Function_Reference/is_home I think I've got a little insight and can avoid installing it myself. Regardless of whether you've got your initial landing page set to be a ...
- Wed Oct 21, 2015 6:01 pm
- Forum: PHP coding => General
- Topic: API returned array item in an object. How to select?
- Replies: 7
- Views: 2441
Re: API returned array item in an object. How to select?
You've basically got the code right there. The first example you just listed. If you get a response code of 1 and $response isn't null it's valid. So put your code to retrieve and display the error text in the else
- Wed Oct 21, 2015 5:14 pm
- Forum: PHP coding => General
- Topic: if is_front_page in wordpress
- Replies: 2
- Views: 1280
Re: if is_front_page in wordpress
Your best bet may just to evaluate the request parameters to determine what page you're on then. It's been a while since i've done anything with wordpress but I'll spin one up real quick to help you get it sorted, PM me specifics, namely the version you're using and the theme
- Wed Oct 21, 2015 4:39 pm
- Forum: PHP coding => General
- Topic: if is_front_page in wordpress
- Replies: 2
- Views: 1280
Re: if is_front_page in wordpress
One way of many would be:
Code: Select all
<?php
$header = is_home() ? '' : 'sinform';
get_header($header);
?>
- Wed Oct 21, 2015 4:28 pm
- Forum: PHP coding => General
- Topic: How do I Change active window size
- Replies: 20
- Views: 5910
Re: How do I Change active window size
It depends on how you're creating the window. where is the code you're using to fire popup?
- Tue Oct 20, 2015 11:03 am
- Forum: PHP coding => General
- Topic: PHP loop statements for form variables
- Replies: 1
- Views: 913
Re: PHP loop statements for form variables
Yes, just set your form element names and values accordingly
- Fri Oct 16, 2015 7:01 pm
- Forum: PHP coding => General
- Topic: oracle and php
- Replies: 1
- Views: 1282
Re: oracle and php
Your issue is with quotes. It's often easiest to build a variable with your query first, quoted with double quotes and then pass the variable. something like: $conn = oci_connect('it', 'itpassword', 'database.pace.local/ITDB'); ui_print_header('Item Numbers and Docs'); $query = "select trim(A.itemno...