Re: MYSql, CGI web page search code not working



print MySQLdb.paramstyle returns: format

I found one example like this:

cursor.execute('''Select * from phone where name=%s order by
name''',(name))

But I get this in my Apache error log:
NameError: name 'name' is not defined

Like my last problem I posted, I am sure it is something very simple
that I am missing!!
Fred

.



Relevant Pages

  • Re: stop script if dates are missing, edit help...
    ... he wanted the ability to enter the start date in 1/1/2005 format and ... right on column J, which is K, if any of those are missing to print out ... msg box and basically stop and say: make sure the dates in the range ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: Adding dates to get a date
    ... >I am trying to add two cells plus 30 and get a date. ... >Q7 and M7 are both in date format. ... I'm missing something, or not sure exactly what you want to do. ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: VB.NET Discussion
    ... It's interesting to note that while Format() is clearly a VBA function, Visual Basic isn't mentioned anywhere in at article (unless ... I'm missing the obvious). ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Question on number formatting
    ... Steve Amphlett wrote: ... >> Can anyone tell me which format I'm looking for, ... I knew there was something I was missing. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: Please help ntldr is missing
    ... missing or corrupt" as well as "windows\system32\stsem missing". ... computer without the VISTA DVD in and I got the error "NTLDR is missing ... restarted it and pushed a key to boot it from the VISTA DVD. ... a clean format from XP? ...
    (microsoft.public.windows.vista.general)