Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by floridaflatlander

  1. I don't know if you're asking a php ? or an html ? Soooooooooo 1. I echo monkeytooth & 2 "<h5>Name:</h5>$shop_name <br>" . <------------unless you style h5 narrow and set a margin or float you have two lines here and two different fonts(?) "<h5>Address</h5>$street_name <br>" . <------------unless you style h5 narrow and set a margin or float you have two lines here and two different fonts "$town <br>" . "$postcode <br>" . "<h5>Contact Details</h5>Phone Number:$contact_number <br>" . <------------unless you style h5 narrow and set a margin or float you have two lines here and two different fonts "Web Address: $web_address <br>" . "Email : $user_email <br><br>"; Also do you need some escapes \" ?
  2. I'm almost sure it's a math problem that would be adjusted for each photo, as a temp fix and if you need 90px in height on the dot right now you can make your width wider than needed to make sure 90px is the height all the time. My work day is starting and so I'll come back and play with this later.
  3. I'm still in baby steps with PHP and I was only quoting Larry to help answer your question. Is OOP necessary? As for books do some research, I'm in my 50's so add that to different personality types and I can almost bet that your learning style is different from mine.
  4. Quoting Larry Ulman from php 5 advanced "You can have a long, happy, and viable programming career without OOP. However you might have a more productive, easier and lucrative career using it."
  5. Too funny. Good luck PS; I ditto nicholasolsen I have something like this, I did as nicholasolsen said to do on the front page. For the two column sub pages I commented out the left-column and made the middle column wider with a 2nd css. On about 10 sub pages(which I use for categories) info is retrieved with a fixed sql statement and on about 200 pages under them info is retrieved with get variables. If I new what I know now when I built it I would have not had fixed pages(or sub files, they add work) but I would have gotten everything with get variables.
  6. Can you use Wordpress ? It has good SEO qualities, different themes, search, editing features, and comments which you can turn off if you want to.
  7. Can you use IE's view source, copy the page put it in your editor and make a duplicate web site using the copy and your css to see if it's a css or html issue?
  8. Can you use a GROUP BY as in GROUP BY contributor ? You use it just before ORDER BY if you have one.
  9. Can you tell us (me anyway others maybe able to figure it out) what you are trying to do from beginning to end, in words? Look at the numbers in the type column and you'll see what I mean. The way I would do it if I wanted to edit one of the #4's is Run a SELECT query to get news of the same type these links go in a table on a page say news-tems.php I look in the table and see which news items I want to edit I click a link in the table that takes me to an edit page for that item, say edit.php I edit that item, one row, all rows or no rows if I change my mind, click submit or back and return to the table news-items.php .
  10. $guery = ("UPDATE `news` SET type = 'old or new value', title = 'old or new value', text1 = 'old or new value', etc. etc. WHERE newsid = '2' ") ;
  11. SQL and me don't get along but can you use it.
  12. Can you have or why do you want an ORDER BY, an ASC and a LIMIT in an UPDATE ? I use these things in SELECT queries to display info, but I'm fairly new to this stuff myself. What are you doing, retrieving info, updating info then storing the result? You're selecting a 2 or 4 or what ever and there is more than one to edit. I think if I did it, I do something like this with the update $guery = ("UPDATE `news` SET type = 'old or new value', title = 'old or new value', text1 = 'old or new value', etc. etc. WHERE newsid = '2' ") ;
  13. insert for me
  14. Can you still use header("Location: add.php"); exit(); mysql_close($db) ?> at the end of your script to redirect to the add.php page?
  15. PS cssfreakie I like your blog
  16. Acording to Firefox you have your main div commented out. You have <!---- END side ---> Not <!-- END side --> and it's the same with some of the others. It's two dashes not anymore. Back in the day if you typed <!--END side --> in fire fox with no space between the dash and the E in END it would mess it up. I would spend a day looking for the cause of my problem. I don't think firefox is that picky any more but I still make sure I use two dashes and a space. Noting your tags on divs is a good idea on the big ones and on big files (for people like me anyway).
  17. Ok I've been up since 5am but why do you have redirect in your title? Aren't you wanting it to stay on the same page/file? To me something is missing, from what I see it should stay on insert.php after you have inserted your info. You have something redirecting your page. check that out then maybe use header() if all else fails header("Location: insert.php"); exit(); mysql_close($db) ?> And "echo "1 record added";" doesn't mean one record was added, it just means the script ran. I use a simple sql query that diplays the last record added to let me know I the info entered and that it was entered correctly.
  18. Sometimes means sometimes and I wasn't talking about doctype. Is a missing doc type the only thing that can go wrong in html or css coding? But true the file does need a doc type.
  19. Sometimes IE is more forgving, I looked at it in firebug and looked at the css, nothing stood out to me. Try the doc type thing and see what happens.
  20. I'd put my Update in the if submitted condition, you also got to define stuff before you can insert the stuff if($_POST['Submit']){ $description1= $_POST['description1']; $price1=$_POST['price1']; <-- don't know where this goes $sql = "UPDATE services SET Description = '$description1' WHERE ID=1"; mysql_query($sql, $con);
  21. Duh, this is embarrassing, I spent all afternoon looking at this stuff. The column name for the description is descrip not discript. Thanks to all for the help. I can't say it enough. S
  22. The mysqli_connect_error() comes in in an include statement before the queries, DB_HOST etc. are defined with define statments. $dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die('Could not connect to MySQL;'. mysqli_connect_error()); if (!$dbc){ trigger_error('Could not connect to Mysql: ' . mysqli_connect_error()); } Also would think all is OK since I use two selects on the form that enters the info, one to check for user name the other to get location IDs
  23. I use mysqli_connect_error() , all tables are in the same database as the location table that fills out a drop down menu to get $loca and that works so I have a db connection. I only have two integer columns. One is auto_increment and the other is a number representing the location
  24. I have worked on this for hours and can't find the problem. My $r doesn't query for some reason I've tested the database connection and variables with echo statements and they work, also there is an SELECT statement above this that checks to see if the name is in use and it works like it is suppose to. I just can't get this code to work. I have php5, the database connection with host, user, pw and database name are correct and isn't redefined or exited. The SELECT I mentioned uses the same connection. Can any one see whats wrong with this $q = "INSERT INTO vendors (id_vendor, name, s_discrip, discript, phone, zip, id_loca, email, web_title, web_url, photo, date_reg) VALUES (NULL, '$name', '$s_discrip', '$discrip', '$phone', '$zip', '$loca', '$email', '$ws_title', '$ws_url', 'photo', CURRENT_TIMESTAMP);"; $r = mysqli_query($dbc, $q); Thanks S
  25. There seems to very little info on this and after looking & playing I've found problems on the internet with several different cameras and even a mention of IE. When I took the problem pics and save them again at same size the code worked. Last I tried to upload to coppermine & got "The image you have uploaded is corrupted or can't be handled by the GD library". Sooo I'm going to go with that for now. All these pics are from a friend and I haven't contacted them to see what type of camera they use.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.