mnaidis
-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by mnaidis
-
-
I don't know how to do it, that's why I have opened the topic, can you give me an example and show me how I do it with code?
-
I don't know because it's not my site, if I want to do that in a div, then how do I do it?
-
Hey, I was trying to find out how to do the text/image inside the border.. like a title, like this:
How do I do that?
-
Hello, I got this code in the .js file:
"username": { // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 ) "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/, "alertText": "* Invalid email address" },
And I want to do that if the input is not in this form: "Hello_There", "Firstname_Lastname" (with the underscore in the middle) so it'll do
"alertText": "* Incorrect username.
"
I don't know how to do that, can someone help me please?
-
Oh, accidently I have named a field incorrectly, sorry for that!
Solved.
-
First....
$uid = mysql_real_escape_string($_GET['uid']);
Then...
$d = "";
$results = mysql_query("SELECT `username`,`level`,`email,`,`alevel`,`tester` FROM `users` WHERE `id`='$uid'");
if(!$results || !mysql_num_rows($results))
echo "No user.";
while($d = mysql_fetch_assoc($results))
{
Actually.... are you establishing a connection anywhere? mysql_connect() ?? Could explain why you're getting a boolean return instead of a resource.
It still says:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\learning\viewuser.php on line 22
And it says that the user doesn't exist, and it does.
And yeah, I have a connection.
-
I got this code at the top:
<?php require_once("configuration.php"); $uid = $_GET['uid']; ?>
And another main one:
<?php if(isset($_GET['uid'])) { $d = ""; $query = mysql_query("SELECT `username`,`level`,`email,`,`alevel`,`tester` FROM `users` WHERE `id`='$uid'"); if(!mysql_num_rows($query)) echo "No user."; while($d = mysql_fetch_assoc($query)) { ?>   <b>Username:</b> <?php echo $d['username']; ?> <br />   <b>Level:</b> <?php echo $d['level']; ?> <br />   <b>Email:</b> <?php echo $d['email']; ?> <br />   <b>Admin level:</b> <?php echo $d['alevel']; ?> <br />   <b>Tester:</b> <?php echo $d['tester']; ?> <?php } } ?> </font> </div> </center>
Now I get this error:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\learning\viewuser.php on line 20 No user. Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\learning\viewuser.php on line 22
How can I fix it?
Buttons in a button bar
in HTML Help
Posted
I have this:
And that's how it looks:
I want that the buttons will start like from the beginning of the bar, there is a gap behind the first button "General", how do I fix it?