Jump to content

gizmola

Administrators
  • Posts

    5,945
  • Joined

  • Last visited

  • Days Won

    145

Everything posted by gizmola

  1. No, that will not work what you want is something like this: SELECT id, count(*) as countof FROM ( SELECT id FROM table WHERE city='delhi' and subjects LIKE '%math%' UNION ALL SELECT id FROM table WHERE state='Delhi' and subjects LIKE '%math%' UNION ALL SELECT id FROM table WHERE city='delhi' and (subjects LIKE '%math%' or qualifications LIKE '%math%' ) UNION ALL SELECT id FROM table WHERE state='Delhi' and (subjects LIKE '%math%' or qualifications LIKE '%math%' ) ) as allusers Group by id ORDER BY countof DESC
  2. gizmola

    Help me

    You do not understand what trim does. Perhaps you should re-read the description of the function where it says: Notice the emphasis I've added to 2 words in that description.
  3. Try this simpler regex: '/(width="[^"]+")/i',
  4. Insert a row into the admin table, which you told me is empty.
  5. Did you expend so much as 1 minute looking around before you posted this? http://www.phpfreaks.com/forums/index.php?topic=119433.0 There's also a thread on editors/IDE's over on flingbits: http://forums.flingbits.com/topic/38-php-editors/
  6. If you want a link to do nothing, just have the href url be "#".
  7. One query, order by locationID, typical while mysql_fetch loop for the rows in your php code and use a variable that declare outside the loop which you compare to the locationID for the row you just fetched. When it changes you know it's time to do whatever special stuff you need to do for each individual locationID.
  8. I'd do: foreach($xml->tripDetails->tripDetail as $tripDetail) { $t = $tripDetail.attributes(); echo $t['type']; }
  9. Do you have mysql command line (shell) access to your server, or do you have a phpMyAdmin installation you can use? You need to insert a row for the admin. The code appears to be working correctly as best as I can tell from your description of the situation. Since there is no row, it just shows you the error msg.
  10. That entire script is 100% dependent on jquery. $(document).ready is jquery. Best/fastest way is to source it from the Google CDN: http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery
  11. Let's see the query you currently are using.
  12. Well... this code makes use of jquery. I didn't look that carefully at your script but I don't see where you're including the jquery library. Also, your page snippet is not well formed, and there is none of the divs that are referenced or for that matter markup of any kind. It's not going to work if you don't have a well formed html document.
  13. Just for completeness the answer to this question is to use the php DateTime class which is not limited in range to 32 bit timestamps.
  14. In the contentlocker.php script comment out the header() call and see what happens.
  15. Is there a user in the admin table? Based on looking at this code, the username and passwd are stored in plaintext, so there shouldn't be much question about it.
  16. Did you try debugging what is going on using firebug?
  17. You seem to have a bunch of different questions. First off, your questions about mailing can be most simply addressed by reading mail. I personally wouldn't want a system where I had to individually approve every user. Usually people automate that by emailing a validation url that the user can then click on or type into a browser. As for your issues, again, you need to provide a code snippet of what you have that isn't working (your Login script?), as well as any errors the script is generating.
  18. Yes. This is not an issue, even for a table that has an auto_increment key, because mysql will only auto_increment when you omit the auto_increment column in the INSERT or pass a NULL value. dawsha's code looks like it could work for you.
  19. I took out your database credentials --- i don't think you really want the world to know them. I'm not sure what you are asking. Clearly the things you want to do are typical, so there's no question of whether or not they can be done with php. When you "login" to your system, that has nothing to do with the mysql user/password that would be configured for use by php. We really can't help you without specific code and specific errors.
  20. I don't know of anything nor would I hold my breath for such a tool. With phpMyAdmin freely available there's just not much of a market for this type of program. Also MySQL provides the MySQL workbench for free, so there's very few commercial tools (mysqlyog comes to mind) out there for mysql. I used to maintain a list of them on the old mysqlfreaks site, but that went the way of the Dodo and so did the list. Most MySQL servers are locked down to localhost access for security reasons, and it's an effort to even get the server configured to accept client application connections, which probably further contributes to the lack of demand. Every host that provides mysql defaults to phpMyAdmin in their cpanel.
  21. Write a conversion program. Do you know PHP?
  22. What is the document root for apache set to. Run: And check that the configuration matches what you expect. It doesn't seem like the doc root matches what you think it does.
  23. gizmola

    Help me

    You didn't provide the output you are getting.
  24. You can run Parallels or VMware or Sun virtualbox which is free. You still need a licensed copy of windows to install, but it's a good solution, and you can actually test against various different versions of windows and different IE versions by creating multiple virtual machine images.
×
×
  • 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.