370 Posted Topics

Member Avatar for skygrrrl
Member Avatar for drjohn
0
183
Member Avatar for magicmarkuk

Your whole format is wrong (missing " " and closing them too early etc). If you use " " for your echo statement it is much easier to format. Try this: [CODE]echo '<a href="http://www.mysite.com/'" . $row['seo'] . "'/'" . $row['PID'] . "'/'" . $row['gtitle'] . "'"> Random Link </a>"';[/CODE] Not …

Member Avatar for simplypixie
0
157
Member Avatar for uvray90

You could try Google Checkout but either way, if you are confused now, I am afraid it will only get worse when you try to integrate a payment system. In answer to your questions about Paypal, your client will need a Paypal business account which is free to set up …

Member Avatar for RazorRamon
0
184
Member Avatar for showman13

You can't do what you are trying to do with a while loop as for one you need to include everything after while and before { in brackets but as far as I am aware you cannot select within a while condition either. All you need to do is run …

Member Avatar for showman13
0
65
Member Avatar for blivori

Use != for 'Not equal to'. Change this [CODE]WHERE bt1.btName = 'Northern Lights'[/CODE] to this [CODE]WHERE bt1.btName != 'Northern Lights'[/CODE]

Member Avatar for hfx642
0
2K
Member Avatar for simplypixie

I used to have a major problem on my old hosting package where emails from my website to yahoo/bt just disappeared into the ether. I have since changed hosts and re-formated my mail scripts to use phpmailer SMTP and all generally appears to be working much better. However I seem …

Member Avatar for simplypixie
0
208
Member Avatar for PF2G

No the AND operator doesn't work like that it needs to be &&. You are also missing the ! at the start of $result_verify_email in the if statement. Why do you want to split into 2 queries anyway?

Member Avatar for masterjiraya
0
151
Member Avatar for Octet

You need to use mysql_real_escape_string [CODE]$value = htmlspecialchars(mysql_real_escape_string($_POST['Name']));[/CODE]

Member Avatar for Octet
0
163
Member Avatar for robertj17

Why have you got semi-colons after each number? Unless that is what you want to display then they are not required. Due to the full stops I would also say you need to contain each array value in ' ' or " " as they become strings. For example [CODE]$RatesArray …

Member Avatar for diafol
0
154
Member Avatar for urbanthistleuk

Simply this: [CODE]<input type="checkbox" name="variablename" value="yourrequiredvalue" <?php if (!empty($variablename) && $variablename == 'yourrequiredvalue') { echo 'selected'; } ?> >[/CODE] Obviously you need to replace the name and value in the checkbox to match your variables and values and then compare the value of the variable that matches what is stored …

Member Avatar for urbanthistleuk
0
154
Member Avatar for danielbala

Get the date they login as you run your login script: [CODE]$logindate = date('Y-m-d'); [/CODE] Then insert/update this date into your database table that is recording your logins.

Member Avatar for danielbala
0
143
Member Avatar for mehgcap

You have a confilct here [CODE]div.mainMenu{ //main navigation menu container float:left; width:20%; } .mainMenuItemContainer{ //div holding a menu item link position:relative; height:100px; width:300px; }[/CODE] You are setting the width of the overall menu container to be 20% of the page width which could be anything depending on the screen resolution, …

Member Avatar for simplypixie
0
187
Member Avatar for geneh23

Firstly (not related to your problem) but you shouldn't use $_REQUEST, use $_POST or $_GET (in you case $_GET) - [URL="http://stackoverflow.com/questions/2142497/whats-wrong-with-using-request"]read why[/URL]. I cannot see a reason why your code isn't working as it should but I see you are echoing $doublecheck - what value does that return. In you …

Member Avatar for geneh23
0
165
Member Avatar for reinere

Tray changing your select query to indicate which table to reference for the user id [CODE]SELECT * FROM usergroups u INNER JOIN links l ON u.group_id = l.group_id WHERE u.user_id=1[/CODE]

Member Avatar for reinere
1
268
Member Avatar for mohamedasif18

[CODE=php]SELECT t1.name, t1.number, t2.message from table1 t1 inner join table2 t2 ON t1.number=t2.number[/CODE]

Member Avatar for mohamedasif18
0
170
Member Avatar for polasikat
Member Avatar for tqmd1

Nothing, though it is sometimes recommended to put div before the #

Member Avatar for teedoff
0
129
Member Avatar for concrete

Further to what rotten69 has said, you just need a field in your English table called student_id which then relates to the id primary key of the student in the Students table. For example if the Student has an id of 1 in the Students table then when you insert …

Member Avatar for simplypixie
0
164
Member Avatar for Xufyan

That is because even though you have set you list items to be displayed inline, you have done nothing with the actual unordered list tag so it will automatically put it below you text. Try adding display: inline; to your ul tag css.

Member Avatar for dipeshbeckham
0
634
Member Avatar for issaru07

Your code needs tidying up (you don't need 2 queries, just one and then check what value the admin is and use that in an if statement to redirect appropriately. However, looking at what you have you are looking for the number of rows the using the same result so …

Member Avatar for simplypixie
0
154
Member Avatar for .:n'tQ-boy:.

You would be much better off learning CSS (plenty of information on the web) as even with a simple template you won't necessarily know what is doing, how to use it or how to make any additions or changes to the style sheet should you need to.

Member Avatar for Hugo123007
0
53
Member Avatar for bhagawatshinde

This is an HTML question as far as I am concerned: [CODE]<select name="name"> <option value=''></option> <!-- All other option fields here using your asp as required--> </select> [/CODE]

Member Avatar for bhagawatshinde
0
83
Member Avatar for davy_yg

You need to set the ul to the same width as your image otherwise it will only be as wide as the content it contains.

Member Avatar for simplypixie
0
130
Member Avatar for simplypixie

I have a CRON job set to run every hour (have to do it this often due to scheduling facilities on server) and one of the sections of the script is to check if a closing date for entries into an event is within 2 days and if so to …

Member Avatar for simplypixie
0
425
Member Avatar for issaru07

You need to change the session to set to the firstname instead of email or add it as an additional session variable.

Member Avatar for pzuurveen
0
324
Member Avatar for sidra 100

Why not search what Undefined Index means - there are very easy to understand explanations if you just Google it.

Member Avatar for pritaeas
0
113
Member Avatar for sidra 100

A pritaeas says - lines 14 and 19, however I will expand and let you know that the errors are due to missing closing parenthesis on both lines.

Member Avatar for sidra 100
0
66
Member Avatar for sidra 100

Not quite [CODE] $query= "UPDATE rpms SET quantity=quantity+'$quantity' WHERE product_name='product_name'"[/CODE]

Member Avatar for sidra 100
0
97
Member Avatar for accra

ardav means [CODE]mysql_numrows[/CODE] is wrong, it doesn't do or mean anything as it should be [CODE]mysql_num_rows[/CODE] What is the point of using ON DUPLICATE KEY UPDATE when all you have to do is use an update query? You also have mysql_QUERY which should be mysql_query in line 4 and this …

Member Avatar for simplypixie
0
138
Member Avatar for Red_Rain

ALso, I have answered this question (or similar) about 3 times recently on this forum - have you tried searching the forum for the answer?

Member Avatar for simplypixie
0
261
Member Avatar for simplypixie

Is there any way to respond to reputation comments as I feel it a little unfair that if someone writes a comment about a post I have made that I feel is unjustified that I can't respond to it (unless I am missing something)? Or even a way to dispute …

Member Avatar for Narue
0
200
Member Avatar for mehdi.yazdani
Member Avatar for sidra 100

What exactly is the problem? For example do any of your errors display or does it appear to go trhough but doesn't actually update? There are actually 2 errors in your code that I can see [CODE]else if($password != mysql_result($result, 0)){ echo "Entered an incorrect password"; }[/CODE] You are missing …

Member Avatar for mikulucky
0
100
Member Avatar for sthakre624

If you provide us with your code and tell us what isn't working we may be able to help. Have you even looked at the Paypal documentation showing you how to do it?

Member Avatar for simplypixie
0
101
Member Avatar for bflack

You need session_start() at the top of every page where you use sessions and no you don't need session_regenerate_id() (that question was in case you were using it in error).

Member Avatar for simplypixie
0
194
Member Avatar for ebanbury

As veedeoo said, or try putting the if statement outside your img tags [CODE]<?php if $row_rs_dresses['prod_status'] == "Sold") { ?> <img src="images/outofstock.gif" width="40" height="40" /> <?php } else { ?> <img src="images/dot.gif" width="40" height="40" /> <?php } ?> [/CODE]

Member Avatar for simplypixie
0
659
Member Avatar for qwertpink

Use $_POST['fieldname'] to get the values submitted in the form (use for each field name and replace the word fieldname with your actual field names).

Member Avatar for qwertpink
0
4K
Member Avatar for BenzZz

Firstly, there is no need to re-assign your session variables to normal variables, just use them as they are. Secondly, and more importantly, I cannot see anywhere on the page that actually echos the error messages which is why you won't see them.

Member Avatar for BenzZz
0
270
Member Avatar for liphoso

Not sure what the extract is for, it is as simple as [CODE]while ($row = mysql_fetch_array($results)) { echo $row['Number'].' - '. $row['Name'].' - '. $row['Address'].'<br>'; }[/CODE] You also need to clean up your HTML (i.e. get rid of all those $nbsp;)

Member Avatar for liphoso
0
113
Member Avatar for ronny22

The only thing I can think is that these 2 lines don't match [CODE]function get_content($id = " "){ if ($id != ""):[/CODE] You are saying if no id is sent through the id equals space but then you want id to be nothing in your if statement, try taking out …

Member Avatar for simplypixie
0
187
Member Avatar for tqmd1

This is nothing to do with CSS, you need to check the HTML for each page and change the link name back to having a capital first letter. For example, in products.html you need to change products to Products in the navigation on that page.

Member Avatar for simplypixie
0
78
Member Avatar for davy_yg

This is wrong: [CODE]mail($to, $subject, $body,"From: $email")[/CODE] You need headers and then change the above: [CODE]$headers = "From: <$from>\r\n"; $headers.= "Reply-To: youremailaddresshere\r\n"; $headers.= 'Content-type: text/plain;charset="iso-8859-1"'; mail($to, $subject, $body, $headers);[/CODE]

Member Avatar for simplypixie
0
116
Member Avatar for jahanas
Member Avatar for akhtar.ali803
Member Avatar for shnips6
Member Avatar for diafol
0
289
Member Avatar for Shockbox

It depends how you want to store them in your database - all in one column or in multiple columns

Member Avatar for Shockbox
0
156
Member Avatar for davy_yg

It looks to me like you are already calling session_start() somewhere - maybe in your header.php file.

Member Avatar for davy_yg
0
184
Member Avatar for n3xtgen
Member Avatar for bsewell

You need to give your sub-ul a class and then right the formatting for that class in your style sheet to position it correctly.

Member Avatar for drjohn
0
280
Member Avatar for rana.moeen

This is closer to what you are looking for [CODE]#right{ float: right; border: 1px solid #85004B; width:182px; text-align: center; } #right .heading{ font-size: 9pt; font-weight:bold; padding:2px 0px 2px 3px; background:#85004B; color:#fff; } #right ul.char { list-style-type:none; margin: 0px 0px 0px 1px; width: 100%; } #right ul.char li{ width:14px; display:inline; font-size:11pt; …

Member Avatar for simplypixie
0
187

The End.