TweezerMan
Members-
Posts
1,763 -
Joined
-
Last visited
Everything posted by TweezerMan
-
I guess I would try something like the following: >while ($newArray = mysql_fetch_array($result)) { if ($x = $newArray['x']) { break; } }
-
Welcome to the forums, Schmoe!
-
Using a counter as a key for your $link array wouldn't work the way you think it does. $link is an array, but is an array that holds only one row of data at a time. The array key would specify what column (field) to retrieve, not what row. One other thing I thought of as a possibility: one of the result rows has a null 'link' field. (I'm thinking either the first or last row). Try this code and see what it displays: >echo "<table>"; $i = 0; while ($Array = mysql_fetch_array($result)) { $i++; $link = $Array['link']; echo "<tr><td>$i</td><td>$link</td></tr>"; } echo "</table>";
-
The only thing I can figure is that your code is doing something between the execution of the query and your while loop that is advancing the query result's internal row pointer 1 record, causing it to not be displayed by the while loop. You could try adding the following code (which resets the internal row pointer) just before your while statement and see if it displays all the records: >mysql_data_seek($result, 0);
-
According to the Wikipedia, aspell is what superseded pspell, so I'd say the chances are slim to none that pspell would be installed on the servers. You can always submit a ticket to the Help Desk and ask them though.
-
I'd suggest submitting a ticket to the Help Desk and let them check things out on your server for you.
-
Welcome to the forums, _root.dan!
-
Welcome to the forums, René!
-
Welcome to the forums, tpr55! 1) From what I understand Li-Ion batteries typically last longer per charge than Ni-MH batteries do. 2) I think you just need to shop around some other web sites and find a Li-Ion battery that fits your model of laptop.
-
Welcome to the forums, Tom™!
-
Welcome to the forums, Tracy!
-
Mailing List - No, Not About Limits!
TweezerMan replied to friendly-computing's topic in Looking for......
Welcome to the forums, Krisztina! -
Welcome to the forums, Vasco!
-
A "query string in the HTML" is the "?" and what follows it in a link: >http://www.my-TCH-domain.com/folder/deleteactor.php?id=3 In the above URL, "?id=3" is a query string. What the page was telling you is that you need to construct the column heading links with a query string to indicate which column to sort by. For example, you could append "?order=title" or "?order=gross" to the links, or use numbers instead of column names ("?order=1", "?order=2", etc.). Your script would then need to read the 'order' parameter sent in the link, and based on its value, use the appropiate "ORDER BY" clause in your SQL query to order the records the way you want.
-
Welcome to the forums, Reno!
-
I'm just guessing here, but I think that if the error reporting level is set in your script, and the script has severe errors in it that prevent the script from running, PHP never gets to execute your error_reporting() function so it can tell you what's wrong. When the error reporting level set in the .htaccess file, PHP reads the .htaccess file first before looking at your script and will set the error reporting level even if the PHP script is complete jibberish.
-
A Few Questions On Cpanel And Stuff...
TweezerMan replied to Cygni's topic in CPanel and Site Maintenance
Welcome to the forums, Cygni! -
Php/mysql Select Upcoming Events Question.
TweezerMan replied to evhwanabe's topic in Scripting Talk
Welcome to the forums, evhwanabe! -
The DELETE statement is a MySQL query, but has to be to be executed on the MySQL server in order for the query action to be carried out. As it is, the query in your code is just a text string that doesn't do anything. You need to execute the query with mysql_query(), just like you did with your SELECT query: >$result = @mysql_query("DELETE FROM actor_table WHERE ActorID='$id'");
-
When you execute the query: >$actors = @mysql_query('SELECT ActorID, FirstName, LastName FROM actor_table'); ...the result resource is being stored in the $actors variable. Then, when you try to read result rows from the query: >while ($actors = mysql_fetch_array($actors)) { ...you're fetching a row from the query and storing it back into the $actors variable. This clobbers the result resource of the query (overwrites it) and you can't fetch any more rows from it. You need to use a different variable to represent the query result resource: >$result = @mysql_query('SELECT ActorID, FirstName, LastName FROM actor_table'); >while ($actors = mysql_fetch_array($result)) { Hope this helps...
-
There is - you can add the following to your .htaccess file: >ErrorDocument 404 /my-custom-404.html
-
Anyone Know About Phpmyadmin And Querying?
TweezerMan replied to rnmcd's topic in CPanel and Site Maintenance
You may need quotes around the 1111 in the DELETE statement: >DELETE FROM default_listingsDB WHERE ID = '1111' -
Welcome to the forums, Vash1053!
-
Once your domain name has propagated, you'll need to do the following: 1) In your mt.cfg file, you'll need to adjust the CGIPath and StaticWebPath settings: >CGIPath http://www.isthatlegal.org/mt/ StaticWebPath /mt/ 2) In Weblog Config, you'll need to change the Site URL and Archive URL settings, then click the "Save Changes" button at the bottom of the page: 3) Rebuild your entire web site.
-
Anyone Know About Phpmyadmin And Querying?
TweezerMan replied to rnmcd's topic in CPanel and Site Maintenance
The first query creates a record in the 'default_listingsDB' table and sets the value of the ID field to '1111'. The second query deletes the record just created above, and also any others that might exist in the table that also have an ID equal to '1111'.
