sunfighter
Members-
Posts
579 -
Joined
-
Last visited
Never
Everything posted by sunfighter
-
Don't kick yourself too hard if(a==1) { xmlhttp.open("GET","allow.php?usname="+str,true); xmlhttp.send('');} <=== HERE if(a==2) {xmlhttp.open("GET","deny.php?usname="+str,true); xmlhttp.send('');} <=== HERE
-
store images as a blob.
-
I'd look in your included files config.php head.php menu.php footer.php and see if you start session in one of those
-
Start from left side of page (get rid of border indent)
sunfighter replied to simonp's topic in HTML Help
Do a simple css reset. html, body, ul, ol, li, form { margin: 0; padding: 0; } Add what you need. -
How do I keep others from stealing my content?
sunfighter replied to JohnnyDoomo's topic in HTML Help
The only way your going to keep people from taking your stuff is Don't Put it on the Web! -
Try: onclick="document.getElementById('txtTo').innerHTML=
-
Use information gathered in php in html
sunfighter replied to CitizenErased's topic in PHP Coding Help
From the PHP manual: You: You should take a little time to study php. php goes through an interpreter and generates html. php can not appear in html. You can make an entire html page with php. To put a php variable (ie. $phpvar = 'Cold Ice'; ) into a <td></td> of a html page you do this: <td><?php echo $phpvar; ?></td> and the browser will display Cold Ice where you want it in your table. -
onclick="return false;" Not needed <div id="navigation"> <a href="home.html">Home</a><br /> <a href="about.html">About</a><br /> <a href="contact.html">Contact</a><br /> </div>
-
Noob at all this, trying to adjust template in cre loaded
sunfighter replied to pocopops@hotmail.com's topic in Applications
It's in your main file "index.htm" Line 308 to line 315 looks like this: <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td><div class="body_t"><div class="body_b"><table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td align="center"> You want line 312. Try this: <tr><td> <table width="100%" cellspacing="10" cellpadding="0" border="0"> -
fill multiple textboxes from ajax selection
sunfighter replied to inamul70's topic in Javascript Help
In your php file you have to combine the two columns into a single echo. We're going to do this with a implode command. I'm using '/' to separate the two pieces of information. You can use anything you want as long as it is not used in either of the two resources. PHP: ... $row = mysql_fetch_array($result); $combo = implode('/', $row); echo $combo; In the javascript section we have to separate them. Where we once had: document.getElementById("txtHint").innerHTML=xmlhttp.responseText; We put: pieces = xmlhttp.responseText; number1 = pieces.search('/'); first = pieces.substr(0,number1); second = pieces.substring(number1+1); document.getElementById("txtHint").innerHTML= first; document.getElementById("nextDiv").innerHTML= second; -
Your php: $TheAnyPlaceString = 'What I want to show up': In the HTML box (maybe it's a div ?) PUT <?php echo $TheAnyPlaceString; ?> and it will magically appear.
-
In the attack-items div you have two <td>'s that should be encased by <tr>'s <div id="attack-items"> <table cellspacing="10"> <tr> <td>Primary</td> <td>Secondary</td> <td>Melee</td> </tr> <td><a href="attack.php?action=use&it_id=18">Shotgun</a></td> <td>None</td><td>None</td> </table> </div>
-
No problem pagegen. I also didn't mean to come across as use mine or else. I was just looking for some recognition, I guess and thought one query was better then two, but your don't need to use two. Using an inner join with your set up will work just as good as mine and will also be one command. If that structure makes more sense to you then use it.
-
Guess you didn't like what I said. So one more time Your last post requires two queries. A single table uses one query. Your choice, both work.
-
To save a lot of work later use one table to list the people on your server. Have a auto increment column for user_id, then columns for their name(s), user name(?), password, status(admin, user, affliates, and customers) ... more..... Also make columns for the extra info needed for the different statuses and make them able to be NULL. Then an admin does not need info in those columns. When someone logs in it's easy to checked their name and pass and then get all other info needed for the site.
-
File ownership and using PHP file commands
sunfighter replied to gregdbowen's topic in Apache HTTP Server
You would get a better response from Apache experts by posting in Apache HTTP Server. -
margin decreasing as the window size decreases
sunfighter replied to D.Rattansingh's topic in CSS Help
I don't think this is a margin. Looks like simple html body with content div. <style type="text/css"> body { background-color:#FF6600; } #the { width: 600px; margin-right:auto; margin-left:auto; height: 100px; background-color: red; } </style> </head> <body> <div id="the">put stuff here</div> </body> </html> -
ORDER BY "column_name" [ASC, DESC]
-
Did you get an error message and if yes what was it? First steps in trouble shooting code : Check the inputs! echo out $nickname Did you make a connection to your db? I ask because it's not shown that you did here and you don't tell us if the connection is a global variable, which you would need here.
-
$_SESSION only holds the information you put into it. To find out "members" that go to the same "school" as the current user and/or the people that started in the same "semester" as he/she, you have to query your database. And mysql_insert_id(); retrieves the ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT). If your really a dumb dumb when it comes to PHP my suggestion is to cram very hard cause there is no way your going to get a social networking website running without it.
-
Are you sure createchart.php is an image and not a php file? rename is a simple php command that will take care of things like renaming a file.
-
I have been trying to do this in css, but I can come up with no solution. :-\ JS is the weasely way out.