No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
39 Posted Topics
Variables vvi and hhi should be with for loop turned into vv1...vv30 and hh1, hh2...hh30. Now I can't get variables tv, lv, bv and rv to return the variable(vv1 or hh1...) value instead if I put vv into quotes it turns the variable into a string (with value: vv1 or …
I have a problem with my for loop. This is the code: [CODE] for(i = 1; i <= 30; i++){ var opacity = $("#h"+i).css("opacity"); if(opacity < 1){ $("#h"+i).click(function() { $("#h"+i).css({ opacity: 1 }); }); } }[/CODE] When I put a number like [CODE]$("#h1")[/CODE] instead of [CODE]$("#h"+i)[/CODE] It works but only …
I want to make a 3D game and I don't know what to use OpenGL or SDL?
I agree with dereksy. Wordpress is for simple blogging and Joomla is for making a "real" site.
Can anyone tell me what GUI to use? And is there a GUI similar or same like standard library? Thanks in advance.
In move_uploaded_file. Replace $uploadfile2 in: [CODE]move_uploaded_file($_FILES['userfile2']['tmp_name'], $uploadfile2)[/CODE] with a file name that you want.Example: [CODE]move_uploaded_file($_FILES['userfile2']['tmp_name'], $uploaddir2."file.pdf")[/CODE]
I am new to Javascript and I don't want to use frameworks. I found a tutorial on how to make this: [CODE]<html> <head> <title></title> <script src="jquery-1.4.2.js" type="text/javascript"> </script> <script type="text/javascript"> $(document).ready(function() { $("div#msgbox").hide(); $("#addComment").click(function (){ $.post('index1.php', { name:$("#name").val(), //PHP recognize it like POST comment:$("#comment").val() //PHP recognize it like POST }, …
Can somebody post code example on how to read from text file with AJAX?
How to replace one backslash with two? This code doesn't work: [CODE] $msg = str_replace("\","\\",$msg); [/CODE] PHP will two backslashes insert into database as one. If is there one backslash it will return a parse error.
What is the problem? [CODE]<?php /************************************************* Member Registration Script Author: Adam Khoury code comments appear above sections they refer to *************************************************/ // First we check to see if the form has been submitted if (isset($_POST['mem_firstname'])){ //Connect to the database through our include include_once "z_connect_to_mysql.php"; // Create local varibles from the …
Is it possible to make from exe file a web application? Here is the file i am trying to convert:
I made little javascript bbcode editor on my website. How to display that code from mysql? Or how to save in mysql as html that code?
when i use <?php echo $_SERVER['PHP_SELF']; ?> in my forms the get values disappears. How to fix that? Is there some function?
I can't access my old hosting account. I don't now my username. I now the domain and can i see PHP code on one page.
How to make something like spry tabs in dreamweaver with jquery or something. I don't have dreamweaver and i don't want to download a trial.
How to install Flash, Fireworks, Photoshop CS4 or CS3 on Ubuntu?Wine can't install it.I am using Ubuntu 9.10.And if it's possible no virtulization software.
I made star voting script and i was wondering how to display average result?
I need to make a map of country Croatia seperated in regions and when you click one region it takes to a site that i made.
I installed Apache2 but when I type [url]http://localhost/[/url] in browser it show an error "Unable to connect".
I have a folder and i can't paste anything or save anything in it. Can i change permissions in terminal?
is there any way that php can show a person's webcam and their voice?
I am making a forum and i was wondering how trough PHP make a HTML page off that topic when the user creates it.
I installed lamp.But i can't delete my index.html page and i can't save any page in that folder.I am using ubuntu 9.10.
I have little upload script and i wonder how to rename a file if the file with same name already exists.
My form worked, but when i put lastname(lname) field won't work [CODE]<?php include "connect.php"; echo "<h1>Register</h1>"; ?> <div style="color:#F00"> <?php date_default_timezone_set('Europe/Zagreb'); date_default_timezone_get(); ini_get('timezone.default'); getenv('TZ'); $num = 0; $submit = $_POST['submit']; $fname = $_POST['fname']; $lname = $_POST['lname']; $username = $_POST['username']; $email = $_POST['email']; $password = $_POST['password']; date_default_timezone_get(); $date = date("Y-m-d G:i:s"); …
When i put in this code WHERE to='$username' won't work? [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username = $_SESSION['username']; $query = mysql_query("SELECT * FROM pm ORDER BY id DESC"); $message = '' ; while ($row = mysql_fetch_array($query)){ $id = $row['id']; $to …
I have a twitter clone and i was wondering how to display users tweets on his profile.
I have a little twitter clone but how to display messages from mysql from newest to oldest. [CODE]<?php session_start(); $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; $date = date("d-m-Y"); if ($submit){ mysql_query(" …
Go to your cpanel click add-on domain and add your domain. You must wait 48 hours before it's start to work.
I now how to make a profile but how to make for every user when he logs to view button my profile and takes them to their profile.
Why it won't send this to mysql.Connection is ok.Here is the code. [CODE]<?php $connect = mysql_connect ("localhost","root","") or die (mysql_error()); mysql_select_db ("login4") or die (mysql_error()); session_start(); $_SESSION['username']; $username1 = $_SESSION['username']; $username = $_POST['username']; $submit = $_POST['submit']; $micro = $_POST['micro']; if ($submit){ $queryreg = mysql_query(" INSERT INTO messages VALUES ('','$micro','$username') "); …
I have this 3 file for small chat and it works without database. But i was trying to connect to my database and use my users. Index.php [CODE] function createForm(){ ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table align="center"> <tr><td colspan="2">Please eneter a nickname to login!</td></tr> <tr><td>Your name: </td> <td><input …
Learn HTML on [url]http://www.w3schools.com/[/url] or there is a great video on youtube [url]http://www.youtube.com/watch?v=GwQMnpUsj8I[/url] (it is 40 minutes long)
How to limit access on my page to unregistered visitors? Like that they can't open forum or users profiles?
How i put to my register error if user already exists. My code: [CODE]<?php include "connect.php"; echo "<h1>Register</h1>"; $num = 0; $submit = $_POST['submit']; $username = $_POST['username']; $password = $_POST['password']; if ($submit){ if ($username){ if (strlen($username) > 20){ $num ++; echo "<tr><td>".$num.". Username is too long.(3-20)</td></tr><br />"; } } if …
I have a register and login code, but i don't know when the user register to automatically make user page.Can anybody help me?
The End.
web3