-
Posts
1,041 -
Joined
-
Last visited
-
Days Won
17
Everything posted by gw1500se
-
Simple PHP Include Question - I think my host changed something
gw1500se replied to kirkdickinson's topic in PHP Coding Help
What is the error? Do you have errors turned on? error_reporting(E_ALL); -
Did you remove the HTML from 'include.php'? Again the pure HTML should be using the HTML <include> tag.
-
Are you looking to fix code (post it here using code icon and specify PHP and any errors)) or resolve a git problem for which this is the wrong forum?
-
Generally the structure of a PHP include is not a complete HTML file. Rather it is PHP code. Also when you include PHP it should be inside <body> tags. Finally, it appears to me you should be using HTML <include> tags not PHP require.
-
First, please use the code icon (<>) in the top menu and specify PHP. I'm not sure I understand what you are asking but if you leave the empty column name off of your insert, it will not be set unless your schema made it a required field.
-
Sorry. Corrected code.
-
First please use the code icon (<>) at the top of the menu for your code and specify PHP. <?php $tele=get_the_author_meta('telefoon', $curauthID); attrib="" if (empty($tele)){ $attrib="hidden" } echo "<p $attrib><strong>telefoon:</strong>$tele</p>"; ?> Untested.
-
First, please use the code icon (<>) in the menu and specify PHP for your code. You don't say what error your are getting but that syntax is probably wrong. You don't show how $class is defined but as a guess given almost no information from you I'd say you want this: <?php echo ($class->variacion); ?>
-
Not really a PHP question but how can that number be correct? You seem to be dividing GBP by USD. You need to convert bitcoin to GBP before you divide. You need to multiply 43992.43 USD by the current exchange rate (presently £0.74169) then divide £100 by that. However, since the exchange rate is constantly changing you need to look that number up somewhere when you do the conversion. Same with bitcoin which is currently $47,090.04 US.
-
No need to run it from command line, you can just as easily debug PHP using a browser. Just be sure to turn on errors: error_reporting(E_ALL);
-
What have you tried and what didn't work as expected or what error did you get? Post your code and be sure to use the code icon (<>) at the top menu and specify PHP.
-
When posting code please do not use images. Use the code icon (<>) at the top menu and specify PHP. You didn't show how that function is called or any HTML so we can't see what you have for the checkbox. However, as a guess perhaps you are not understanding that PHP is server only and is stateless. Just checking a box will do nothing unless there is another submit to the server. It sounds like you need to output the page with PHP making the old conferences hidden. Then when the check box is activated, use JavaScript to make those visible.
-
This is an English forum and you have already posted this question. Such as it is.
-
retrieve data from a database and display to a logged in user
gw1500se replied to Devfren's topic in PHP Coding Help
Try reading this. -
php curl cant post both form data and file
gw1500se replied to zeynepcakir's topic in PHP Coding Help
Insufficient information. You probably need to post more code. What are your curl_setopts? Particularly CURLOPT_POSTFIELDS? Be sure to use the code icon (<>) in the top menu and specify PHP. What post information does the web site expect and how do you create it? You also need to tell us what the error message is or what you get that is different from what you expect. -
displaying data out of CSV saved in an array in a formatted way
gw1500se replied to AliG's topic in PHP Coding Help
Did you try this? $array=imp_open('C:/xampp1/htdocs/S1/Medikamente.csv'); echo "<pre>"; print_r($array); echo "</pre>"; -
Thanks. I think I found the script. I'll have to open a new thread on the python forum.
-
Thanks for the reply. I have not used the developer tools much in Firefox so I don't know how to do that. I also don't know what javascript is being triggered. I'm only guessing it is Ajax since there is no form tag.
-
I have a page with a 'continue' button: <input class="th_s" data-i18n="[value]report.ContinueButtonResource1" id="MainContinueButton" type="button" value="Continue"/> When this button is clicked it appears to trigger some Ajax script but I can't figure out how it can do anything when clicked. Can someone help me figure out how this button is working? TIA.
-
Are they installed?
-
More information. Does not work doesn't help. What error message do you get or what do you get that is different from what you expect? Do you have error reporting turned on? error_reporting(E_ALL);