-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
Try starting your session first. Why do you want to make it a result of some condition? Just start it!
-
Newbie: Calling PHP Variables Within OpenGraph Meta Data For Facebook
ginerjm replied to GarethW's topic in PHP Coding Help
Your first statement implies that the value comes from a url query string while your second line merely sets a local variable to a value. These are in no way connected. -
How about showing us the actual code you used, instead of just the function name you used?
-
IMHO if you have a secure login page (with all that the word 'secure' entails) already working, then adding another column to the table behind the login is the way to go. It gives you the freedom to use it for new features that may be added later as well as the ability to add that 'extra' admin person without having to do any coding. Simply checking the user's login data for the correct 'security level' obtained as part of the login process gives you the ability to control access to any part of your appl.
-
Creating short code for a sites plugin to call on pages
ginerjm replied to JamesClarke's topic in PHP Coding Help
May I ask "What is a shortcode?" without sounding stupid? -
I know how to use js to close browser windows and in fact I can close IE completely but I can't seem to do it with Safari on an iphone. It closes the current app window but then either switches to another app or opens a blank window and waits for me to hit the home button. Can one use JS to close the entire browser on an iphone?
-
IMHO - I would design my db differently. You're not going to put "variable" data into your "static" message, are you? You s/b creating a table of users with their info separate from the messages that you wish to send. Then, you pick a message and the users and do your mail generation. Unless you are sending totally unique messages to each person every time you send out mail, which I don't see working in a db-driven environment.
-
1 - what is a <name> tag? 2 - how about showing us how you are handling the country result?
-
Refer to the php manual and look up strtotime and date functions.
-
You need to think more about your design and how you want it to work and then you need to learn some stuff about handling those buttons. I avoid giving people design advice - I limit myself to providing advice on things that you may have wrong in your code and can't figure out. Part of the joy and satisfaction of programming is coming up with a working design and implementing it. Have at it! Part of being a newbie is the learning process, so you have some work to do.
-
Can't help until you implement the feature you want to solve.
-
This is a cleaned up version of your php code: <?php echo '<h1>Hello World!</h1>'; echo '<h1>Second Heading Block</h1>'; echo '<h2>Hello World!</h2><b>This text bold!</b>'; echo '<h1>Third Heading Block</h1>'; ?> Nothing wrong with this code. If it doesn't work on your environment, suspect the environment, not the script. BTW - you mentioned that the correction simply added a semicolon. I don't see in this code where any semi could possible be showing up. BTW2 - you realize that you don't need php to display your sample outputs? It's all plain html, so the <? and the echo's are not needed.
-
Where does your code handle the 'next' or 'prev' button? I see no check for one.
-
Show us the revised code in its entirety.
-
And your question is??? Probably the "second heading" line, no? Look closely and you should see your typo.
-
Did you begin your code with a php tag?
-
divs are displayed differently in chrome than in firefox and explorer
ginerjm replied to gwolff2005's topic in HTML Help
After further review - I also see that you have wrapped your JS code inside another div tag. People may have problems with my next, but I find it preferable to place my js within my html header tag and not intermingle it with my html code. You can do it I guess, but I fail to see why. Frankly, the div here serves no purpose at all. -
divs are displayed differently in chrome than in firefox and explorer
ginerjm replied to gwolff2005's topic in HTML Help
At first glance I see the word "div" inside your very first <div> tag. What exactly is that? -
I'm not familiar with the mail syntax you show. Is this mailer from some 'package' (as recommended) instead of the simple PHP 'mail' function?
-
the ".." means the parent folder - it is a common technique to make a relative path (as opposed to an absolute one). The single dot refers to the current directory - something that would mean "check the current folder before looking elsewhere" in your situation. So - if you are using windows, then perhaps your reference to the filename should use a backslash instead of the forward slash you have specified. Just a WAG...
-
I'm no expert on this, but isn't your path supposed to use a colon ":" to separate multiple path values? You have dot semicolon as your first entry and then your second path that you referred to. I'm wondering if the semi is preventing it from being used.
-
Have you enabled php error checking to see if there is something else in your script that causes the problem? BTW - I believe that the syntax is very specific: "Location: " must have a trailing space.
-
Perhaps my mistake. I assumed OP had that html in a heredocs which is how I code most of my html
-
That syntax is correct.