Reputation Activity
-
kensha got a reaction from jerOpporpViof in php removing items from the sql tableHey guys I'm looking for a certain effect that I have saw earlier on different forums.
Currently I have created mine back end system where I can update mine news/links/media etc.
However I'm looking for a function where I can easily remove the targeted links.
For example when hover over a link I see must get this
admin []
Remove (tab)
With some html check box code I want to select the admin link and be able to remove it completely from the sql row.
I know you can remove it inside the phpmyadmin but it's part of mine system so that I don't need to log into min phpmyadmin anymore.
I got 2 includes on the page which connects to mine sql server and the sql table.
The table stands under leftmenulink .
I hope some'one knows a nice correct form I must create.
-
kensha reacted to webdeveloper93 in links controlWhat exactly are you trying to build i may be able to help you further if i knew
-
kensha got a reaction from royadyhop in links controlSo mine system is finally emerging though there are few things that I'm still wondering before I continue.
First I wonder if I should add all the links to the mysql table and retrieve the list from their.
The upside is that you can easily delete or recreate a new link, however you can't move the links up or down. A copy/paste would be required.
So I wonder what would be the best way of the link control? To get it easily dynamic?
For mine photo album I like to add the images at the certain spot and once again I wonder if I should add the link to the mysql table.
For example.
Uploading file on the page.
Page Refresh with message image uploaded
under that message a hyperlink(location) and an image preview will be show.
I'm quite confuse of getting more dynamic link control and yes I know you can simply place a <a href="#"></a> in an include file but that would be to static for the user to use.
So what is the best way to control it all? Maybe some'one got a book or website for me to read on.
Or should I move on to programs like asp.net/mvc/mvc3 etc?
-
kensha reacted to Jay Gilford in A small business question regarding toMVC isn't a language, nor does it only work with ASP. MVC is a way for you to set up your web application to keep various parts separate
Take a look at the wikipedia webpage
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
for more info
In terms of MVC for PHP, take a look at CakePHP, Zend framework and Code igniter. All of those are good frameworks
-
kensha got a reaction from Skateside in Javascript Slideshow HelpInstead of giving this guy links were the codes are already been set, give him a guide on how it works and how you can manipulate it.
Here is a guide on how to create a normal slide show and a click able slideshow.
http://www.javascriptkit.com/howto/show.shtml
-
kensha reacted to DigitalSquid in Restriction to width?<?php list($width, $height) = getimagesize($uploadedfile); if($width > 9000){ echo "It's over 9000!"; } ?>
-
kensha got a reaction from gormo7 in Database advice needed!Well for start you can't actually have $_post[""] in the insert table.
What you do is the following.
Check variable if excist;
if(!isset($_POST["name"]))
{
echo "Variable has not been set"
$name="";
}
else
{
$name=$_POST["name"];
}
Then use the insert statement.
mysql_query("INSERT INTO email_list (fullname, email) VALUES ('$name','$name')")
Note; If variable hasn't been set, no database will be added.
-
kensha got a reaction from GaryP in mysqli_num_rows() errorShow us the script and mine bet.
You must use mysql_fetch_assoc() for the counting.
http://www.w3schools.com/php/func_mysql_fetch_assoc.asp
But better to post the script.
-
kensha got a reaction from Shafiu in Thanx to benSimpsons already did it!
Well don't be to harsh on him.
The only thing is that it does looks like Ben kinda left us on the forum, he isn't quite active anymore then he used to be.
But I guess we all are gonig to move on.
Beside that it's all about luck.
There can be 2 guys who devolp the same thing but only 1 of them end up to being rich and the other would be still poor.
-
kensha got a reaction from Shafiu in Looking for some 'Colours and ICT' booksHey I'm looking for some good thick theoretical books about;
Colors and ICT.
I want to learn more about the computers and the windows behind the screen programs.
Also I want some color knowledge of how it actually works.
It would be some nice adds beside the every day web programming.
If anyone got some nice tips then reply:).
-
kensha reacted to CSN-UK in I don't get it, textarea php outputThis code functions correctly, your !isset will not function correctly after the form has been submitted in any browser as it always evaluates as the else or false option as the $_POST array is created whether the form is blank or otherwise, the only time this is not the case is when the page is loaded and the form has not been submitted.
Isset checks for the existence of a variable or if it has been set as "NULL" not if the variable contains any value... you would use isset on a form mainly to check if a submit button has been pressed, use empty and !empty for other fields to check their values.
<form method="post" action="post.php"> First Name:<br> <input type="text" size="30" name="FName"><br> Age:<br> <input type="text" size="30" name="Age"><br> Question:<br> <textarea name="question" rows="4" cols="27"></textarea><br> <input type="submit" value="submit" > </form> 1 stupid normal form and 1 stupid normal output: <?php print_r($_POST); // remove after testing... to demonstrate my point. if (empty($_POST["question"])) { echo "Question has not been set"; } else { echo $_POST["FName"]; echo $_POST["Age"]; echo $_POST["question"]; } ?>
-
kensha reacted to Jay Gilford in moving variable form a sessionYou need to assign it on the second page, or extract all variables
Page 2
<?php session_start(); extract($_SESSION); echo $name;
-
-
kensha got a reaction from DigitalSquid in LingsCarsHey guys, why the hell are you keeping up the promotion of that website?
It's all to be seened on google with you stupid look from hey:
He got a load of visitors but the webdesign sucks.
-
kensha got a reaction from Sean33 in Are you a generalist or a specialist?Well you are either a designer or a coder.
There is so much stuff to study that you can't really combine both things.
Even after a year of study PHP/MySQL I need to study a lot more and there is still the full use of Javascript to study or Java or any other kind of webprogramming languages.
Webdesign is all about to go with the latest trends and try to design your own trends which people on the internet would like.
I find coding more fun then design perhaps it's because I don't care mcuh of webdesign itself.
-
-
kensha reacted to DigitalSquid in retarget function as link instead of button<a href="#" onClick="timeMsg()">Link Text</a>
-
kensha reacted to TomCash in dice assigmentA quick and dirty solution:
$number = rand(1,6); $value = ""; if($number == 1) $value = "one"; elseif($number == 2) $value = "two"; elseif($number == 3) $value = "three"; elseif($number == 4) $value = "four"; elseif($number == 5) $value = "great"; elseif($number == 6) $value = "six"; echo $value;
Hope that helped!
-
kensha got a reaction from SniderDK in My PHP include won't work<?php include("name.php"); ?>
This is the basic php include code and just as an addition if the file is located 1 file under you do ../ is it 2 files more under then it's ../../
else file up
"directoryname/name.php"
I hope this will help you.
-
kensha reacted to DigitalSquid in Mine first calculator but something is wrongYou don't have an input field with name="AnnGain" so there is no value for $_POST['AnnGain'].
Looks like it's this line that's the problem:
<input type="text" size="15" name="Contrib" value="<?php echo $AnnGain; ?>" /> %
Oh, and <!DOCTYPE html> is fine. That's the standard HTML5 doctype!
And if you want my advice, stop coding everything in capital letters. It makes your code look amateurish and won't pass validation in XHTML standards.
-
kensha got a reaction from futureproof in Which language should I learn?I thaugh PHP, MYSQL and in combination of Magneto would be the best for you.
-
kensha got a reaction from futureproof in Which language should I learn?I suggest you to learn PHP 5 and how to use it(specially oop), there are already many and many books released and you can download them as e-book as well.
-
kensha got a reaction from zed in Click this if you want IE6 DeadWhy you guys want it death so badly, I geuss you want IE 9 to be death as well.
I mean, so far with the coding.
I hae little to no issue regarding IE VS FF there are small easy fixes to the most simplest of codes.
The rest is mostly done via Javascript where mine skills isn´t hight yet.
-
kensha got a reaction from Jonathon Maguire in php, contact formCall me a snob or something but I want to learn and therefore I´m trying to avoid those kind of programs so I can later code things up from scratch without the use of a software:)
-
kensha got a reaction from gamma911 in Please test my site in IE6Tested with IE 6 no problems here not evening a script error notice.