News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Evilsprouts

#76
Support Requests / Re: New domain in plesk?
April 22, 2006, 09:44:21 AM
Well if you're adding the domain to point to the FreePgs server there is an option in the options panel but if you're adding 1 to the plesk server I think you need to send a contact request via the options panel.
#77
Support Requests / CSS
April 21, 2006, 05:55:38 PM
Hiya,

I'm redesigning my site and I'm steering away from the tables so purely css for me. I have run into a problem with alignment, I have a logo at the top left of the page then navigation under that on the left going down and I want text next to the navigation in the centre but I cant seem to get it to go there and work in all browsers. Can anyone help me with this please?

___LOGO___

NAV
NAV
NAV                          TEXT TEXT TEXT TEXT TEXT TEXT
NAV
NAV

Thanks  :)
#78
Support Requests / Re: phpsave?
March 21, 2006, 12:05:27 PM
#79
Support Requests / Re: PHP/MySQL Code Problem
March 18, 2006, 04:17:46 PM
try this:


<?php
mysql_connect
("localhost","DB USERNAME","DB PASSWORD");
@
mysql_select_db("DB NAME") or die( "Unable to select database");
$query="SELECT * FROM homepage";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();

$i=0;
while (
$i $num) {
$var=mysql_result($result,$i,"filed name");

if (
$var=="")
{ echo 
"Result is blank"; }
else
{ echo 
$var; }

++
$i;
}
?>

#80
Support Requests / Re: php
March 18, 2006, 10:16:11 AM
Quote from: webzone on March 18, 2006, 12:52:46 AM
Quotemysql_query("INSERT INTO table_name VALUES ('','$pname','$pemail','$email?','$categ','$jname','$joke')");

This code wont work with register_globals=off and is vulnerable to SQL injection. The following example is safer:

mysql_query("INSERT INTO table_name VALUES ('','".addslashes($_REQUEST['pname'])."','".addslashes($_REQUEST['pemail'])."','".addslashes($_REQUEST['email'])."','".addslashes($_REQUEST['categ'])."','".addslashes($_REQUEST['jname'])."','".addslashes($_REQUEST['joke'])."')");

Oh sorry, you learn something everyday.

Cheers for correcting me webzone.
#81
Support Requests / Re: lvcs.net?
March 18, 2006, 10:14:19 AM
There is no setup fee on LVCS.
#82
Support Requests / Re: php
March 17, 2006, 09:51:03 PM
Well you will need to setup a database via the options panel then "submit.php" must contain something like this:

<?php
mysql_connect
("localhost","DATABASE USERNAME","DATABASE PASSWORD");
@
mysql_select_db(DATABASE NAME) or die( "Unable to select database"); 
mysql_query("INSERT INTO table_name VALUES ('','$pname','$pemail','$email?','$categ','$jname','$joke')");
mysql_close();
?>



And I'm not sure if the public email thing can have a "?" in the variable.
#83
Support Requests / Re: php
March 17, 2006, 09:23:41 PM
What so you want the information in the form to be submitted to your site so every one can view it? I.e. you want it to be entered into a database?
#84
Support Requests / Re: mysql auto_increment
March 14, 2006, 11:11:08 AM
What query do you use to delete the rows?

I THINK that if you use TRUNCATE it will start over but if you use DELETE it won't.


Correct me if I'm wrong which I most likely am.

Jack
#85
Support Requests / Re: include
March 10, 2006, 09:19:40 PM
[edit]problem solved[/edit]
#86
Support Requests / include
March 10, 2006, 08:58:08 PM
Hiya,

I'm writing a little script for a friend on a different host and I'm trying to include from a variable for example
<?php include("$page"); ?> where $page = add.php but it doesn't work.

It thinks I'm trying to include ".php" rather than "add.php".

Could it be to do with php version or something?

Thanks
#87
Support Requests / IMAP
March 06, 2006, 09:03:11 PM
Hey I'm learning a little about IMAP and was wondering if anyone could help me?
I have a mail account setup on the plesk server admin@evilsprouts.co.uk and was wondering what the
MAILSERVER ADDRESS
CONNECTION PROTOCOL
MAIL FOLDER to read
Are for my account?

Thanks
[edit]Problem solved[/edit]
#88
Support Requests / Re: EMERGENCY
March 06, 2006, 08:58:17 PM
Use the contact form mate they will get back to you faster that way and BACKUP!!!
#89
Support Requests / Re: PayPal not accept bank cards?
March 06, 2006, 01:36:51 PM
I THINK you should be able to use it then because in the UK maestro took over switch and u can use switch.
#90
Ok I'm in a bit of a rush at the moment but hear goes,

This is the old system I used ages ago just next and previous.

This bit displayed the links:
<table>
<tr>
<td align="center" width="75"><a href="http://www.yoururl.com/page.php?&start=<? echo $start - 10; ?>">&lt;PREV</a></td>
<td align="center" width="75"><a href="http://www.yoururl.com/page.php?&start=<? echo $start + 10; ?>">NEXT&gt;</a></td>
</tr>
</table>


Put this bit in you query
LIMIT $start, 10

Hope this helped.