fortnox007
-
Posts
783 -
Joined
-
Last visited
Never
Posts posted by fortnox007
-
-
Do you require the all the backslashes in your code?
echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"menu_horz.js\"></script>";
doesn't this work:
echo "<script language="JavaScript" type="text/javascript" src="menu_horz.js"></script>";
and besides that do you need the language attribute as well?
-
I would love to know that too, any security guru online?
-
Not sure, but getting cookies values in the same request is maybe possible bit javascript, but not sure though.
But just for my interest, what happends if someone steals your admin cookie?
I certainly don't hope any critical data is in there which I almost think there is. Aren't sessions a better / secure way for your project? Just dropping some throwing some lines here. I am all except an expert, but I just read quite alot
-
Searching for words in column of your table can be done with LIKE Just google it, I dont know the exact stuff by heart
-
You could also use sessions if you do not want the client to be able to change the hidden fields. But for non relevant info hidden fields work nice
-
Well as far as textual input, you could make a bad word filter. I think it works the same as, BB code. (just look in the forum for bb code and a few options will pop up) This option, just modifies bad input in output you like.
so for instance: shit => **** I think its done with string replace on output.
As far as visual input like an image, as far as I know you will need a moderator that approves images. Just add another column in the database with approved values 0 or 1, where 1 is approved and 0 is not.
than in php make an if statement, that checks if image value is 1 else output default image.
If you need further help let me know
-
Well it's far from what I like. That might not be a bad thing, but I assume you are trying to sell stuff there. for some reason it doesn't give me a legit feeling starting with the header, the screaming text displayed. Its up to you, but i would not start a site looking like this if your purpose is to get the $$ in your wallet.
If i buy something from a site i want to have the felling it's legit and i can give my credentials to it when ordering something. Anyway I wish you best of luck. not all succes websites were pretty, plentyoffish.com for instance hope it gives you the spirit to finish what you started.
-
hmm that's odd, closing the browser should end the session. Maybe its because there is a cookie used anyway. I think its possible to give to command that when a session starts no cookies may be used. Just a brain fart, but i think i have read it somewhere.
-
I'm am somewhat new to PHP and am trying to set up a website for my cousin's wedding.
When became wedding's so complicated?
Since women decided it was fun
I hope you do know there are ways to include a font in a website, instead of making a million images?
Just google for @font css, might not be extremly legal, but it's just another way of doing it.
- edit: I didnt saw jc bones post
-
I would use an array probably. A Switch Case would be nice too and more organized.
If you need help let me know. This forum might just have your answers allready ; ) just look for the text in bold
Good luck m8,
-
Thanks, ldb358! That worked perfectly!
Here is the resulting code, for anyone with the same problem:
$dimensions = explode("x",$row['DIMENSIONS']); foreach($dimensions as $key => $value){ $dimensions[$key] = $value ."in"; } $x_separated = implode(" x ", $dimensions); echo "$x_separated";
Thx for sharing ; )
-
Could you give me a hand here?
Place header before the <html> tag But that has nothing to do with your initial question : )
When including files btw, make sure the path is correct.
-
Well first of all you can try and look a bit further on how to deleted rows from a table at the front end. But I would be quite precise if I were you, customers are customers, and you don't want to offend them. Anyway, a nice query with a "where clause" Put that all in a loop, which echo's out the customers that have a zero balances with a check box, with the value of the Id of the customer. I am pretty sure you can find this around here since I saw it 1 week ago.
-
oh btw, a very fun book to read is "head first Php & Mysql" It's not just an ordinary book, very fun written, with loads of visual stuff ( they say its brain friendly). The downside, but thats with any first print books, a few code examples have minor typo's, but that should only be a problem if you just copy paste instead of learning. I haven't had any problems using the book.
-
Well I can tell a bit about joomla, and as a beginner there is not much to code there yourself for most common tasks. But it is nice to check it out, very friendly and you can even make some money along the lines.
But there is a downside:
Diving straight into applications such as Drupal & Joomla is probably going to be pretty confusing for a newcomer to programming. You'll probably at least want to build a few apps of your own before trying to pull apart and build on top of other peoples code.
I totaly agree with thorpe on that. The joomla core is pretty complicated to just dive into, WP is the same story. I would recommend to use it, just to see what it is, But above all try to learn php by building some applications yourself. Visiting this great site and helping others I am still in the progress of that and I can tell you that I wish I were 10 years old again. Loads of time. Nowadays with a job, uni, chicks, and beers it takes alot of time
-
virtuemart for joomla
-
thanks for sharing!
-
I case your still reading this ( just got a warning no one has responed in a while)
I quickly changed some settings, (see link): http://i35.tinypic.com/5u0q5s.png
I removed the dots around borders, white background. Besides that i would lower everything a bit so there is a bit of white at the top.
changed the grey of the top nav, to the color of the boxes. (you should make a nav bar to let buttons pop out
besides that i would use a blue sky as a header. Its all pretty greyish at the moment. and aviation is al about the sky is the limit, flying like a bird, and not some nuclear aftermath
cheers!
nice job though
-
wicked idea i like it, colours a bit bright though
-
Well it should not be overdone but I am talking about the "I" in the title, maybe just write it in upper case, right now the dot on top is a bit small/pixel like. I have marked the parts green which I was referring too. Anyways nice design, realy like it.
-
I am not sure what it is for but what i do know is that we are missing the possible comments people can make. Of course there infinite types of comments but, this way we are missing the background info which is needed to make a design work.
Why don't you get a piece of paper make some fake dates, names and possible comments slice them up and rearrange them on a new piece of paper. the moment it looks nice to you your done ;-) That's how I normally do it, same is for rearranging someone's living room or arranging a future town. If you found out after all that the comments screw up your design, keep it simple, and add an extra small column per person with an small thumbnail indicating someone has a comment and maybe even a colour range for urgency. (I would do that btw) looks much cleaner
hope this helps
ciao!!
-
If the fields were in the right order of the phone call, I would say you did a very good job. Looks organised and accessible.
Maybe but not sure if you like that, is to add a function that inserts time and name of the person that takes the notes. That way if someone else is taking the call he or she can directly see to whom he or she spoken too before that call. Oh and I am missing a field for an email in case you have the option call back
the option:"first 4 of password" would mean you don't encrypt passwords. Most companies also don't ask for passwords.
Oh and last this I would add a gender option before the name.
Hope i wasn't to harsh good job though even if my comment wasn't about css
-
If your goal is to make things look good. don't focus too much on php, but started focusing on css. After all if your setting up a nice site you don't use inline style but external css.
Start here for some inspiration m8: http://www.yourinspirationweb.com/en/
Oh and what i could recommend anyone buy a book on how to make nice pictures, national geographic has a few. Making nice pictures isn't all about the right shutter time, but most of it is the composition and lightning.
good luck!
-
hmm, I would certainly remove the grey 1 pixel outline of the menu boxes, I would also set a small linear background for the top parts of the menu's, they are pretty 2D at the moment. Text to align full, rest is pretty ok. green orange blue nice combo. nice light blue in the text!
problem regarding a code
in PHP Coding Help
Posted
- % is used for the like condition in SQL. This gives some background
http://www.techonthenet.com/sql/like.php If i am correct it checks if the input ends with the letter "s"
- mysql_real_escape_string is a sanitizing function to transform bad input. in this case user submitted by the post variable 'nic' If you would not do that users may be able to execute arbitrary sql like drop table.
So in this case it checks:
Whether the sanitized input by the end-user exists in the table customer_id ending with the letter "s"
and if it doesn't it dies and errors out