|
I created an html page with days of the week Mon Tue Wed Thu Fri Sat Sun The corresponding page is linked to each day I would need that when the page opens, the day is automatically highlighted based on the day of the week and that there is a bar under the day to highlight it Example: if today is Friday, Fri becomes a different color than on other days I've seen similar things on web pages, but I don't know where to start. Is there anyone who can help me? Thanks |
1
156
|
||
|
I want to create a webpage which will automatically send an email before 2 days. <form action="try.php" method="post"> <p>Date From : <input type="date" name="date1" /></p> <p>Date To: <input type="date" name="date2" /></p> <input type="submit" name="submit" value="Submit" /> </form> <?php // echo("First name: " . $_POST['firstname'] . "<br />\n"); echo("Last name: " . $_POST['lastname'] . "<br />\n"); $date1Timestamp = strtotime($date1); $date2Timestamp = strtotime($date2); //Calculate the difference. $difference = $date2Timestamp - $date1Timestamp; echo $difference; ?> |
0
10,499
|
||
|
I've tried absolutely everything!! How can I flush the output buffer in CodeIgniter from within either my controller or my view?? They use some weird double/fake output buffer or something. Grrr! |
0
2,388
|
||
|
Link in MySQL: https://wahlburgers.com/dorchester Variable loaded: $website = $row["website"]; How can I echo the word "Website" as a hot link to $website ( https://wahlburgers.com/dorchester ) inside an HTML form? This is what I've tried: <input type="text" id="website" name="website" value="<?php echo "<a href= '" . $website . "'>" . "Website" . "</a>"; ?> "> Thanks . . . |
1
78
|
||
|
Does anyone know of an automated tool that will convert a lot of jQuery code to native javascript? I think the bulky jQuery library is really slowing down my site but manually converting all my code seems very daunting. Ideally there would be something that was so flawless I could continue coding with jQuery and it would deploy my code as native JS. Hey, a girl can dream, right? |
0
211
|
||
|
Can anyone suggest me which one is a better platform for e commerce website development? |
7
3,243
|
||
|
I'm struggling to upgrade from [CodeMirror 5.5](https://codemirror.net/) to [CodeMirror 6](https://codemirror.net/6/). Previous versions of CM have always been a drop-in Javascript library. Upload the JS files, upload the CSS file, include a `<script>` tag referencing the JS file, and then use the API to make a bunch of calls to incorporate it into your web app. This latest version of CM is still an early prototype. I'm trying to follow the instructions in its [Github repo](https://github.com/codemirror/codemirror.next/) but I'm thoroughly confused. So far I was able to do `npm run dev` and I'm able to get a test page that works fine … |
0
77
|
||
|
Has anyone started working with PHP 8 yet? Any big backwards compatibility issues? I finally got around to upgrading to php 7! Lol better late than never. |
2
73
|
||
|
In terms of performance, which is the best jQuery CDN to use? The one at cdnjs.cloudflare.com, googleapis.com, jsDelivr, code.jquery.com, etc? |
0
408
|
||
|
hi all iam working as software developer i wish to create my blog website using asp.net and C# so any one have idea so please help me in this Please thak you in advance |
1
1,747
|
||
|
I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a table with their work. I now want to be able to give the option to retrieve all of the rows in a table and be able to select a row to load. I have previously created a form where i populate a single field into a drop down and select … |
1
218
|
||
|
Hello, I Have this website and I am trying to make the footprint smaller in text size. How to do so? http://gsa-constructionspecialist.com/home/vision-mission https://www.tinymce.com/docs/configure/content-formatting/#fontsize_formats This is the fontsize_formats in tiny mce. I already try to insert a new feature to change font size in tinymce and have not been successful yet. Can anyone help me out? |
0
843
|
||
|
For example. I have a select statement that is "select ID from students where student name ='name';" Now I don't wanna echo the student ID but I wanna store it in various where I can reuse it. How do I do it. |
1
155
|
||
|
Hlo Plz anyone give a coading of classic asp i want to save my csv and excel file in databse |
0
1,229
|
||
|
Hello to all, I am trying to execute a mysql query for selecting * rows from the table where user name = [one of the usernames stored in an array]. Ok. Sorry if I am not clear. Now I have an array naming $users[]. I want to select all the users listed in $users[] from a mysql table. Please tell me how can I do that. |
0
17,598
|
||
|
I am trying to hide a radio button based on wether or not a user is an admin <?php if (($_SESSION['admin']) == 0) ?> <script>document.getElementById('adminbutton').style.display = 'none' </script> <?php if (($_SESSION['admin']) == 1) ?> <script>document.getElementById('adminbutton').style.display = 'block' </script> Obviously the above doesn't work.. Any help is, as usual, greatly appreciated. Thanks |
0
45
|
||
|
Hi. I have one drop down menu and one textfield. The drop down menu will display the book's id and book's name that retrieve from the database while the textfield will automatically display the book's name based on the user selection from the drop down menu. I try to use the javascript function to do this but since the value for the option is book's id so the textfield is displayed the book's id but not the book's name. What should I do so that the textfield will display the book's name? Below are parts of the code. [CODE] <?php … |
0
274
|
||
|
I would like to start building a search database, by providing a portal for users to search a search engine, like Google. Is it possible for a visitor to the portal site, to present to Google their own IP address, instead of the portal site's IP address? Is it also possible, for the portal to access the search result, so that it can use the results to build a search database? |
2
185
|
||
|
I have a fillin form , which has a submit button. In order to get to the fillin form, the user has already been authenticated and a session has been created, and variables have been added to the session. In order to process the information, I have another 'insUpSel.php' file which does two things: 1) populates a MSSQL database via a stored procedure with the contents of the session 2) retrieves the results from the MS SQL table and populates an HTML table with multiuple result rows. I want to prevent users from running the 'insUpSel.php' form manually and if … |
0
140
|
||
|
New to this forum and to programming in PHP, so apologies if I miss some detail. I have found some code which does almost everything I need, but I can't figure out how to get the 'selected item' from the results on an secondary page (reading in post) .. this properly retrieves a list of names from a sql table and populates a select list, and two input boxes <div id="ifNew" style="display:none" > <form name = "form2" action="../Form/modified.php" method = "post" enctype = "multipart/form-data"> <div class = "form_data1"> <?php $stmt = sqlsrv_query( $conn,$tsql ); if( $stmt === false) { die( … |
1
348
|
||
|
Hello everyone, Could someone please help me with an Html and CSS issue. I am using asp.net c#. I am stuck in how to create an array of buttons in HTML. I do know how to create 1 button but I need to create about 10-12 buttons. Would like to know how to declare an array. Thank you |
0
86
|
||
|
Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket <h1>Fruits</h1> <pre>Apple Juice</pre> <pre>Kiwi</pre> PVC thing Trash <h1>...</h1>"; How can I add "p" tag to Basket, PVC thing and Trash so output would be: someVariable = "<p>Basket</p> <h1>Fruits</h1> <pre>Apple Juice</pre> <pre>Kiwi</pre> <p>PVC thing</p> <p>Trash</p> <h1>...</h1>"; Thank you |
1
394
|
||
|
Hi all, I have been confusing myself for days over this so bear with me if it gets a bit confusing. I have a table called tags with columns id, name which list all unique tags (linux, php, mysql, etc.). And I have an array that includes some tags that have been entered: $tags = array('linux,php,mysql'); Now when the array has just one tag I can search the tags table and return whether the tag already exists in the table or not. But I am unsure how I can go about checking for each array item. My thinking on how … |
0
78
|
||
|
$stmt = $dbconn->prepare("SELECT * FROM `members` WHERE username=? AND password=?"); $stmt->bind_param("ss", $username, $password); Is what I have. Database is connected etc. How can I set variable called `$dbresult` with array of SQL result? I don't want to set individual variables. I really need an entire array as answer. There's couple answers but some of them are outdated ("such function doesn't exist in this namespace") and others involve 10+ lines of code-functions that should actually be shorter. What is a clean and finite way to extract entire array out of prepared statement? |
0
1,832
|
||
|
This question specifically relates to PHP's Memcached library when specifying a server key and adding multiple keys at once. **Question one**: Is it true that PHP's setMultiByKey() doesn't take advantage of the memcached server's native support for setting multiple keys at once, but that the logic is on PHP's side as a simple for loop, setting keys individually? **Question two**: Strictly from a performance perspective, in a case when one could expect the keys to already exist on the server more than 90% of the time, which of the following is more efficient? // Option 1: Setting everything and letting … |
0
184
|
||
|
please if anyone could tell me, how it would be possible, i want to save the content of a uploaded word document in database field with php, no problem with encrypted file like ( ´V z2Ö<Ö<ôÿÿÿÿÿÿ·üü?????ÿÿÿÿSSS8‹DÏLS¥9à1) as it shows if you open a word document in a browser. just want to save content of whole document in field. thanks for help in advance. i read it somewhere open file with fopen save it in variable n then save it in database, is it possible in that way ? |
0
2,601
|
||
|
Greetings to everyone, I am working as a freelance web developer, i have more than 4 years experience in osclass scripts. I am working in the osclass scripts for the past 4 years and have created nearly 67 sites in osclass, and have created many plugins, cuztomized themes, plugin cuztomizations according to the clients need. I saw many of the post was unanswered here regarding the osclass scripts, so i make this new topic those who are wandering for a good programmer for their osclass script, reply me here if you need my support, thanks. |
1
264
|
||
|
I am a nyophyte to PHP, and I've seen this answered so many different ways that it is confusing. I have a combobox that is dynamically populated from a MySQL table ACTIVE in a database AIRCRAFT. Based on the selected AIRCRAFTREGISTRATION value from the combobox, I want to find and display the value from a column in the same table labeled USEABLESEATS for the record with that AIRCRAFTREGISTRATION. Here is the code combobox: <select name="AssignAircraft" size="1" id="AssignAircraft" style="position:absolute;" <?php $mysqli = NEW MySQLi('hostname','User','Password','AIRCRAFT'); $resultSet = $mysqli->query("SELECT AIRCRAFTREGISTRATION FROM ACTIVE"); ?> <SELECT NAME="ACTIVE"> <?php while($rows = $resultSet->fetch_assoc()) { $acreg = $rows['AIRCRAFTREGISTRATION']; … |
0
230
|
||
|
Hi all I'm trying to put together a room hire site, to be used by the lettings clerks, for our local Quaker meeting house and I've hit a couple of problems. I have an HTML form that, using data from a MySQL database and some JSON and JavaScript, when a certain checkboxes are checked inserts the hourly rate and, if required, the deposit payable on the room chosen. This works fine. However, the value that is displayed isn't being picked up and inserted into the database table. The code for retrieving the data is: $roomRateSQL = "SELECT * FROM tblRoomRates"; … |
0
120
|
||
|
As usual i searched google to convert Decimal numbers to their Binary equivalents but i couldnt find any short algorithm for that matter. So here is mine.. |
1
2,381
|
The End.