|
<pre lang="HTML"><HTML xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>Untitled =
Page</TITLE>
<META content=3D"text/html; charset=3Dutf-8" http-equiv=3DContent-Type>
<META name=3DGENERATOR content=3D"MSHTML 8.00.6001.23588"></HEAD>
<BODY>
<FIELDSET title=3D"Html Editor:" =
contentEditable=3Dtrue></FIELDSET></BODY></HTML></pre>
|
|
|
|
|
Since you don't really tell us anything about what you want to fill it with and where it's coming from, perhaps all you need to do is type something between the opening and closing tags!
Or, you could do a bit of study, here[^].
If you haven't yet learned HTML, drop what you're doing and start their free tutorial, instead.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
my idea is to feed all important days in it and the website shows upcoming important day.how can I start this or is there any script for it?
|
|
|
|
|
What have you tried?
Where are you stuck?
What help do you need?
Have you tried looking at existing examples, like Google Calendar?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You should really read the articles on the following website before re-inventing the wheel.
tps:
|
|
|
|
|
My Project on office365 I want the email field to automatically get current email and password from the browser. my code is this and it not working
<input value="<?=$_GET[loginid]?>" autocomplete="on" name="email" id="email" placeholder="Enter work or school email" type="email" autofocus required pattern="[^ @]*@[^ @]*" /><br>
|
|
|
|
|
Hi I get an error as below
Fatal error: Uncaught Error: Call to a member function prepare() on null in C:\xampp\htdocs\crm_ppp\public_html\includes\user.php:24 Stack trace: #0 C:\xampp\htdocs\crm_ppp\public_html\includes\user.php(37): User->emailExists('david@jait.co.z...') #1 C:\xampp\htdocs\crm_ppp\public_html\includes\user.php(58): User->createUserAccount('David', 'david@jait.co.z...', 'TheITGuy001', 'Admin') #2 {main} thrown in C:\xampp\htdocs\crm_ppp\public_html\includes\user.php on line 24
code:
<?php
class User{
private $con;
private $user;
function _construct()
{
include_once("../database/db.php");
$db = new Database();
$this->con = $db->connect();
}
function emailExists($email){
$pre_stmt = $this->con->prepare("SELECT id FROM user WHERE email= ?");
$pre_stmt->bind_param("s", $email);
$pre_stmt->execute() or die($this->con->error);
$result = $pre_stmt->get_result();
if($result->num_rows > 0){
return 1;
}else{
return 0;
}
}
function createUserAccount($username, $email, $password, $usertype){
if($this->emailExists($email)){
return "EMAIL_ALREADY_EXISTS";
}else{
$pass_hash = paswword_hash($password,PASSWORD_BCRYPT,["cost"=>8]);
$date = date("Y-m-d");
$notes = "";
$pre_stmt = $this->con->prepare("INSERT INTO <code>user</code>( <code>username</code>, <code>email</code>, <code>password</code>, <code>usertype</code>, <code>register_date</code>, <code>last_login</code>, <code>notes</code>) VALUES (?,?,?,?,?,?,?)");
$pre_stmt->bind_param('sssssss',$username,$email,$pass_hash,$usertype,$date,$date,$notes);
$result = $pre_stmt->execute() or die($this->con->error);
if($result){
return $this->con->insert_id;
}else{
return "SOME_ERROR";
}
}
}
}
$user = new User();
$user->createUserAccount("David","david@jait.co.za","TheITGuy001","Admin");
?>
Anyone have any ideas
|
|
|
|
|
$this->con = $db->connect();
The above command either failed silently, or was never executed. Follow the stack trace back to see what might have gone wrong.
|
|
|
|
|
I am analyzing the implementation of OPENID connect. I understand that Identity server provides a token to the client application after successful login.
My Question is can I pass this token to another website if redirection is required. Following are some moredetails
1- WebApplication1 authenticates a user using OpenID connect and get a token.
2- WebApplication1 needs to redirect/navigate to WebApplication2
3- Users for WebApplication1 and WebApplication2 are the same.
4- WebApplication1 passes the token to Webapplication2 while redirecting
5- Now, if webapplication2 re-validates the token from the OpenID server, will the server verify it?
|
|
|
|
|
I have a website where backend, I have PHP making SQL queries, which are then handled by JSON parses and JQueries to get data to and from the front end JavaScript and HTML. At the moment, it's just doing this for 1 table, but how would I be able to get data from multiple tables and parse that to the front end. Would it be possible to do that from just 1 PHP script or would I need multiple?
|
|
|
|
|
First, you've not made clear whether multiple tables means a record set that includes fields from various table (like via a JOIN) or several sequential call getting data from different tables.
Then, too, in the latter case - if the data's of the same type and you wish the various results in a single list, are they amenable to a UNION ?
If it's three distinct sets of data from then you need three distinct calls. The ways of doing this (a single php function/file and one return or one for each that can be called separately, as needed, and of course, called from a wrapper function to do an all-at-once.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Hi,
I need some ideas... I want to create a website to teach children a Modern Foreign Language (like chinese) and I want to code it myself (not use websites like WIX which i believe do it all for you)...
Any ideas as to what to do (in terms of both content or languages to use?)
Open to any suggestions!
|
|
|
|
|
|
|
|
Very good idea. I liked and wish you good luck
|
|
|
|
|
I am using php and mysql for one of my project. I have two pages as:
index.php
and packages.php
I am sending id and packagename from index.php using get method and package.php is retriving it and displaying the corresponding values.
Here is the way I am receiving the value in package.php
$getpackage = $_GET["package"];
list($packageid, $packagename) = explode(":",$getpackage);
$url = strtolower(str_replace(' ', '-', $packageid)) . '-' . $packagename;
and here is my .htaccess file code
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ $1.php [NC]
RewriteRule ^package/([A-Za-z0-9_]+)/?$ package?$getpackage=$1 [QSA]
and here is the browser url output
<a href="http://localhost/abc/package?package=+1%3AHimachal+Main+"></a>[<a
href="http://localhost/abc/package?package=+1%3AHimachal+Main+" target="_blank" title="New Window">^</a>]
My requirement is abc/package/1/Himachal Main or ../1/Himachal-Main
I have tried many ways but i m not able to accomplish this.
Leads will be highly appreciated
|
|
|
|
|
So first, write the right rewritten url you want in the <a>
<a href="http://localhost/abc/package/1/Himachal-Main">
And then the right rewriting rule is something like this:
RewriteRule ^abc/package/([0-9]+)/([0-9a-zA-Z-]+)$ /abc/package.php?id=$1&name=$2 [L]
So it seem you have to add new get var with the id of the package, to create the /1/
modified 9-Feb-18 20:05pm.
|
|
|
|
|
Hi...i have this code right here to scroll down the window for the desired position..my problem is that i need to replace the button element by an image with this reference "#WE21c6b55f75"..
I do not know how!!!
Code i have:
<button onclick="scrollWin()">Click me to scroll horizontally!</button><br><br>
<script>
function scrollWin() {
window.scrollTo(500, 0);
}
</script>
Code i tried:
<div id="WE21c6b55f75" onclick="scrollWin()"></div>
<script>
function scrollWin() {
window.scrollTo(0, 2300);
}
</script>
Somebody?..i know this is really simple to do but i am not figuring it out..i am learning from W3Schools by myself... Thank You!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
Your <div> is empty, so there's nothing to click on.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
hi.. what would be the right code please?!!
modified 7-Jan-19 21:02pm.
|
|
|
|
|
Add some content to the <div> so that there's something to click on.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
i do not know what to do????....i also tried this code in alternate but nothing:
<script>
document.getElementById("#WE21c6b55f75").onclick = function() {myFunction()};
function myFunction() {
window.scrollTo(0, 2000);
}
</script>
i already have the div in the code with the image and links..i just have to make the connection from the div to the new code....
i already have this:
<div id="WE21c6b55f75" class="BaseDiv RKeepRatio OEWEImage OESK_WEImage_Default" style="z-index:1002">
<div class="OESZ OESZ_DivContent OESZG_WE21c6b55f75">
<img src="WEFiles/Image/WEImage/scroll-WE21c6b55f75.png" class="OESZ OESZ_Img OESZG_WE21c6b55f75" alt="" />
</div>
</div>
modified 7-Jan-19 21:02pm.
|
|
|
|
|
Alienoiz wrote: window.scrollTo(0, 2000);
You're trying to scroll horizontally. Is your page at least 2000 pixels wide?
Window.scrollTo() - Web APIs | MDN[^]
EDIT: Ignore this; I misread the documentation.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
modified 8-Feb-18 7:42am.
|
|
|
|