Recent content by Spazz

  1. S

    Looking to sort ascending if clicked once, descending if clicked again.(PHP)?

    This is a sort snippet from the entire page, as of now it only sorts the first way (ASC for all except pr, which sorts DESC) I am trying to get it to sort ascending if you click the title, then if you click it again it sorts it descending, then back to ascending if you click it again, etc...
  2. S

    Will this sort ascending if clicked once and descending if clicked second time? (PHP)?

    switch ($sort) { case 'name': if($order_by == "name ASC"){ $order_by = 'name DESC'; }else{ $order_by = 'name ASC'; } break; (More not included) If I read this logically it should run through and say first time its going to sort it ascending (its defaulted) if I click it again it should run...
  3. S

    Whats wrong with this SQL statement? (with some PHP)?

    ok so I am reading in JSON data and want to insert it into a database and this is what I have. It comes back and says Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result meaning the SQL statement is wrong, but I don't know whats wrong with it. foreach($json_o->roster as...
  4. S

    Is there a special way to read in JSON data from a textarea using PHP?

    When I try to read in the data I get this error but if I hardline the data it works just fine. Warning: Invalid argument supplied for foreach() in ****EDIT******\json.php on line 8 <?php if (isset($_POST['submitted'])) { $jsondata = $_POST['json_data']; // create object from string $json_o =...
  5. S

    how do I do this in html or php?

    ok I am writing a website that is going to have images of other websites and if you click on the image it will take you to that website. What I want to do is when I pull up the portfolio it will pull up the image of the other websites but in real time. so like kind of a picture in picture type...
  6. S

    Why do I wake up with mung mouth even though I brush my teeth every night before bed?

    I brush my teeth at night for at least 1min. I use Colgate Total. I also brush my tongue. I use a waterpick once a week. I only have water before I go to bed. I use a 'Reach' toothbrush [Med.] I have healthy teeth and gums. [that's what my dentist says] I've had an ache in the lower bottom left...
  7. S

    creating a function in PHP to take number comma number and divide them?

    Ok so my question is as follows. I have an XML file with quite a bit of information in it that I am parsing and displaying in a table via PHP. I have just started working with this so I have just done a very basic... display all the information 1 line at a time. what I am going to end up...
  8. S

    ok so I downloaded an html template that had Cu3er already implemented in it how do I

    change the images in it? ok so I got this template that has Cu3er implemented already on the homepage with a sample image in it, but now I need to change the image to what I need it to show. Can anybody out there explain to me the steps to changing and adding images to by Cu3er? ok sorry lemme...
  9. S

    ok so I downloaded an html template that had Cu3er already implemented in it how do I

    change the images in it? ok so I got this template that has Cu3er implemented already on the homepage with a sample image in it, but now I need to change the image to what I need it to show. Can anybody out there explain to me the steps to changing and adding images to by Cu3er? ok sorry lemme...
  10. S

    ok so I downloaded an html template that had Cu3er already implemented in it how do I

    change the images in it? ok so I got this template that has Cu3er implemented already on the homepage with a sample image in it, but now I need to change the image to what I need it to show. Can anybody out there explain to me the steps to changing and adding images to by Cu3er? ok sorry lemme...
  11. S

    ok so I downloaded an html template that had Cu3er already implemented in it how do I

    change the images in it? ok so I got this template that has Cu3er implemented already on the homepage with a sample image in it, but now I need to change the image to what I need it to show. Can anybody out there explain to me the steps to changing and adding images to by Cu3er? ok sorry lemme...
  12. S

    ok so I downloaded an html template that had Cu3er already implemented in it how do I

    change the images in it? ok so I got this template that has Cu3er implemented already on the homepage with a sample image in it, but now I need to change the image to what I need it to show. Can anybody out there explain to me the steps to changing and adding images to by Cu3er? ok sorry lemme...
  13. S

    Movie with this family line?

    What movie has the line that says something to the effect of your family isn't always who you think, sometimes family is someone you meet...
  14. S

    If I wanted to put code in a separate header and footer .html files how would...

    ...I include them in the index? ok so I took some code that I want to show up on every single page I have making the most simple thing to do is create separate files and just include them in my main file. I know the "include" line only works with PHP so what I did was took the code that I wanted...
  15. S

    Why am I getting this PHP/MySQL error?

    Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\Shop\sub_thank.php on line 8 here is my code. <?php $email = $_POST['email']; require_once ('mysqli_connect.php'); // Make the query: $q = "SELECT email FROM subscribers WHERE email=$email...
Back
Top