Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For problem set 7 (CS50 Finance)
1
vote
Accepted
http://pset7/phpMyAdmin is 404 not found
Try http://localhost/phpmyadmin
I always accessed phpmyadmin using that url.
0
votes
My cash won't display in my porfolio
You are trying to get the cash value from the session by using $_SESSION['cash']. Only the user id is stored in the session. You have to query the users table using that id to find the user's cash.
0
votes
2
answers
189
views
pset7: query problem
When I try these with query function it is giving me an error:
query("SELECT * FROM users WHERE username LIKE %?%", $_POST['username']);
query("SELECT * FROM users WHERE username LIKE '%?%'", $_POST[ …
0
votes
Accepted
pset7: query problem
I don't know if this is the correct solution but I used this code to get around the problem:
$username = "%" . $_POST['username'] . "%";
query("SELECT * FROM users WHERE username LIKE ?", $username); …