Register Advertise with usHelp Desk Today's Posts Search

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: PHPSpaZ
Forum: Programming 30th September 2013, 10:02 AM
Replies: 2
Views: 484
Posted By SteveJohnson
Re: htaccess gone awry

The default.asp rule isn't working either. Just seems like it is. The server is probably set up to see 'default.asp' as an index page for the folder, so does its own redirect.

Rewrite rules are...
Forum: Programming 14th January 2013, 01:50 AM
Replies: 7
Views: 558
Posted By capsoon
Re: Quick SQL question

In this case.I think you can be used union operation. ^__^
Forum: Programming 13th January 2013, 04:58 PM
Replies: 7
Views: 558
Posted By KirkMcD
Re: Quick SQL question

Do a UNION query and only select the fields you need.
Forum: Programming 13th January 2013, 11:53 AM
Replies: 7
Views: 558
Posted By Mkj
Re: Quick SQL question

Not sure if I follow you for all of it but combining 2 tables isn't that hard:

= "SELECT table1.email, table2.email".
"FROM table1, table2 ".
"WHERE table1.email = table2.email";

Not...
Forum: Programming 8th December 2012, 08:33 PM
Replies: 5
Views: 517
Posted By SteveSRS
Re: Need APACHE SEF help

it should work.. however it depends on your htaccess settings.. it might not overwrite settings from htaccess in root file

I'm just a bit in a hurry so I don't have time to check but I don't...
Forum: Programming 23rd April 2012, 11:31 AM
Replies: 13
Views: 764
Posted By SteveJohnson
Re: Sql query went bonkers!!!

I sincerely hope that you're going to be adding some validation/sanitization to your user inputs before this goes live...
Forum: Programming 23rd April 2012, 05:20 AM
Replies: 13
Views: 764
Posted By KirkMcD
Re: Sql query went bonkers!!!

You CAN'T do an 'Insert' with a Where statement.
You probably want to do an 'Update'.
Forum: Programming 23rd April 2012, 02:33 AM
Replies: 13
Views: 764
Posted By JohnnyS
Re: Sql query went bonkers!!!

the error is not in "WHERE ticket=471771" but before it.. check on the strings the you put in each field there might be a single quote that closes the quotes in a field value..

what i can suggest...
Forum: Programming 23rd April 2012, 02:25 AM
Replies: 13
Views: 764
Posted By Mirque
Re: Sql query went bonkers!!!

Ok, but the query INSERT INTO dont allow you to include a clause.
I dont know why you put that !

just modify your query insert into by UPDATE, then the query allow you to put a clause ;)

Best,
Forum: Programming 2nd April 2012, 03:27 PM
Replies: 18
Views: 1,949
Posted By Earnie Boyd
Re: PHP Session data not passing!!!

Make sure you're not outputting any data before the session_start. Note that any blank lines before <?php is considered output to the browser. Also you might want to use session_id() function to...
Forum: Programming 2nd April 2012, 02:49 PM
Replies: 18
Views: 1,949
Posted By Earnie Boyd
Re: PHP Session data not passing!!!

A session is a relationship between the user browser and the server. The data in the session is stored in a cookie in the browser. If cookies are disabled in the browser you will not have the...
Forum: Programming 26th March 2012, 08:12 AM
Replies: 14
Views: 611
Posted By Earnie Boyd
Re: Another php issue

You are setting $selstatus with variables that have not been set so when you echo $selstatus it doesn't contain the values you expect. You need to move the setting of $selstatus to below the if($i...
Forum: Programming 25th March 2012, 02:05 AM
Replies: 14
Views: 611
Posted By jawanda
Re: Another php issue

Actually, one other thing ...

$toosl = "<a href='mynewcityDOTcom/distribute/osticket_1.6.0/upload/scp/ticketsDOTphp?id=$ticketID'>".$ticketID."</a>";

and then replace $off with $toosl, ie:
...
Forum: Programming 25th March 2012, 02:02 AM
Replies: 14
Views: 611
Posted By jawanda
Re: Another php issue

You are so close, I would do this:

<input type='hidden' name='ticketID' value='$ticketID'>$off

This way, you are still storing ticketID in a hidden form field, and then you are spitting out...
Forum: Programming 25th March 2012, 12:45 AM
Replies: 14
Views: 611
Posted By Stuart Macfarlane
Re: Another php issue

If you want to use double quotes within selstatus all you need to do is make sure you escape them first.

For example here is an echo statement that echos out html code including double quotes:
...
Forum: Programming 24th March 2012, 04:25 PM
Replies: 14
Views: 611
Posted By Earnie Boyd
Re: Another php issue

Working your post backword, as I understand you, you want this



to be a clickable link, is that correct? Can an input form value contain a clickable link? I think you just need to do this...
Forum: Programming 24th March 2012, 11:04 AM
Replies: 14
Views: 611
Posted By KirkMcD
Re: Another php issue

When you set the variable it's done. It won't change later on because you changed a variable to create the original.
selstatus needs to be set just before you use it.
Forum: Programming 23rd March 2012, 06:33 PM
Replies: 14
Views: 611
Posted By KirkMcD
Re: Another php issue

Where are you setting ticketID and the other variables in the form? Are you sure that part is working?
Forum: Programming 21st March 2012, 08:19 PM
Replies: 9
Views: 592
Posted By michael_gourlay
Re: Help with a simple php problem

No, you can't call the php function from javascript, which is what it looks like you are trying to do. You'll have to submit the form to actually do the update, or submit data using ajax.
Forum: Programming 21st March 2012, 07:44 PM
Replies: 9
Views: 592
Posted By KirkMcD
Re: Help with a simple php problem

It's easily done. It's done all the time, but your code above doesn't show any form fields.
Forum: Programming 21st March 2012, 03:31 PM
Replies: 9
Views: 592
Posted By michael_gourlay
Re: Help with a simple php problem

Are you trying to call a php function from javascript?
Showing results 1 to 21 of 21

 
Forum Jump


All times are GMT -6. The time now is 10:37 PM.