hello.
Hello, I want to make this registration script tell the user when the passwords they have entered are not matching.
and i use this code:
if ($_POST['pass' != 'pass2'])
{
echo
("Oops! Password did not match! Try again. ");
}
please help me to correct my coding. :-(
thanks so much!
...
I intend to give my users the ability to share a link to their profile with other people, however this link should not be the usual link. Instead :
it should not give out the real
landing page
the user should be able to deactivate it if they wish
Is this possible ?
...
Hello,
I'm currently working on an indexer for a search feature. The indexer will work over data from "fields".
Fields looks like:
Field_id Field_type Field_name Field_Data
- 101 text Name Intel i7
- 102 integer Cores 4 physical, 4 virtual
- 103 select Vendor Intel
- ...
i have a table with id field type BIGINT in MySQL
in hibernate object, i use java Long type for this field
but when run program, it throw exception:
Expected: class java.lang.Long, got class java.lang.Integer
how to map MySQL BINGINT datatype in hibernate ?
...
Hi,
On OpenSuse 11.2, I successfully compiled, linked, and ran the following code which installs a data source for a MySQL database with unixODBC:
#include <iostream>
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
/* Add a data source for the following MySQL db: db=testdb, username=test, password = test. */
void inst()
{
...
CREATE TABLE `users` (
`UID` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`username` VARCHAR(45) NOT NULL ,
`password` VARCHAR(100) NULL ,
`name` VARCHAR(100) NULL ,
`gender` BIT NULL ,
`email` VARCHAR(255) NULL ,
`phone` VARCHAR(30) NOT NULL ,
`verified` BIT NOT NULL DEFAULT 0 ,
`time_zone` INT NULL ,
`time_register` DAT...
I would like to create a backup script (.sh that I can cron) that backs up the following databases:
someotherdatabase
database1
database2
database3
database4
database5
database6
...
database9999
I know "someotherdatabase" will always have that name so that can be backed up easily. The other databases have an incremental number but I d...
*First, thanks for the help in the first part of that question:
Situation again:
"I have in my table "mytable" fields, entryid (autoincrement) and roomid.. and I would like to delete all roomid = 1, except the last 3"
entryid, roomid
1 1
2 55
3 1
4 12
5 1
6 ...
HI all,
Is there any way of create view if not exists in sql on mysql db or h2 db.
...
I have 4 Tables (listed bellow) and need:
get last 10 Chats from Room 3 without banned users
show nickname for fromuserid
HIDE Users $userid dont like to see table "HIDE"
Table 1 "chats"
ID(autoinc) fromuserid roomid text
1 23 3 bla
2 14 1 bla
3 11 ...
As per http://stackoverflow.com/questions/3264227/relations-with-multiple-keys-in-doctrine-1-2, I have two tables which (as I can't get it to work in Doctrine) I'm trying to join as a MySQL view:
part:
part_id
product_id
part_type_id
part_short_code
...
part_translation:
part_type_id
part_short_code
language_id
internationalised_n...
Dear all,
I want to pick a random number from a database say 1, when I query again say 10 times I'm querying it should return all different random numbers.
...
i have a table filled with models,the models start year and end year and productid's that are assigned to it
ModelNo | StartYear | EndYear | ProductID |
0 | 1997 | 2000 | 511777 |
1 | 1998 | 1998 | 511789 |
what i'd like is an sql result as follows:
ProductID | Profile
511777 | 0-1997,0-19...
MySql InnoDB is set autocommit off and used default isolation level REPEATABLE READ. There are two scenarioes that two distinct transactions T1 and T2 run in the time sequence below,
1)
time T1 T2
t1 update row 1->OK
t2 update row 2->OK
t3 update row 2->wait->timeout error
t4 commit or rollb...
For example, ^e jumps to the beginning, ^e jumps to the end, and ^w deletes the next word. ^l is clear, ^k deletes, ^j enters, ^b goes backwards...
It seems similar to bash shortcuts but still somewhat different.
...
Especially if I'm using GitHub?
If not, should I (or perhaps someone else) work on such a tool?
...
Hey folks,
I try to save the date of creation of my entity. I have found that approach.
I tried to implement it but the date doesn't reach my db-table.
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PrePersist;
@Entity
public class Project im...
I am new to Stored procedure in mysql
This is the procedure for returning difference of date excluding Weekends, but it returns error
#1312 - PROCEDURE blog1.DayCount can't return a result set in the given context
This is the procedure
DROP PROCEDURE IF EXISTS daycount;
CREATE PROCEDURE DayCount( d1 DATE, d2 DATE )
SELECT dd.iDiff...
Hello I have this 2 tables :
Events (idEvent, eventName)
and
Registrations(idRegistration, idEvent, idPerson)
People register to events and I store their idPerson. Now let's say, we have 2 events (event1 and event2). I am person with id = 1 and I want to see all events and column that will say me, if I am registered.
I mean output li...
Has anyone done this, or have an idea?
I have a real estate script that for whatever reasons (google mapping limits, script itself) only gets the coordinates for half of the listings. I want to run a script that of the lat & long field are empty the script will use the address, city, state to populate the lat & long fields.
THoughts?
...