-
Posts
3,671 -
Joined
-
Last visited
-
Days Won
17
Content Type
Profiles
Forums
Events
Posts posted by niche
-
-
what happens when you add a path?
-
What's your code look like?
-
space in the filename.
-
https://www.w3schools.com/php/php_ref_date.asp
https://www.w3schools.com/php/func_date_date_sub.asp
https://www.w3schools.com/php/func_date_time.asp
EDIT:
Let us know if you need any more help
-
PDO is a step in the right direction.
https://websitebeaver.com/php-pdo-prepared-statements-to-prevent-sql-injection
-
float and div properties with graphs, tables and explanations inside the divs
EDIT:
giving each div a height and width might simply you understanding of div relationships on your page
-
Everything on a website is some kind of risk.
Looks like you have your unordered list.
EDIT
Darn the torpedoes. What do you want to do next?
-
Always room for improvement and hopefully you'll never stop improving.
Obviously you're learning so don't be afraid to break things. Experiment. Make mistakes. Decide for yourself what you think you've learned.
Have the courage to be wrong.
That's when I'm most likely to remember what I learned.
The bigger the mistake the bigger the memory!
EDIT:
The most important question is what you posted good enough for you right now?
- 1
-
What's your question?
-
Try wrapping this in an if statement that tests for string length:
$var = 7; echo sprintf('%02d', $var);
- 1
-
-
Is your question about how to "tuck a $_SESSION"?
-
Where's it breaking and what error messages are you getting?
-
Depends on what you want to do and how you want to do it..
Coding is a Superpower. Don't take my word for it. Take Drew Houston's word for it. He's the co creator of dropbox.
https://www.youtube.com/watch?v=nKIu9yen5nc Listen to his quote at the 00:04:50 mark (approximately).
How much time should someone spend to get a Superpower?
-
-
Don't understand your question
-
Check $row["StoryHeadline"] instead of row["StoryHeadline"]
-
Looks to me like 'r' is being returned by your query. Please post your query.
-
What's actually in your results array when you dump it?
-
Query your table to initialize values then do your nested if statement.
-
Looks like ID 1 is the ID that has the same a/b values.
How does ID 4 & 5 qualify?
-
Quote
then your database structure may be badly designed
Not badly designed (yet). Bad approach!
Many thanks to the fox and Funce.
Found this link and learned more about PDO investigating PDO rules.
https://stackoverflow.com/questions/9250434/pdo-quote-method
-
Thought I could alter a table with a pdo query and binding. Apparently not.
Is there a way to use a pdo query to alter a table without binding using some kind of variable? if so, what would a simple example look like?
Else, I'll use mysqli.
-
JSG said it best. $con doesn't exist.
Obviously, the site's not making the connection. For me, that was the whole point of learning how to code. How do I manage the use of frameworks and libraries, when I know I don't have the code skills that would've allowed me to do it myself.
https://www.w3schools.com/php/php_mysql_connect.asp
I'm not criticizing any one. Just talking for myself. IMHO, frameworks and libraries are the rewards for knowing how to code.
EDIT:
If needed, there are very good vids on youtube RE: PHP Objects
Introduce Yourself
in General
Posted
I use GeomFromText() mysql function all the time