Jump to content

granGripau

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

granGripau's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I finally got in touch with support and I asked them if they could try commenting out the 2 lines in the config.inc.php file in the phpmyadmin folder, and they told me that they couldn't find the file or that it didn't exist. Is it even possible that phpmyadmin can run without the config.inc file? Could the file be somewhere else? Thanks
  2. Hi, My boss just got a new "budget" hosting company, and it's one of those where all of it's hosts are thrown into one control panel so there is just ftp and limited phpmyadmin access and they configure the emails for you, but only if you can catch them during the 2 hours they actually work. Anyway On the external test server the site that I have made works perfectly, but when I transfered the files to the new demi-server I get this error: "Fatal error: Class 'MySQLi' not found in C:\...\....\....\...\...\...\connection.php on line 4" also in phpmyadmin i get this error: "Connection for controluser as defined in your configuration failed" everything I've seen on the net so far indicates that I should modify 2 simple things in the php.ini file. My problem is that I've contacted the hosting company asking them to update this file but they haven't responded(and we should have launched the site last wed). So my questions are 1)In your expert opinions, is this what needs to be modified? 2)can this hosting site that has all of it's clients mushed together change it's php.ini file without creating problems for other clients?, and 3) If changing the php.ini file doesn't effect other clients, and att client keeps ignoring me is there anyway I can modify the php.ini myself with my limited phpmyadmin privileges? Any advice is welcome. Thanks in advance
  3. Bricktop, you are awesome! That worked like a charm. Thanks for the heads up on the security too, when I tried to integrate the makesafe function I got a bunch of errors, I'll play with it for a while to see what I can do. Thanks again!
  4. I'm trying to create snippets of my articles in the cms I'm creating, and then have them redirect to to a single page entry of the article. Right now my snippets and "read more" links are dynamic and working fine, when I click on the "read more" link it redirects to the 'single page entry' page, but it always pulls up the article with id=1, even if the link is from id=23, and the adressbar reads articles.php?id=23. How do I successfully pull up the corresponding id'd article? any tips would be greatly appreciated! Snippets: <?php require("sources/connection.php"); $sql = "SELECT title, snippet, body_text, id FROM articles ORDER BY id DESC LIMIT 5" ; $result = $conn->query($sql) or die(mysqli_error()); if($result){ while ($row = $result->fetch_object()){ echo "<h4>" . $row->title . "</h4>"; echo $row->snippet; echo "</br>"; echo "<a href='/jquery/articles.php?id=" . "$row->id'"; echo ">< Read more ></a>"; } } ?> Articles: <?php require("sources/connection.php"); $sql = "SELECT title, body_text, id FROM articles LIMIT 1" ; $result = $conn->query($sql) or die(mysqli_error()); if($result){ $row = $result->fetch_object(); echo "<h4>" . $row->title . "</h4>"; echo $row->body_text; } ?> SQL: CREATE TABLE IF NOT EXISTS `articles` ( `id` int(20) NOT NULL AUTO_INCREMENT, `rel_id` int(20) NOT NULL, `title` varchar(255) NOT NULL, `snippet` longtext NOT NULL, `body_text` longtext NOT NULL, `who_id` varchar(50) NOT NULL, `timestamp` int(20) NOT NULL, `url` varchar(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; Thanks in advance!
  5. Wow- that's exactly what I was looking for! Thanks!
  6. Ok, thanks pastcow! So output buffering doesn't negatively affect cpu usage or network resources as long as there isn't more data than the memory limit?
  7. Hi all, I've been trying to wrap my head around output buffering. So far I've found tons of benifits but I'm wondering about the downside of output buffering. Problems it creates, whether or not it increases cpu usage, does it hog network resources, etc? Any info would be great... Thanks!
  8. Hey everyone, I'm looking for a way to capture the keywords that a person uses to find my website, and if they fill out and send a form, I would like for the keywords they used to be included in the email that is sent to me. Thanks!
×
×
  • 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.